Principles
- Live and local. Every result is recomputed in your browser on each keystroke. Nothing is sent to a server.
- Any one blank, where it helps. In the solver calculators (compound interest, Rule of 72, mortgage, S&P 500, FIRE, debt payoff, inflation) you can leave exactly one of the main inputs empty, and it’s solved from the others. Decision and simulation tools ask for every input instead and show the comparison directly: Roth vs. traditional and rent vs. buy report the winner and the break-even point, the dividend calculator simulates a plan, and the DCF tool offers its three useful questions as modes.
- Honest refusal. If a combination is impossible — a payment smaller than the monthly interest, a discount rate below the terminal growth rate, a goal that can’t be reached — you get a plain message naming the field that breaks the math. You never see NaN, Infinity or a silently capped number. Solved answers must also fall within the same limits as typed ones (for example, no 1,400-year loan terms). A final check refuses to display any non-finite value even if a bug slipped through.
- Estimates, not advice. Results follow from the assumptions you enter. Real returns, rates and tax rules vary.
The missing-variable solver
Where a variable has an exact algebraic solution, we use it. The future value, starting amount, contribution, loan payment and loan amount are all solved directly, and years are solved with logarithms.
Rates of return, internal rates and break-even points generally have no closed-form solution. For those we use bounded bisection:
- Choose a range [low, high] that must contain the answer (for example −99% to 100% a year), and confirm the result at the two ends falls on opposite sides of the target. If not, the range is widened step by step up to a hard limit. If the answer still isn’t inside, we say so instead of guessing.
- Evaluate the midpoint, keep whichever half still brackets the target, and repeat.
- Stop when the result matches the target to within 10−6–10−9 or the range is narrower than floating-point precision, capped at 200 steps.
Each step halves the range, so the answer is pinned down to about one part in a trillion after roughly 40 steps, and the search can never diverge or loop forever. We deliberately don’t use Newton–Raphson, which is faster when it works but can overshoot, oscillate or fly off to infinity on the flat or steep stretches that financial formulas often have.
When a problem is about whole units (calendar years in the S&P 500 tool, growth years in the DCF tool, months in the debt planner), we search the whole-number values directly or bisect on the condition (“debt-free within the goal?”) and report the nearest qualifying whole number.
Rounding & conventions
- All math runs at full double precision. Rounding happens only for display: dollars to the nearest whole dollar (cents shown for amounts under $1,000 or where cents matter, such as loan payments), and rates to two decimal places.
- Rates are entered as annual percentages. Monthly rates are the annual rate ÷ 12 for loans (the U.S. APR convention). For savings, the effective rate per contribution period is derived from your compounding choice:
i = (1 + r/m)m/c − 1, where m is compounding periods and c contributions per year. - Contributions are made at the end of each period unless you choose the start (annuity due).
- Fractional years are allowed; formulas extend continuously between whole periods.
- Dates (payoff dates, years to FI) count forward from the current month on your device.
- Currency inputs accept “$1,250”, “1250” or shorthand like “10k” or “1.2m”. Percentages accept “7.5” or “7.5%”.
Compound interest
FV = P·(1 + i)N + C·(1 + i·d)·((1 + i)N − 1) ÷ i
P starting amount, C contribution per period, i effective rate per contribution period, N = years × contributions per year, d = 1 for start-of-period contributions, 0 otherwise. As i → 0 the annuity factor becomes N. Continuous compounding uses i = er/c − 1.
- Starting amount and contribution are solved directly. If the answer would be negative (the other source alone already beats the goal), we say so.
- $0 and empty amounts: Starting amount and contribution are independent. Either can be $0 (a deposits-only plan, or a lump sum with P·gN growth only). An empty one counts as $0 while another field is the unknown. If both are empty, or both are $0 when solving for the balance, we explain instead of guessing.
- Years: with k = C(1 + i·d)/i,
N = ln((FV + k) ÷ (P + k)) ÷ ln(1 + i). - Rate: bisection between −99% and up to 10,000% a year. Future value rises with the rate whenever the amounts invested are positive.
- Today’s dollars: FV ÷ (1 + inflation)years.
- Inflation-adjusted contributions (optional): the contribution rises by s once a year, so year k’s contributions are C·(1 + s)k. Each year’s contributions are a level annuity carried to the end: FV = P·gN + Σk C·(1 + s)k·(1 + i·d)·((1 + i)mk − 1) ÷ i·(1 + i)N − endk, with mk the periods in year k (the last may be partial). With s = 0 it equals the level formula. Starting amount and first-year contribution are still solved directly (FV is linear in each); years are found by bisection, since there is no closed form.
- Contribution frequency: weekly (52), every two weeks (26), twice a month (24), monthly (12), quarterly (4) or yearly (1) periods a year; i is the effective rate for that period, whatever the compounding.
- Withdrawals: C enters with a minus sign. Starting amount and withdrawal are solved directly, the rate by the same bisection (the balance still rises with the rate). Time is found by scanning year by year until the balance crosses the target, then bisecting within that year. When solving for the end balance, a balance that would go below zero is reported as the time the money runs out, found the same way; the chart and table stop there.
- Effective annual rate (APY): (1 + r/c)c − 1, or er − 1 for continuous compounding. A lump sum doubles in ln 2 ÷ ln(1 + APY) years.
- Range of returns: the same plan recomputed at the entered (or solved) rate minus and plus 2 percentage points.
CD calculator
APY = (1 + APR ÷ n)n − 1 Balance after m months = deposit × (1 + APY)m ÷ 12
n is the number of compounding periods a year (365 for daily). With an APY, compounding is already included, so the compounding choice has no effect; the APR shown is the daily-compounded rate with that APY. The formula is the Regulation DD APY formula, APY = (1 + interest ÷ principal)365 ÷ days − 1, solved for the interest, using months rather than days, so a bank’s figure can differ by a few cents. Interest per month is total interest ÷ months. The maturity date is today plus the term.
Early withdrawal: interest earned to the month you cash out, minus a penalty of k months of simple interest on the deposit at the APR (deposit × APR × k ÷ 12), the most common way banks state it. If the penalty is larger than the interest earned, the difference comes out of the deposit. Tax is interest × your rate, all charged at maturity for simplicity (in practice interest is taxed in the year it’s credited).
CD ladder. The deposit is split evenly across n CDs with terms of spacing × 1, 2, … n months, each growing at its own APY as above. A CD that matures before the end of the period is rolled, principal and interest, into a new CD of the longest term at the longest rung’s APY. At the end, CDs still open count their interest accrued so far (no penalty applied). The comparisons put the whole deposit in the longest or the shortest CD, renewed at the same APY for the same period.
High-yield savings
g = (1 + APY)1/12 − 1 balancem = balancem−1 × (1 + g) + monthly deposit
Interest compounds monthly at the rate g that adds up to the APY over a year, so the APY you enter is exactly what a balance left for 12 months earns; banks that compound daily and credit monthly get the same yearly result. Deposits are added at the end of each month. Interest per month is the balance × g in the first and last month. The comparison uses the FDIC’s national average savings rate (the $2,500 tier), updated from the FDIC’s monthly National Rates and Rate Caps release. Tax is the interest × your rate. The rate is held constant, though real savings rates change.
APY calculator. APY = (1 + r ÷ n)n − 1 for n compounding periods a year, and er − 1 for continuous compounding; the interest rate behind an APY is n × ((1 + APY)1/n − 1), or ln(1 + APY). The rate per period is r ÷ n. Interest on a deposit is deposit × ((1 + APY)years − 1). Regulation DD’s APY from interest earned is (1 + interest ÷ principal)365 ÷ days − 1.
Rules of 72, 114 and 144
estimate: T ≈ factor ÷ r exact: t = ln(M) ÷ ln(1 + r/100) M = 2, 3, 4; factor = 72, 114, 144
The calculator solves the rule itself, r × T = factor: the years from a return, or the return from a deadline (factor ÷ T). Beside every estimate it shows the exact answer with annual compounding, and the exact required return (M1/T − 1) × 100 in reverse.
- Why 72: for small rates ln(1 + x) ≈ x, so t ≈ 100·ln 2 ÷ r ≈ 69.3 ÷ r. Because ln(1 + x) < x, real doubling takes a little longer, so the best constant rises with the rate: 72.05 at 8%. 72 also divides evenly by 2, 3, 4, 6, 8, 9 and 12. 114 is 72 × log2 3 (rounded) and 144 is two doublings.
- Variance: estimate − exact, in years (or percentage points in reverse), and as a share of the exact value. Returns above 12% are flagged: the error there passes about 2% and grows with the rate, to 9% at 30%.
- Exact rule at this rate: r × t, the constant that would be exact at your return. Continuous rule: 100 · ln M ÷ r, exact when compounding is continuous.
- The return field and its slider span 0.5% to 30%. The optional starting value is multiplied by M.
- Months: the rule holds for any period as long as the rate and the time share it, so in Months mode r is a monthly rate and T is in months. The yearly equivalent is (1 + r/100)12 − 1.
- Embeddable version (
/embed-rule-of-72): the same estimate and exact answers for a single return, for other sites to include in an iframe. It loads no analytics and is kept out of search (noindex).
Mortgage & loan
M = P·i ÷ (1 − (1 + i)−n) P = price − down payment, i = rate ÷ 12, n = years × 12
In Home Purchase mode the calculator solves any one of home price, down payment, rate, term and monthly payment (principal and interest) from the other four. In Simple Loan / Refinance mode a single loan amount P replaces price and down payment, and any one of loan amount, rate, term and payment is solved from the other three.
- Down payment in $ or %: a percentage d means P = price × (1 − d ÷ 100). Solving for the price divides the loan the payment supports by (1 − d ÷ 100). Solving for the percentage finds the dollar down payment and divides it by the price. Switching units converts the amount without rounding it away (a percentage keeps up to six decimals, dollars keep their cents), so the loan and payment don’t change; switching straight back restores exactly what you typed. A badge beside the field shows the same amount in the other unit as you type.
- Switching modes keeps the same loan: price − down payment becomes the loan amount, and a loan amount becomes the price that finances it with your down payment.
- Loan amount:
P = M·(1 − (1 + i)−n) ÷ i. Solving for price adds the down payment back. Solving for the down payment subtracts this P from the price, and if the payment would support more than the full price, we say no down payment is needed. - $0 down: an empty Down Payment counts as $0 (full financing) while another field is the unknown. A down payment at or above the price is refused, since there is no loan to amortize.
- Term:
n = −ln(1 − i·P/M) ÷ ln(1 + i). This needs M > i·P, a payment larger than the first month’s interest. Otherwise the loan never amortizes, and we tell you so. - Rate: bisection on 0–2,400% a year, reported to three decimals (lenders price in eighths of a point). This is the note rate, not the APR, which also includes fees. If the total of all payments is less than the loan amount, the implied rate would be negative, and we explain that instead.
- Amortization: each month interest = balance × i, and principal = payment − interest. The final payment is reduced so the balance ends at exactly zero. Extra payments are added to every month’s principal.
- Total monthly cost adds property tax ÷ 12, insurance ÷ 12, HOA dues and PMI to the principal-and-interest payment. The solver itself stays on principal and interest; these costs sit beside it.
- PMI applies to a purchase when the loan is more than 80% of the price. It is charged monthly at the PMI rate ÷ 12 of the original loan (default 0.5% a year; typical rates run roughly 0.3–1.5% and depend on credit and down payment) until the balance at the start of a month is at or below 78% of the original price, the point at which U.S. lenders must end it automatically for a borrower who is current. Extra principal reaches 78% sooner and ends PMI sooner. PMI is not applied when the down payment was left empty, since that is an assumed $0.
- Cash to close = down payment + closing costs (a percentage of the price, default 3%). Income needed uses the two common guidelines: housing cost (payment, tax, insurance, HOA and PMI) ÷ 0.28 × 12 for the 28% front-end ratio, and (housing + other monthly debts) ÷ 0.36 × 12 for the 36% back-end ratio. Lenders apply their own limits, which vary by loan type and credit.
- Extra payments: a monthly amount, a yearly amount (added to every 12th payment) and a one-time lump sum (added to a chosen payment number) are applied straight to principal. Bi-weekly payments (26 half-payments, or 13 full payments a year) are modelled as one extra monthly payment a year, spread evenly as payment ÷ 12 each month. Real bi-weekly plans credit payments every two weeks, so results can differ slightly, and some lenders hold the half-payments until the full amount arrives.
- Equity in the purchase schedule is the price minus the remaining balance. It assumes the home’s value doesn’t change.
Mortgage payoff calculator. The regular payment comes from the balance, rate and years left with the formula above, and each schedule is amortized month by month. Extra monthly principal is added to every payment, a one-time payment to the first, and bi-weekly payments are one extra payment a year spread evenly. The extra needed for a payoff goal is found by bisection, to the cent. Pay down vs. invest: both paths spend the same cash each month until the original payoff date. Investing puts the extra (and any one-time payment, at the start) into investments; paying down sends it to the loan, then invests the whole payment once the loan is gone. Investments compound monthly at your yearly return, (1 + r)1/12, before tax; the gap is the difference in investments at the original payoff date.
S&P 500 returns
For each calendar year y we use the S&P 500 total return (dividends reinvested) or price-only return, and December-to-December CPI inflation.
realy = (1 + nominaly) ÷ (1 + inflationy) − 1
CAGR = (Π (1 + ry))1/n − 1 average = Σ ry ÷ n
- Volatility is the sample standard deviation of the annual returns (divided by n − 1).
- A start year means invested on January 1. An end year means valued on December 31.
- Monthly contributions. The data is annual, so each year’s return is applied in 12 equal geometric steps, (1 + ry)1/12 a month, with contributions added at each month’s end. A lump sum therefore compounds to exactly the annual figures; monthly contributions are close to, but not identical to, a backtest on monthly index data.
- Dividends. With reinvestment (DRIP) the portfolio earns the total return. Without it, it earns the price return, and each month’s dividend, the gap between the two monthly steps applied to the balance, is paid out as cash and not reinvested.
- Inflation-adjusted values are in start-year dollars (December CPI of the year before the start). Each contribution and dividend is deflated in the month it happens, spreading each year’s December-to-December inflation evenly across its months. Total return is (final balance + cash dividends) ÷ money put in − 1, in each basis.
- Solving. The final balance is linear in the two amounts, final = P·G + C·K, so the initial investment and the monthly contribution are solved exactly. Solving for the end year finds the first year-end the portfolio reached the target. Solving for the start year finds the latest January 1 start that still reached the target by the end year.
- Fixed Return Solver. One steady annual return r, treated as a CAGR and earned in monthly steps of (1 + r)1/12, with the same end-of-month contributions. The target, initial investment, monthly contribution and years have exact solutions; the required return is found by bisection.
- The latest full year is 2025; a partial year isn’t included. Returns are before fees, taxes and trading costs. An index fund’s small expense ratio would lower them slightly.
- How the period ranks: the CAGR of your years (on the basis shown: total or price return, nominal or real) against every run of the same number of calendar years in the data; ties share the better rank. Worst drawdown: a lump sum’s deepest fall from a previous high, at year ends only (annual data can’t see falls within a year), and the year-end it first regained that high. Lump sum vs. monthly: the same total invested on January 1 of the first year or in equal monthly amounts across every month of the period, and the share of all periods of that length in which the lump sum ended higher.
- Year pages (S&P 500 returns by year): money invested on January 1 of the start year, held to the end of 2025, with the same annual data and simulation as the calculator. The biggest fall is measured between year-end values, and the ranking compares every run of the same number of calendar years since 1871.
- Start and end months: with any months other than January to December, each month earns its own return from
src/data/sp500-monthly.js: Shiller’s monthly series (average prices, dividends spread evenly) through 1988 and the S&P 500 Total Return and price indexes (month-end) from 1989. Every year’s twelve months are scaled by one common factor so they compound to that year’s annual return exactly; whole-year results are therefore unchanged. Inflation is still spread evenly over each year’s months. The annualized return is the lump-sum growth raised to 12 ÷ the number of months.
DCF valuation
Value = Σt=1..N CF₀(1 + g)t ÷ (1 + r)t + TV ÷ (1 + r)N
TV = CFN·(1 + gT) ÷ (r − gT)
A two-stage model: growth at g for N years, then perpetual growth at gT (Gordon growth). The model requires r > gT. Otherwise the terminal value is infinite and we say so.
- Cash flow is solved directly, since value is proportional to it.
- Growth and terminal growth rates: bisection. Value rises with each of them.
- Discount rate (implied return): bisection on (gT, 1,000%]. Value falls continuously from +∞ toward 0 as the rate rises, so any positive value has exactly one answer.
- Growth years: whole-year search from 1 to 100, reporting the year nearest the target value.
- Margin of safety = 1 − price ÷ value. A price within 0.5% of value reads as fairly valued; above value, the premium is price ÷ value − 1.
- Guided modes. The calculator asks one of three questions rather than solving whichever box is empty: Intrinsic Value (the value per share from the five assumptions), Reverse DCF › Implied Growth, and Reverse DCF › Implied Return. The solver behind it can still find any input; these three cover nearly every real use.
- Reverse DCF runs the same solvers with the share price in place of the value: the growth rate (bisection on (−99%, 1,000%]) or the discount rate (bisection on (gT, 1,000%]) that makes the model equal today’s price.
- Fading growth (optional): growth in year k is g + (gfade − g)·(k − 1) ÷ (N − 1), a straight line from g in year 1 to the fade rate in year N. Reverse DCF then solves for the starting rate with the fade target held fixed.
- Net cash per share (optional; negative for net debt) is added to the value of the cash flows: equity value per share = PV(cash flows) + PV(TV) + net cash. Reverse DCF explains the price less net cash.
- Buy below = value × (1 − margin of safety wanted), 25% by default. Bear and bull cases move growth (and any fade target) 5 points down or up and the discount rate 1 point up or down; a case where the discount rate falls to or below terminal growth shows a dash.
- Terminal share = PV(TV) ÷ (PV(cash flows) + PV(TV)), net cash excluded. Above 75% the result is flagged terminal-heavy: most of the answer then rests on the terminal growth and discount rate rather than the forecast years.
- Sensitivity grid: the value at discount rates 2 points either side of yours (1-point steps) and growth rates 4 points either side (2-point steps). Cells where the discount rate doesn’t exceed terminal growth have no finite value and show a dash.
Roth vs. traditional
Contributions C are made at the start of each year for n years at return r, with growth factor F = (1 + r)·((1 + r)n − 1) ÷ r.
- Same contribution (default): Roth = C·F. Traditional = C·F·(1 − tlater) plus a taxable side account. Each year’s tax saving C·tnow is invested there at the same return, and gains are taxed at the capital-gains rate when withdrawn. Take-home pay is identical either way.
- Same pre-tax income: Roth = C·(1 − tnow)·F. Traditional = C·F·(1 − tlater). This is the textbook case where equal tax rates give identical results.
- Break-even retirement tax rate, recalculated on every update. Only the traditional withdrawals depend on tlater, and linearly, so it has a closed form. Same contribution: t* = S ÷ (C·F), where S is the invested tax savings after capital-gains tax; since S ≤ C·tnow·F, t* lies between 0 and today’s rate, and the gap is the capital-gains drag. Same pre-tax income: t* = tnow. Roth wins above t*, traditional below. With a 0% rate today, t* is 0%; with a 0% (or negative) return there are no gains to tax, so t* equals today’s rate.
- Winner: results within 0.05% of each other are reported as a tie. Capital losses on the invested savings carry no tax and no refund.
- The federal bracket estimator uses the IRS ordinary-income brackets for the selected filing status and year (data from 2000 onward). It doesn’t model deductions, credits, RMDs or state rules beyond the flat state rate you enter.
- Limits and eligibility: the 2026 contribution limits (IRA $7,500, +$1,100 at 50+; 401(k) employee deferral $24,500, +$8,000 at 50+, +$11,250 at 60–63) and Roth IRA income phase-outs (single and head of household $153,000–$168,000; married filing jointly $242,000–$252,000; married filing separately $0–$10,000) come from the IRS’s November 2025 announcement and Notice 2025-67 and are shown as notes; the comparison itself does not cap your contribution. The income you enter stands in for modified AGI.
- Employer match: treated as pre-tax in both choices, growing at the same return and taxed at the retirement rate, so it adds the same after-tax amount to both and never changes the winner.
FIRE
FI number T = (retirement expenses − other income) ÷ safe withdrawal rate
V(n) = P·(1 + r)n + A·((1 + r)n − 1) ÷ r CoastFIRE = T ÷ (1 + r)n
All figures are in today’s dollars with a real (after-inflation) return r. Annual savings A are added at each year-end. The calculator solves any one of current portfolio P, annual savings, expected return, annual retirement expenses and years to FIRE from the other four; the safe withdrawal rate (default 4%) and other retirement income are settings.
- Years to FIRE:
n = ln((T + A/r) ÷ (P + A/r)) ÷ ln(1 + r), or(T − P) ÷ Aat a 0% return. If the portfolio already covers T, the answer is “already there.” If savings and growth never reach T, we say so. - Annual savings and current portfolio are solved exactly from V(n) = T. If the other one alone already gets there, we report that it isn’t needed (for savings, that’s reaching CoastFIRE).
- Retirement expenses: V(n) × withdrawal rate + other income, the budget the finished portfolio supports.
- Expected return: bisection on −50% to 1,000% a year, since V(n) rises with r.
- $0 portfolio: an empty Current Portfolio Value counts as $0 while another field is the unknown.
- CoastFIRE number is what you’d need invested today for growth alone, with no new savings, to reach T in the same n years.
Historical success rate. For every start year from 1871 whose retirement fits in the data (through 2025), start with 1 unit of portfolio, all in U.S. stocks (total return: price plus reinvested dividends). Each year withdraw the withdrawal rate w (a constant real amount, taken at the start of the year, so it rises with that year’s CPI), then apply the real return (1 + nominal) ÷ (1 + inflation) − 1. A retirement survives if money remains after the last year; the share that survived is the success rate. It uses the same S&P 500 and CPI series as the other tools (see data sources), is U.S.-only, assumes no fees, taxes or bonds, and does not depend on your expected return. Age at FI is current age plus the years to FIRE, rounded up; savings rate is annual savings ÷ income; the lean/fat table rescales spending to 70% and 150% (our convention, not a standard).
Coast FIRE calculator. The FI number T is the same; the Coast FIRE number at month m is T ÷ (1 + r)(N − m)/12, where N is the months to retirement. Monthly savings are added at each month-end and the balance grows by (1 + r)1/12 a month. You can stop saving at the first month the balance reaches that month’s Coast FIRE number; from then the balance only grows and reaches T at retirement. If it never does, we show the level monthly saving that reaches T exactly. The history check takes every run of the same whole number of years in the real S&P 500 total-return series since 1871 and reports the worst and median annual return, the share at or above your rate, and the Coast FIRE number the worst run would have required.
How long will my money last. A month-by-month simulation in future dollars: the withdrawal comes out at the start of each month (in the last month, whatever is left), the rest grows by (1 + r)1/12, and the withdrawal rises by the inflation rate after every 12 months. The money lasts until the first month the balance can’t cover the withdrawal, counted in whole months, up to 100 years. “Indefinitely” means the balance after 100 years, in today’s dollars, is at least the starting savings. The withdrawal that lasts exactly n years is found by bisection. The history check takes the first-year withdrawal rate, 12 × monthly ÷ savings, and runs it through every complete n-year retirement since 1871 with the 4% rule study’s method (all U.S. stocks, withdrawals raised with actual inflation); it doesn’t use the expected return you enter.
Runway is how long a portfolio P lasts when spending W is withdrawn at each year-end: ln(W ÷ (W − r·P)) ÷ ln(1 + r). It’s indefinite when r·P ≥ W. This assumes steady returns. Real sequences of good and bad years make outcomes more variable, which is why the 4% guideline carries a safety margin.
Barista FIRE calculator. Barista FIRE number = (spending − part-time income) ÷ withdrawal rate; full FIRE number = spending ÷ withdrawal rate. Savings grow at (1 + real return)1/12 a month with monthly additions at month-end, and the date is the first month the balance reaches the number. The part-time income needed now is spending − today’s portfolio × withdrawal rate.
Debt payoff
Single debt
P + E = B·i ÷ (1 − (1 + i)−n) i = APR ÷ 12, P = regular payment, E = extra payment, n = months
The calculator solves any one of balance B, APR, regular payment, extra payment and time to payoff from the other four. Time can be entered in months or years; switching converts it without rounding.
- Time to payoff:
n = −ln(1 − i·B ÷ (P + E)) ÷ ln(1 + i), orB ÷ (P + E)at 0% APR. The schedule takes ⌈n⌉ payments, the last one smaller. If P + E doesn’t exceed the first month’s interest i·B, the balance never shrinks (it grows when the payment is lower: negative amortization), and we say so instead of returning a time. - Payment and extra payment: the level payment that clears B in n months, less the other part. If the other part already covers it, we report that it isn’t needed.
- Balance:
B = (P + E)·(1 − (1 + i)−n) ÷ i, the most a budget repays in time. - APR: bisection, since the rate has no closed form. If the payments add up to less than the balance, the rate would be negative and we explain that instead.
- $0 extra: an empty Extra Payment counts as $0 while another field is the unknown. The interest it saves is the difference between the two schedules, with and without it.
- Consolidation or balance transfer (optional, multi-debt): every balance is rolled into one, plus the fee as a share of the total. It charges 0% for the intro months you enter, then the new APR, and is repaid with the same monthly budget (minimums + extra) as your plan. The comparison is total interest of your plan against the consolidated interest plus fee. Monthly-payment requirements of a real loan term aren’t modelled.
Several debts: snowball vs. avalanche
A month-by-month simulation, capped at 100 years:
- Interest accrues on every balance at APR ÷ 12.
- Every open debt receives its minimum payment (or its remaining balance, if smaller).
- The rest of the fixed monthly budget (sum of original minimums + extra) goes to the target debt, and any overflow to the next. Avalanche targets the highest APR first; snowball the smallest current balance. Paid-off debts’ minimums therefore roll over automatically.
The “minimums only” baseline pays each debt its own minimum with no extra and no rollover. If the total budget can’t cover a month’s interest, the balance can only grow, and we report that rather than an endless schedule.
Extra payment for a goal: payoff time never increases as the payment rises, so we bisect on the payment amount (to the cent) for the smallest extra that makes the chosen plan (avalanche or snowball) debt-free within the goal.
Debt snowball calculator. The same month-by-month simulation with the snowball order (smallest current balance first, ties to the higher APR), recording what is paid on each debt each month. The “snowball payment” for a debt is the largest monthly payment it receives before its final, partial month. Minimums-only and avalanche runs use the same debts and budget for comparison, and the extra for a debt-free goal is found by the same bisection as above.
Inflation & purchasing power
Historical mode (CPI)
value in year B = amount in year A × CPIB ÷ CPIA average rate = (CPIB ÷ CPIA)1/|B − A| − 1
- Data: December readings of the U.S. Consumer Price Index for All Urban Consumers (CPI-U), 1870–2025. From 1913 the data is the Bureau of Labor Statistics’ official index; before 1913 it is Robert Shiller’s reconstructed index, and the calculator says so whenever a span includes those years. Years are December to December, so a span from 1980 to 2025 covers 45 yearly changes.
- Either amount can be solved: the amount in the From year, or its equivalent in the To year (the inverse multiplication). The To year may be earlier than the From year, which asks what today’s dollars bought in the past; the factor is then below 1.
- Year-by-year inflation is CPIy ÷ CPIy−1 − 1. The decade averages in the article are compound rates from the December before the first year of the decade to the last: 1970s means December 1969 to December 1979.
- Year pages (inflation by year): the same December-to-December CPI ratios, from a given year to December 2025. Tables, charts and figures are computed from the data; the history on each page is written separately, and automated tests check every figure it quotes against the data.
Future mode (a chosen rate)
F = P·(1 + i)n purchasing power lost = 1 − (1 + i)−n
P is an amount today, F what the same goods cost after n years of inflation at i a year. Any one of the four is solved from the other three, all in closed form:
- Future cost: F = P·(1 + i)n. Today’s equivalent of a future amount discounts it the same way: P = F ÷ (1 + i)n.
- Implied rate: i = (F ÷ P)1/n − 1. Years: n = ln(F ÷ P) ÷ ln(1 + i). At 0% inflation, or when the rate points the other way from the two amounts (deflation with a higher future cost), no number of years fits, and we say so.
- Purchasing power lost is the share of today’s buying power a dollar gives up: 44.6% after 20 years at 3%. Negative inflation (deflation) gives a gain instead.
- The rate presets come from the CPI data below: the Fed’s 2% target, the 30-year and since-1926 compound annual rates of December-to-December CPI, and 2022’s rate.
Rent vs. buy
Buying = home value − loan balance − selling costs + buyer’s investments Renting = renter’s investments
A month-by-month simulation of two households that spend the same cash, so the comparison is about opportunity cost, not budget:
- Day one: the buyer pays the down payment and closing costs; the renter invests the same amount in the stock market.
- Each month: the buyer pays the mortgage (the standard level payment, M = L·i ÷ (1 − (1 + i)−N) with i = rate ÷ 12) plus property tax and maintenance at a yearly percentage of the home’s current value; the renter pays rent, which rises once a year. Whichever cost is lower, that household invests the difference. After the mortgage is paid off, the buyer’s cost drops and the buyer starts investing. Optional extras: HOA dues (buyer) and renter’s insurance (renter), both growing with the inflation input, and PMI, charged at a yearly rate on the original loan while the loan starts above 80% of the price and dropped once the balance reaches 78% of it.
- Growth: the home appreciates and both portfolios compound monthly at the equivalent of their annual rates, (1 + r)1/12 − 1.
- At the horizon the home is sold: net worth counts the home value less the loan balance and selling costs, plus any investments.
The break-even year is the first year-end at which buying’s net worth is at least renting’s, searched out to 40 years. Left out: taxes on investment gains, the mortgage interest deduction (most households now take the standard deduction), and the tax-free exclusion on home sale gains. These roughly offset for typical buyers. “Show net worth in today’s dollars” divides each year’s net worth by (1 + inflation)year; the “Where the money goes” table stays in future dollars.
Dividend growth & DRIP
dividend each payment = shares × D ÷ payments per year after tax = dividend × (1 − t) DRIP: shares += after-tax dividend ÷ price
A month-by-month simulation with the share price starting at a nominal $100:
- Price grows at the appreciation rate, compounded monthly. The dividend per share D starts at yield × today’s price and grows by the dividend growth rate once a year, so the yield on the current price drifts when the two rates differ.
- Dividends are paid at the chosen frequency (quarterly by default; monthly, semiannual or annual are options) and taxed at t when paid, reinvested or not (a taxable account; use 0% for an IRA or 401(k)). With DRIP, the after-tax dividend buys shares at that day’s price; without it, dividends accumulate as cash and earn nothing.
- Contributions buy shares at the end of each month; the initial investment buys at the start.
- Gain from DRIP is total wealth reinvesting minus total wealth (portfolio plus cash) taking dividends as cash, with everything else equal. Yield on cost is the final year’s gross dividends ÷ total money put in.
- Income goal: the simulation is linear in the money invested, so the investment that pays a target monthly income in the final year is your initial amount and monthly contribution multiplied by target ÷ your final-year monthly income (after tax). The goal is reached in the first year whose after-tax income, divided by 12, is at least the target.
SCHD dividend calculator. The same simulation, with the yield set to SCHD’s last four dividends per share ÷ its price on the snapshot date (both in src/data/schd.js, split-adjusted for the October 2024 3-for-1 split) and quarterly payments. Shares convert to dollars at the snapshot price. Dividend history is calendar-year totals per share; growth rates are compound annual rates between calendar years.
Data sources
- S&P 500 annual returns, 1871–2025 (with and without dividends): Robert Shiller, Yale University, U.S. stock market data (S&P Composite and predecessors before 1957), and S&P Dow Jones Indices for recent years. Compiled in the MoneyChimp archive.
- Consumer Price Index, 1870–2025 (December values, CPI-U, 1982–84 = 100): U.S. Bureau of Labor Statistics from 1913; earlier years from Shiller’s reconstructed price index.
- Federal income tax brackets, 2000–2026: IRS tax rate schedules (Schedules X, Y-1, Y-2 and Z).
The data was extracted from the original MoneyChimp scripts (kept in /legacy) into modern modules by a script that checks every year label. The most recent year’s figures may be revised slightly.
Chart colors were checked for color-vision-deficiency separation and contrast. Every chart also has a table view and a written summary.