How the compound interest calculator works: the formula with contributions
Compound interest means you earn interest on your interest. Each period, the interest earned is added to the balance, and the next period's interest is calculated on that larger amount. For a single deposit, the growth follows one formula:
- A
- Amount after t years
- P
- Initial deposit (principal)
- r
- Annual interest rate as a decimal (7% is 0.07)
- n
- Compounding periods per year: 1 annually, 4 quarterly, 12 monthly, 365 daily
- t
- Number of years
- PMT
- Contribution added each period
Regular contributions form an annuity. When you add PMT at the end of every compounding period, their combined value is:
The total is the two pieces added together. Contributions made at the start of each period earn one extra period of interest, so multiply the annuity part by (1 + r/n). With continuous compounding, the single-deposit formula becomes A = Pert.
When contributions and compounding don't line up
Many accounts compound daily or quarterly while you contribute monthly. The calculator converts the compounding into an equivalent monthly growth rate and applies it month by month, adding contributions at the start or end of each month (or once a year, if you choose yearly contributions):
Three related figures appear in the results. The effective annual yield is (1 + r/n)n − 1, the rate you actually earn in a year once compounding is counted; banks call it APY. The doubling time is ln 2 ÷ ln(1 + yield); the Rule of 72 approximates it as 72 divided by the rate. And the today's dollars figure divides the final balance by (1 + inflation)t, so you can judge what the money will buy.
Worked examples: frequency, time and contributions
Start with $10,000 at 5% for 10 years and no further deposits. More frequent compounding helps, but the gains shrink quickly:
| Compounding | Ending balance | Interest earned | Effective yield |
|---|---|---|---|
| Annually | $16,288.95 | $6,288.95 | 5% |
| Semiannually | $16,386.16 | $6,386.16 | 5.063% |
| Quarterly | $16,436.19 | $6,436.19 | 5.095% |
| Monthly | $16,470.09 | $6,470.09 | 5.116% |
| Daily | $16,486.65 | $6,486.65 | 5.127% |
| Continuously | $16,487.21 | $6,487.21 | 5.127% |
Moving from monthly to daily compounding adds only $16.56 over a decade. The rate you earn and the time you leave the money invested matter far more than the compounding schedule.
A long-term plan: $10,000 plus $500 a month at 7%
Contribute $500 at the end of every month on top of a $10,000 starting balance, and assume a 7% annual return compounded monthly. After 20 years the account holds $300,850.72. You put in $130,000.00; the other $170,850.72 is interest. The contributions alone grow to $260,463.33, which is exactly what the annuity formula above gives.
| Variation | Ending balance | Interest earned |
|---|---|---|
| 20 years, deposits at month end | $300,850.72 | $170,850.72 |
| Only 10 years | $106,639.02 | $36,639.02 |
| Deposits at month start | $302,370.09 | $172,370.09 |
| Contributions rise 3% a year | $367,509.35 | $196,287.10 |
| 6% after a 1% annual fee | $264,122.49 | $134,122.49 |
Doubling the time from 10 to 20 years more than doubles the balance, because the second decade compounds a much larger base. Depositing at the start of each month adds $1,519.37. A 1% annual fee costs $36,728.23 over the 20 years. In today's dollars, at 2.5% inflation, the $300,850.72 would buy what $183,600.45 buys now.
How to make compound interest work harder
The formula has only a handful of inputs, and each one points to a lever you control. They are not equally powerful.
| Lever | What to do | Why it works |
|---|---|---|
| Time (t) | Start now, even with small amounts | Growth is exponential in t; late years add the most dollars. |
| Rate (r) | Cut fees; keep long-term money out of 0% accounts | Every point of fee or lost yield compounds against you. |
| Contributions (PMT) | Automate them and raise them with your pay | Regular deposits give compounding more to work on. |
| Taxes | Use tax-advantaged accounts where you can | Interest that isn't taxed each year keeps compounding. |
| Compounding (n) | Prefer daily or monthly, but don't chase it | The difference is real but small. |
Choosing a realistic rate
For a savings account or CD, use the APY the bank quotes, and remember that savings rates can change; for a Treasury bill, use its investment rate, which the T-bill vs CD calculator works out from the auction's discount rate. For investments, no rate is guaranteed: stocks have historically outpaced savings over long periods but with large swings from year to year, and past returns do not predict future ones. A sensible habit is to run the calculator at a cautious rate and an optimistic one and plan around the cautious result. For cash you may need soon, see the high-yield savings calculator; if you carry high-interest debt, compounding is working against you, and the debt payoff calculator shows how to reverse it.
The bottom line
Compound interest rewards time and steady contributions more than anything else you control. In the 20-year example the account reaches $300,850.72, of which $170,850.72 is interest, and a one-point fee would cost $36,728.23 of that ending balance.
Start early, automate contributions, keep costs low, and check the inflation-adjusted figure in the compound interest calculator so you plan with what the money will buy, not just its face value.
Frequently asked questions
What is the compound interest formula with monthly contributions?
Add two parts. The starting balance grows as P(1 + r/n)^(nt). Monthly contributions made at the end of each month grow as PMT × ((1 + r/12)^(12t) − 1) ÷ (r/12) when interest also compounds monthly. If you contribute at the start of each month, multiply the contribution part by (1 + r/12). When the compounding frequency differs from the contribution frequency, convert the rate to an equivalent monthly rate first, as this calculator does.
How much will $10,000 grow in 10 years?
It depends on the rate. At 5% compounded monthly, $10,000 grows to $16,470.09 in 10 years, earning $6,470.09 of interest. At 5% compounded annually it reaches $16,288.95. Enter your own rate and any regular deposits in the calculator to see your exact figure.
Does daily compounding earn much more than monthly compounding?
Only a little. $10,000 at 5% for 10 years grows to $16,486.65 with daily compounding and $16,470.09 with monthly compounding. The rate itself, how much you contribute and how long you stay invested have a much larger effect.
What is the Rule of 72?
The Rule of 72 is a shortcut for doubling time: divide 72 by the annual rate. At 7%, money doubles in roughly 72 ÷ 7 ≈ 10.3 years. The exact doubling time is ln 2 ÷ ln(1 + effective annual yield), which the calculator shows next to the shortcut.
Is it better to contribute at the start or the end of the month?
Contributing at the start of the month gives each deposit one extra month of growth. In a plan of $10,000 plus $500 a month at 7% for 20 years, that adds $1,519.37. The difference is modest; contributing consistently matters more than the exact day.
How does inflation affect compound interest?
Inflation reduces what your future balance can buy. To see the real value, divide the future amount by (1 + inflation rate)^years; the calculator's inflation-adjusted growth figure does this for you. At 2.5% inflation, $300,850.72 in 20 years buys about what $183,600.45 buys today. Your real rate of return is roughly your interest rate minus inflation.
Sources and further reading
- Compound Interest Calculator (opens in a new tab), Investor.gov, U.S. Securities and Exchange Commission
- Savings Goal Calculator (opens in a new tab), Investor.gov, U.S. Securities and Exchange Commission
- Consumer Price Index (opens in a new tab), U.S. Bureau of Labor Statistics
Related calculators
- High-Yield Savings CalculatorCompare high-yield savings, a traditional account and a CD at today's rates.
- Debt Snowball vs. Avalanche CalculatorInterest compounds against you on debt; find the fastest way to pay it off.
- 1099 vs W-2 CalculatorChoosing between a salary and freelancing? See which leaves more to invest after tax and benefits.