Monthly savings math
The core formula is the future value of a series of monthly deposits plus your starting balance compounding:
FV = P·(1+i)ⁿ + M·((1+i)ⁿ − 1)/i
where P = starting amount, M = monthly deposit, i = monthly rate (annual ÷ 12), n = months. The calculator solves for either n (given a monthly amount) or M (given a deadline).
Getting the most from the math
- High-yield savings (3.5–5% in recent years) beats a checking account — the interest on a 5-year, $300/month plan can be $1,000+.
- Automate it: a standing transfer on payday turns "saving" into "never seeing the money".
- Emergency fund first: most advisors suggest 3–6 months of expenses before longer-term goals.
- Rate is an assumption: APY changes; the calculator uses it as a constant for planning, not a promise.
How the maths works
calc() solves the four quantities against each other — target, horizon, monthly contribution and annual rate — using monthly compounding rather than a simple-interest approximation, because over multi-year horizons the difference is large enough to change a plan. setMode() switches between "how long until I reach the target" and "what must I put aside each month", preserving the values you already typed so the two answers can be compared directly.
Assumptions and what they hide
Assumes a fixed rate, contributions on time and no withdrawals. Real savings products change their rates, promotional rates expire, and fees are deducted — all of which reduce the outcome. Inflation is not modelled, so the number shown is nominal: at 3% inflation, money ten years out buys roughly three-quarters of what it does today. Tax on interest is ignored.
Privacy: no account, no stored data
The amounts, rate and horizon are used for a local calculation only. Nothing is stored, and no financial product is contacted or recommended.
Frequently asked questions
Is the rate annual or monthly?
Annual — it is divided by twelve internally. Entering a monthly figure is the most common input error and inflates the result about twelvefold.
Does it account for inflation?
No. The output is nominal; discount it yourself if you want today's purchasing power.
Can I model a lump sum?
Set the monthly contribution to zero and use your starting balance. That gives the pure growth path for a single deposit.