Compound Interest Calculator: How the Formula Works and How to Use It
Standard compound-interest math (lump sum, contributions, APY, inflation-adjusted real wealth), plus optional modeling: contribution vs. compounding frequency, raises on savings, employer match, milestones, year-by-year export, delay comparison, and shareable links. Free; all calculations run in your browser.
How compound interest is calculated
The standard formula
- A (Future value):The balance at the end of the period—the "Nominal" result before inflation adjustment.
- P (Principal):Your initial deposit or investment. The starting amount that earns interest over time.
- r (Annual interest rate):The stated annual rate as a decimal (e.g. 7% → r = 0.07). Enter the percentage; we convert it.
- n (Compounding frequency):How many times per year interest is applied. Annual = 1, monthly = 12, daily = 365. We also support biweekly (26), semimonthly (24), weekly (52), and continuous.
- t (Time in years):The length of the investment. The formula compounds over n×t total periods (e.g. 30 years × 12 months = 360 for monthly).
- Scope & limits:Inflation uses the rate you enter for real (purchasing-power) figures. Tax treatment is not modeled. All math runs in your browser; no data is sent to servers. Results are estimates—for major decisions, consult a qualified professional.
For continuous compounding we use
Compounding frequency and APY
How frequency affects returns
- Annual (n=1):Interest applied once per year. Lowest effective yield but simplest to reason about.
- Monthly (n=12):Common for savings and many investments. Interest applied 12 times per year.
- Daily (n=365):Typical for high-yield savings. Slightly higher effective yield than monthly.
- Continuous:Theoretical maximum (infinite periods per year). Shown as an upper bound; real accounts use discrete compounding.
APY vs. stated rate
- Stated rate:The advertised rate (e.g. 7% per year).
- APY:Effective annual yield. For example, 7% compounded monthly gives APY ≈ 7.23%; compounded daily, ≈ 7.25%.
- Why it matters:When comparing savings or investment options, always compare APYs—they reflect what you actually earn.
Real value and inflation
Nominal vs. real future value
- Nominal value:The actual balance at the end of the period (e.g. $1,000,000 in 30 years).
- Real value:Purchasing power in today’s dollars. At 3% inflation, $1M in 30 years ≈ $411K in today’s dollars.
- Inflation gap (in the breakdown):Nominal minus real at the horizon—a single number for how much of the headline balance is “paper” vs. today’s purchasing power.
- Formula:where i is the annual inflation rate and t is time in years.
To build real wealth, your return should meaningfully exceed expected inflation. A 7% return with 3% inflation implies about 4% real growth.
Optional features in this tool
What you can turn on
- Contribution frequency:Independent from compound frequency—e.g. biweekly deposits into a monthly-compounding account.
- Annual contribution increase:Grows the per-period contribution each year (e.g. to mimic raises).
- Ages / horizon:Optional current and target age can set years until a goal and feed milestone timing in the analysis section.
- Employer match:Match rate, cap as % of salary, and salary—employer dollars are tracked separately in the breakdown.
- Analysis & detail:Milestone strip, collapsible year-by-year table with CSV export, and a light-themed frequency comparison table (same growth/match assumptions as the main result).
- Delayed start comparison:See wealth lost if investing starts later with a shorter horizon, plus chart overlay when enabled.
- Share:Copy link encodes inputs in the URL via replaceState.