
Every number this site produces comes from a single, open set of formulas — no hidden adjustments, no "proprietary" black boxes. This page documents exactly how each calculation works so you can reproduce it yourself in a spreadsheet. The core math is covered by an automated regression test suite so the results stay stable over time.
All calculations run locally in your browser. We never see your figures.
We convert nominal return and inflation into a real return using the exact Fisher relationship, not the common shortcut of subtracting the two:
realReturn = (1 + nominalReturn) / (1 + inflation) − 1Example: at 7% nominal and 3% inflation, the real return is (1.07 / 1.03) − 1 = 3.883%, not 4%.
We use the 4% safe-withdrawal rule — i.e. a 25× multiple of annual spending — as the default:
retirementTarget = annualSpending / withdrawalRate (4% → 25 × spending)The withdrawal rate is adjustable. A 3.5% rate produces a ~28.6× target; a 5% rate produces a 20× target. The 4% figure originates in the Trinity Study and William Bengen's 1994 research on sustainable withdrawal rates; it is a widely used planning heuristic, not a guarantee.
We discount the retirement target back to today at the real return, over the years remaining until retirement:
years = retirementAge − currentAge
growthFactor = (1 + realReturn) ^ years
coastNumber = retirementTarget / growthFactorWorked example (age 30, retire at 65, $40,000/yr spending, 7% nominal, 3% inflation, 4% withdrawal):
retirementTarget = 40,000 / 0.04 = 1,000,000realReturn = 3.883%, over 35 years → growthFactor ≈ 3.7942coastNumber = 1,000,000 / 3.7942 ≈ 263,555We never round intermediate values — rounding happens only for display.
If you haven't reached your Coast number yet, we solve for the level monthly contribution that closes the gap by retirement using the future-value-of-an-annuity formula at a monthly real rate:
monthlyRealReturn = (1 + realReturn) ^ (1/12) − 1Barista FIRE income is modeled two ways because the two cases give very different answers:
spending − income, so retirementTarget = (spending − income) / withdrawalRate. We still show the full target so the reduction is never mistaken for the whole nut shrinking.| Input | Default | Why |
|---|---|---|
| Nominal return | 7% | Long-run historical average for a diversified stock-heavy portfolio, before inflation. Past performance does not guarantee future results. |
| Inflation | 3% | Rough long-run average; recent years have varied widely. |
| Withdrawal rate | 4% | Trinity Study / Bengen heuristic. |
This is an educational planning tool, not financial advice. It assumes smooth average returns and does not model:
Use the scenario toggles to stress-test optimistic and conservative assumptions, and consult a qualified financial professional before making decisions.
Found an error in our math or a figure that looks off? Please tell us — see our Corrections page. We publish fixes transparently.