Skip to content
LeetQuant
QT01 Mental Math and Fast Estimation

QT01 · Mental Math and Fast Estimation · Lesson 2 of 5

Estimation & Fermi Problems

Breaking unknown quantities into factors, working in orders of magnitude, and giving honest ranges.

15 min

Decompose, estimate, multiply

A Fermi problem asks for a number nobody knows offhand: how many petrol stations are there in the US, how many tennis balls fit in a room. The method:

  1. Write the quantity as a product of factors you can estimate more easily.
  2. Estimate each factor, saying your assumptions out loud.
  3. Multiply, keeping only one or two significant figures.
  4. Sanity-check against anything you know, and give a range.

Interviewers care about the decomposition and the reasoning, not the exact number. A sensible structure with a factor-of-two error beats a lucky guess.

Useful anchors

QuantityApproximate value
World population8 billion
US population335 million
UK population68 million
Seconds in a year3.2×1073.2 \times 10^7 (about π×107\pi \times 10^7)
Trading days in a year252
Hours in a year8,760
US GDPabout 28 trillion dollars

For bounds you are unsure of, use the geometric mean: if the answer is between 10 and 1000, guess 100, not 500. Errors in Fermi estimates are multiplicative, so think in logarithms.

Worked example

petrol stations in the US

Estimate the number of petrol (gas) stations in the United States.

Show solution
  • About 335 million people and roughly 0.85 vehicles per person: about 290 million vehicles.
  • A typical vehicle fills up about once a week: 290M/7≈40290\text{M}/7 \approx 40 million fill-ups a day.
  • A station with 8 pumps might serve 300 fill-ups a day.
40,000,000300≈140,000 stations.\frac{40{,}000{,}000}{300} \approx 140{,}000 \text{ stations}.

Published counts are around 145,000–150,000, so this is close; a fair stated range would be 80,000 to 250,000.

How errors combine

If each factor is uncertain by some multiplicative factor, the errors partly cancel. With kk independent factors each off by up to a factor of ff, the total is typically off by about fkf^{\sqrt k} rather than fkf^k, because log-errors add like independent random variables. That is why Fermi estimates with many factors are often surprisingly good.

When asked to make a market on a Fermi quantity, quote in proportion to your uncertainty: a bid and ask around 100,000 and 200,000 for petrol stations is reasonable, and narrower than that suggests false precision.

Knowledge check

You think a quantity is between 1,000 and 100,000. What single estimate best reflects this?

Knowledge check

Roughly how many seconds are in a year?

Knowledge check

An estimate multiplies four independent factors, each possibly off by a factor of 2. What is a typical overall error?

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).