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 : . Second, one crucial log10 landmark: . Everything else follows from these two facts plus the change-of-base relationship:
In plain English: to find "2 to what power gives x," find how many powers of 10 fit into x (that's ), then divide by 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 . Since exactly:
So doubling roughly 20 times gets you from $1 past $1,000,000 — check it: , 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 : a number has digits. We need . Recall (worth memorizing alongside ). So:
That means , which has 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 pays off: and round out most of what you'll need for digit-count and order-of-magnitude questions.
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 , combined with as a memory anchor, unlocks nearly every log-based mental estimate you'll be asked for.
, using the anchor fact (which follows from ). Digit count of a number is .
Memorize as your one anchor — from it you can derive on the spot if you forget it, since .
Practice in interviews
Further reading
- Common quant interview prep guides (mental math drills)