In short
- A starting balance grows by PV * (1 + i)^N; regular deposits grow by C * ((1 + i)^N - 1) / i. The calculator adds both.
- Nominal 6% compounded monthly is an effective annual yield of 6.1678%, which is the figure that makes accounts comparable.
- Compounding frequency matters far less than rate or time: annual to daily at 5% adds about 1.2% over ten years.
- The rule of 72 is exact near 8% and drifts at the extremes; the precise answer is ln(2) / ln(1 + rate).
- $250 a month for 40 years and $500 a month for 20 years contribute the same cash and end more than $260,000 apart.
On this page
- Two formulas, then one
- A worked example, done by hand
- Nominal rate versus effective annual yield
- What changing the compounding frequency actually does
- Doubling time, and how far to trust the rule of 72
- Why time matters more than the size of the contribution
- Where each input comes from
- How to read the result
- What this model leaves out
- Common mistakes
A compound interest calculator answers a question with two moving parts: what does money already invested grow into, and what does a stream of regular contributions add on top of it?
Those are separate calculations with separate formulas. A starting balance grows geometrically and needs nothing further from you. A monthly contribution builds a series in which each deposit compounds for a different length of time -- the first one for the whole period, the last one for a single month. Adding them gives the ending balance.
The return you enter is an assumption, not a forecast. Real portfolios do not deliver the same percentage every year, and some years are negative. Everything below is arithmetic about a chosen rate, which is useful precisely because it isolates what the rate, the term and the deposit each contribute.
Two formulas, then one
The starting balance follows the standard compound growth equation:
Formula:
FV = PV * (1 + i)^NwherePVis the starting balance,iis the rate per compounding period (annual rate / periods per year), andNis the total number of periods (years x periods per year).
The contributions follow the future value of an ordinary annuity, which assumes each deposit lands at the end of its period:
Formula:
FV = C * ((1 + i)^N - 1) / iwhereCis the contribution per period. The bracketed term is the sum of a geometric series: one deposit compounds forN-1periods, the next forN-2, and so on down to the last, which earns nothing.
The calculator runs both and adds them:
Formula:
Ending balance = PV * (1 + i)^N + C * ((1 + i)^N - 1) / i
When the compounding frequency is not monthly, the calculator converts the monthly contribution into the equivalent amount per compounding period -- annual compounding means one deposit of twelve months' contributions at the end of each year.
A worked example, done by hand
Take $1,000 starting, $250 a month, an assumed 6% annual return, 25 years, compounded monthly.
- Rate per period: 0.06 / 12 = 0.005. Periods: 25 x 12 = 300.
- Growth factor: (1.005)^300 = 4.46496981.
- Starting balance grows to: 1,000 x 4.46496981 = $4,464.97.
- Annuity factor: (4.46496981 - 1) / 0.005 = 3.46496981 / 0.005 = 692.993962.
- Contributions grow to: 250 x 692.993962 = $173,248.49.
- Ending balance: 4,464.97 + 173,248.49 = $177,713.46.
Worked example: You put in 1,000 + (250 x 12 x 25) = $76,000. The balance is $177,713.46, so growth is $101,713.46, which is 57.2% of the final balance. The $1,000 starting balance accounts for only $3,464.97 of the growth; the rest comes from the deposits.
Nominal rate versus effective annual yield
The rate you type is a nominal annual rate. It is divided into periods and applied period by period, so the amount actually earned over a year is slightly higher than the nominal figure.
Formula:
APY = (1 + nominal rate / f)^f - 1, wherefis compounding periods per year.
At 6% compounded monthly: (1 + 0.005)^12 - 1 = 0.0616778, an effective 6.1678% a year. That is the figure the calculator reports as the effective annual yield, and it is the number that makes two accounts with different compounding schedules comparable. Deposit accounts are typically advertised as an APY for exactly that reason.
What changing the compounding frequency actually does
Less than most people expect. The table isolates the effect using a single $10,000 lump at an assumed 5%, held ten years with no contributions.
| Compounding | Effective annual yield | Balance after 10 years | vs annual |
|---|---|---|---|
| Annually | 5.0000% | $16,288.95 | -- |
| Twice a year | 5.0625% | $16,386.16 | +$97.21 |
| Quarterly | 5.0945% | $16,436.19 | +$147.24 |
| Monthly | 5.1162% | $16,470.09 | +$181.14 |
| Daily | 5.1267% | $16,486.65 | +$197.70 |
Going from annual to daily compounding over a decade adds about 1.2% to the ending balance. The jump from annual to monthly captures most of it; everything beyond monthly is rounding by comparison. The rate itself, and the number of years, matter enormously more.
The same run with the calculator's default inputs -- $1,000 start, $250 a month, an assumed 6%, 25 years -- gives $168,885.41 annually, $176,034.33 quarterly, $177,713.46 monthly and $178,537.97 daily. Note that part of that spread is contribution timing, not compounding: at annual frequency, twelve months of deposits sit and wait until the end of the year before they start earning.
Doubling time, and how far to trust the rule of 72
Divide 72 by the rate written as a percentage and the answer is roughly the number of years a balance needs to double. As mental arithmetic it is remarkably good, and around 8% it is very nearly exact.
| Assumed annual rate | Rule of 72 | Exact doubling time |
|---|---|---|
| 2% | 36.0 years | 35.00 years |
| 4% | 18.0 years | 17.67 years |
| 6% | 12.0 years | 11.90 years |
| 8% | 9.0 years | 9.01 years |
| 10% | 7.2 years | 7.27 years |
| 12% | 6.0 years | 6.12 years |
| 15% | 4.8 years | 4.96 years |
| 20% | 3.6 years | 3.80 years |
The exact figure is ln(2) / ln(1 + rate). The approximation drifts at both ends: it is a year too slow at 2% and a fifth of a year too fast at 20%. The calculator reports the exact doubling time using the effective yield, so at 6% compounded monthly it shows 11.58 years rather than 12 -- the compounding raises the effective rate to 6.1678%, which doubles slightly faster.
Why time matters more than the size of the contribution
Both raise the ending balance, but only one of them compounds. Contributing twice as much for half as long puts identical money in and produces a very different result.
| Path (assumed 6%, monthly, no starting balance) | Total contributed | Ending balance |
|---|---|---|
| $250 a month for 40 years | $120,000 | $497,872.68 |
| $500 a month for 20 years | $120,000 | $231,020.45 |
The difference is $266,852.23 on the same cash, because the early deposits have decades of compounding behind them. The same effect appears in the growth share over time, using the default inputs:
| Years | Total contributed | Ending balance | Growth | Growth as share of balance |
|---|---|---|---|---|
| 5 | $16,000 | $18,791.36 | $2,791.36 | 14.9% |
| 10 | $31,000 | $42,789.23 | $11,789.23 | 27.6% |
| 15 | $46,000 | $75,158.77 | $29,158.77 | 38.8% |
| 20 | $61,000 | $118,820.43 | $57,820.43 | 48.7% |
| 25 | $76,000 | $177,713.46 | $101,713.46 | 57.2% |
| 30 | $91,000 | $257,151.34 | $166,151.34 | 64.6% |
| 40 | $121,000 | $508,830.14 | $387,830.14 | 76.2% |
Growth passes contributions somewhere between years 20 and 25 at this rate. Before that, the balance is mostly your own money; after it, mostly compounding.
Where each input comes from
Starting balance. What is invested today in the account you are modeling. Keep separate accounts in separate runs if their assumptions differ.
Monthly contribution. The amount you actually add. For tax-advantaged accounts, the 2026 elective deferral limit for 401(k)-type plans is $24,500, with an $8,000 catch-up at 50 and over and $11,250 at ages 60 to 63; the IRA limit is $7,500 with a $1,100 catch-up. Employer contributions are additional and can be entered here as part of the monthly figure.
Assumed annual return. This is the input the answer is most sensitive to, and the one nobody can know. Running the page at several rates -- a pessimistic, a central and an optimistic figure -- is more informative than a single number.
Years. The second most important input, and often the most controllable.
Compounding frequency. Match the account: deposit accounts commonly compound daily or monthly, while a broad market fund has no compounding schedule at all and monthly is a reasonable modeling choice.
How to read the result
The ending balance is a projection under one fixed assumption, not a prediction. Its most useful property is comparison: the same run at 5% and at 7% brackets a plausible range, and the gap between those two numbers is the honest measure of uncertainty.
The growth share tells you how much of the balance came from compounding rather than from deposits, which is a direct measure of how much time has done. A 25-year run at 6% is 57.2% growth; a 5-year run is 14.9%.
The ending balance is in nominal dollars. To see what it buys, run it through the inflation calculator, or use the savings goal calculator to work backwards from a target instead.
What this model leaves out
- Volatility. A real portfolio does not return the same percentage every year. Two portfolios averaging the same return can end at different values depending on the order of the returns, because a loss early on removes capital that would have compounded.
- Taxes. Interest, dividends and realized gains may be taxable outside a tax-advantaged account.
- Fees. Expense ratios and advisory fees come out of the return, so a 6% gross return may be a lower net figure.
- Inflation. All figures are nominal. A given balance buys less at the end than the same balance would today.
- Contribution timing. Deposits are treated as landing at the end of each period. Depositing at the start of each period multiplies the annuity portion by (1 + i), a small increase.
- Contribution changes. The monthly amount is constant; in practice, contributions often rise with income.
- Withdrawals. Nothing is taken out during the period.
Common mistakes
Reading the ending balance as an expectation. It is arithmetic on an assumption. The output is only as good as the rate typed in.
Chasing compounding frequency. As the table shows, moving from annual to daily compounding at 5% adds roughly 1.2% over ten years. The rate and the horizon dominate.
Confusing nominal rate with APY. Comparing a nominal rate against another account's APY overstates one of them. Convert both to APY first.
Forgetting inflation when the horizon is long. A 40-year projection in today's dollars is a different number from the same projection in nominal dollars.
Assuming a smooth path. The curve on the page is the average outcome of a constant rate; a real balance wanders around it, sometimes far below. The credit card payoff calculator shows the same mathematics running against you, and the full calculator index covers the rest of the picture.
Frequently asked questions
What is the compound interest formula?
What is the difference between a nominal rate and APY?
How much does compounding frequency really matter?
Is the rule of 72 accurate?
Why does starting earlier matter more than contributing more?
Does this projection account for inflation and taxes?
Why will a real portfolio not follow this curve?
When are the contributions assumed to be made?
Sources and further reading
Where this page relies on a published formula, an official figure or a legal rule, the primary source is listed here. External links open in a new tab and we earn nothing from them.
Related calculators
All money tools →- Money
Savings Goal Calculator: How Long, and How Much a Month
One annuity equation, solved three ways: time to reach a goal, the deposit needed to hit a deadline, and how much of the total the account actually contributes.
- Money
Inflation Calculator: What It Costs Later, What It's Worth Now
One growth factor produces every output: future cost, present value, cumulative price change, buying power lost, and the years it takes prices to double.
- Money
Mortgage payment calculator: what the monthly number is made of
Price, down payment, rate and term set the principal and interest. Taxes, insurance, PMI and HOA set the rest. This page shows exactly how the payment is built.