Quant Memo
Core

Estimating Logs and Powers of Two

Powers of two and a handful of log10 landmarks let you estimate log base 2, log base 10, and 'how many digits' questions in your head without a calculator.

Prerequisites: Converting Fractions, Decimals and Percentages

Roughly how many times do you have to double $1 to pass $1,000,000? Questions like this are really asking for a log base 2, and most people freeze because "logarithm" sounds like it needs a calculator. It doesn't — powers of two and a couple of memorized log landmarks get you there in a few seconds.

Two small libraries to memorize

First, powers of two up through 210=1,0242^{10} = 1{,}024: 2,4,8,16,32,64,128,256,512,1,0242,4,8,16,32,64,128,256,512,1{,}024. Second, one crucial log10 landmark: log1020.301\log_{10}2 \approx 0.301. Everything else follows from these two facts plus the change-of-base relationship:

log2x=log10xlog102log10x0.301.\log_2 x = \frac{\log_{10} x}{\log_{10} 2} \approx \frac{\log_{10} x}{0.301} .

In plain English: to find "2 to what power gives x," find how many powers of 10 fit into x (that's log10x\log_{10}x), then divide by 0.3010.301 since each power of 2 only advances you 0.301 of a power of 10.

Worked example 1: doubling $1 to $1,000,000

We want log2(1,000,000)\log_2(1{,}000{,}000). Since log10(1,000,000)=6\log_{10}(1{,}000{,}000) = 6 exactly:

log2(1,000,000)60.30119.9.\log_2(1{,}000{,}000) \approx \frac{6}{0.301} \approx 19.9 .

So doubling roughly 20 times gets you from $1 past $1,000,000 — check it: 220=1,048,5762^{20} = 1{,}048{,}576, just over a million, confirming the estimate to within rounding. Notice how little arithmetic that took: no calculator, no long division, just one memorized constant and a single division.

Worked example 2: how many digits does 3^40 have?

Digit count relates to log10\log_{10}: a number has log10x+1\lfloor \log_{10}x \rfloor + 1 digits. We need log10(340)=40log103\log_{10}(3^{40}) = 40 \log_{10}3. Recall log1030.477\log_{10}3 \approx 0.477 (worth memorizing alongside log102\log_{10}2). So:

40×0.477=19.08.40 \times 0.477 = 19.08 .

That means 3401019.083^{40} \approx 10^{19.08}, which has 19.08+1=20\lfloor 19.08 \rfloor + 1 = 20 digits — a fact you'd never guess without logs, reached here in one multiplication and a floor. It's also a good example of why memorizing a couple of extra log10 landmarks beyond just log102\log_{10}2 pays off: log1030.477\log_{10}3 \approx 0.477 and log1070.845\log_{10}7\approx0.845 round out most of what you'll need for digit-count and order-of-magnitude questions.

powers of 2: 2¹⁰ = 1,024 powers of 10: 10³ = 1,000 2¹⁰ ≈ 10³, the anchor fact behind log₁₀2 ≈ 0.301
2¹⁰ = 1,024 is almost exactly 10³ = 1,000 — the coincidence that makes log₁₀2 ≈ 0.301 easy to recall and sanity-check.

What this means in practice

This shows up any time a problem involves compounding, doubling times, or "how big does this get" questions — estimating years to double an investment, gauging how many rounds of a binary search a dataset needs, or sanity-checking an order-of-magnitude Fermi estimate. The single fact log1020.301\log_{10}2 \approx 0.301, combined with 2101032^{10}\approx 10^3 as a memory anchor, unlocks nearly every log-based mental estimate you'll be asked for.

log2xlog10x/0.301\log_2 x \approx \log_{10}x / 0.301, using the anchor fact log1020.301\log_{10}2\approx0.301 (which follows from 2101032^{10}\approx10^3). Digit count of a number is log10x+1\lfloor\log_{10}x\rfloor+1.

Memorize 210=1,0241032^{10}=1{,}024\approx10^3 as your one anchor — from it you can derive log1020.301\log_{10}2\approx0.301 on the spot if you forget it, since 10log102310\log_{10}2\approx3.

Related concepts

Practice in interviews

Further reading

  • Common quant interview prep guides (mental math drills)
ShareTwitterLinkedIn