INVESTING BASICS

Compound interest: how it works, with examples.

Understand the balance, the growth and the assumptions. Then try the numbers yourself.

In this guide

Compound interest means earning interest on your original money and on interest that stays in the account. Each period starts with the previous period’s balance. That can make growth accelerate over time, but the result depends on the rate, the time, what you add or withdraw, and the costs.

What is compound interest?

The starting amount is the principal. Interest is calculated using a rate and a period. If earned interest remains in the balance and earns interest in later periods, it compounds. If you remove the interest instead, that removed money cannot earn more inside the account.

Start with $1,000 and assume a constant 5% annual rate, compounded once a year. There are no deposits, withdrawals, fees or taxes in this first example.

End of year 1$1,050.00$50.00 interest that year
End of year 2$1,102.50$52.50 interest that year
End of year 3$1,157.63$55.13 interest that year

Year two’s $52.50 is 5% of $1,050. The extra $2.50 comes from earning 5% on the previous year’s $50 of interest. Year three begins with a larger balance again. The rate has not risen; the amount it applies to has. Calculations keep unrounded values internally and round the displayed dollars to cents.

The Consumer Financial Protection Bureau’s introduction uses the same $1,000 and 5% starting illustration. The longer comparisons and graphics here are our own educational calculations.

Simple interest vs. compound interest

Simple interest in this comparison uses the original principal every year. At 5% on $1,000, that is $50 each year. After ten years the total is $1,500: $1,000 plus ten lots of $50.

Compound interest uses the growing balance. At the same annual rate over ten years, the total is $1,628.89. Its $628.89 of accumulated interest is $128.89 more than the simple-interest example. Both started with exactly the same money.

Compound interestSimple interest

Diagram scrolls horizontally on small screens.

Simple versus compound interest, hypothetical ten-year example$0$900$1800Year 0Year 5Year 10
Original illustration. Hypothetical constant 5% annual rate; no deposits, fees, withdrawals or taxes. The curved line reflects interest remaining in the balance.

Compounding starts immediately, but the gap can look modest early on. Time and the rate matter. A chart that uses many decades or a very high assumed rate can look dramatic without telling you whether the assumption is realistic.

The compound-interest formula, step by step

For one initial deposit, a constant nominal annual rate and no later cash flows, the familiar formula is:

A = P × (1 + r ÷ n)n × t

With annual compounding, n = 1. The ten-year example is $1,000 × 1.0510 = $1,628.89. Multiplying by 1.05 means retaining the old balance and adding 5%; the exponent means doing that ten times.

When regular deposits are involved, each deposit has its own time in the account. The last $100 added has much less time to compound than the first. That is why you cannot apply the full ten-year growth factor to every dollar contributed during those ten years.

The monthly-deposit formula, if you want the extra detail

For M months, a monthly growth factor q, starting balance P and a deposit C at each month’s end:

A = P × qM + C × (qM − 1) ÷ (q − 1)

If q = 1, the result is simply P + C × M. Start-of-month deposits have one extra month of growth; multiply the deposit term by q. The calculator follows the balance month by month and gives the equivalent result. Its fee assumption changes q as explained below.

APY is not a rate to compound twice

Annual percentage yield, or APY, includes the effect of compounding. A nominal interest rate describes the rate before that effect. To compare hypothetical savings offers, keep the rate basis consistent, and check whether the rate can change and what account conditions apply.

The table holds a nominal 5% annual rate constant on $1,000 for one year. Only the frequency changes. This is formula arithmetic, not a claim that an account currently offers these terms.

Same $1,000 principal and 5% nominal annual rate; no other cash flows
FrequencyYear-end balanceEffective annual yield
Once a year$1,050.005.000%
Twice a year$1,050.635.063%
Quarterly$1,050.955.095%
Monthly$1,051.165.116%
Daily, 365 periods$1,051.275.127%

More frequent compounding increases the yield in this positive-rate example, but notice the scale: monthly rather than annual compounding adds about $1.16 in one year. The rate, time and contributions often matter more than that small frequency difference.

If a savings account quotes 5% APY, the one-year no-cash-flow example is $1,050, not $1,051.16. Applying “5% ÷ 12” to an APY compounds it again and overstates the result. Our calculator converts an effective annual rate to an equivalent monthly factor using (1 + rate)1/12. Its other choice is explicitly a nominal annual rate compounded monthly. Read the CFPB’s APY calculation appendix for the underlying yield concept and disclosure conventions.

Do not treat a credit-card APR as a savings APY. Borrowing terms, balances, grace periods and the way interest is calculated affect the amount owed. The CFPB explains daily credit-card interest calculations. This tool does not model credit-card payments or debt payoff.

What happens if you add $100 every month?

Now use these assumptions: $1,000 initially, $100 deposited at the end of each month, twenty years, and a constant 5% effective annual growth rate. Interest or returns stay in the balance. Fees, taxes, withdrawals and inflation are set to zero.

Separate the money added from the modeled growth
Part of the balanceAmount
Initial money$1,000.00
240 monthly deposits of $100$24,000.00
Total money deposited$25,000.00
Modeled growth$18,233.75
Final modeled balance$43,233.75

The entire $43,233.75 is not profit. You supplied $25,000. The remaining $18,233.75 is growth under the stated assumptions. If the return assumption changes, so does that number. Adding money at the beginning of each month produces a slightly different answer because each deposit gets one extra month.

Change one input at a time in the calculator. First set the rate to 0%. With the same deposits and twenty years, the balance should be $25,000. Then restore 5% and see the modeled difference. This is a useful way to check whether you understand what the tool is doing.

Try the compound interest calculator
YOUR SCENARIO WORKSPACE

See what changes the balance.

Change one assumption.
Read deposits and growth separately.
Every result is hypothetical.

Default hypothetical example: $1,000 start, $100 monthly deposits, 5% effective annual rate, 20 years.

Current scenarioILLUSTRATION · USD
Final modeled balance — not a forecast
$43,233.75
Your total deposits
$25,000.00
Modeled growth after fees
$18,233.75
Final balance in starting-date dollars
$43,233.75

With inflation set to 0%, the today-dollar estimate equals the nominal balance.

Modeled balanceMoney deposited

Diagram scrolls horizontally on small screens.

Hypothetical balances and deposits by yearGreen: hypothetical constant-rate balance. Dashed: deposits. Exact yearly values appear in the table. This is not a forecast.$0$21.6K$43.2KYear 0Year 10Year 20
Illustrative constant-rate path. Actual investments do not move smoothly like this. Exact model values appear in the table below.

Pin A for this visit, change an input and calculate B. Both use the same model. Nothing is saved between visits.

Read the year-by-year balance table
Nominal dollars, before taxes. Growth is balance minus deposits.
YearDepositedGrowth / lossBalance
0$1,000.00$0.00$1,000.00
1$2,200.00$77.26$2,277.26
2$3,400.00$218.38$3,618.38
3$4,600.00$426.56$5,026.56
4$5,800.00$705.14$6,505.14
5$7,000.00$1,057.66$8,057.66
6$8,200.00$1,487.80$9,687.80
7$9,400.00$1,999.44$11,399.44
8$10,600.00$2,596.67$13,196.67
9$11,800.00$3,283.76$15,083.76
10$13,000.00$4,065.21$17,065.21
11$14,200.00$4,945.73$19,145.73
12$15,400.00$5,930.27$21,330.27
13$16,600.00$7,024.04$23,624.04
14$17,800.00$8,232.50$26,032.50
15$19,000.00$9,561.39$28,561.39
16$20,200.00$11,016.71$31,216.71
17$21,400.00$12,604.81$34,004.81
18$22,600.00$14,332.31$36,932.31
19$23,800.00$16,206.18$40,006.18
20$25,000.00$18,233.75$43,233.75

Your 5% input is an effective annual rate (such as APY). Deposits arrive at the end of each month. Fees and inflation are 0%. Taxes and withdrawals are excluded.

$1,000 start · $100/month · 5% effective annual rate · 20 years · month-end deposits · 0% fees and inflation

Useful for your study session? Help keep the free tools going. Optional support, after the numbers.

For educational purposes only. This is not financial advice. This model excludes taxes, changing returns, withdrawals and specific account terms. Your entries are used locally by this calculator; its code does not send the amounts to our server or Analytics. Formulas and assumptions · Privacy.

Open the full calculator page →

Time changes the arithmetic; it does not remove risk

Holding the monthly example’s assumptions constant gives the following comparison. These are different saving periods, so the total contributed also changes. The thirty-year row is not simply the ten-year result multiplied by three.

$1,000 initial + $100 at each month’s end; hypothetical 5% effective annual rate
YearsDepositedModeled growthFinal balance
10$13,000.00$4,065.21$17,065.21
20$25,000.00$18,233.75$43,233.75
30$37,000.00$48,859.53$85,859.53

Earlier money has more periods to grow, but a longer horizon does not guarantee a positive investment result. Your ability to leave money untouched matters, and the future rate remains uncertain. A large model result is not a reason to increase risk or use money needed for near-term expenses.

The rule of 72 is a rough shortcut for doubling time with a positive, constant annual growth rate: 72 ÷ rate in percent. At 6%, it suggests twelve years. Exact annual compounding gives about 11.9 years. It is an approximation with no deposits, withdrawals, fees or taxes; it becomes less accurate at extreme rates and is not useful at zero or negative growth.

Do stocks earn compound interest?

A stock is an ownership interest, not a bank account promising a stated interest rate. Its total return can include price changes and distributions such as dividends. Keeping money invested and reinvesting distributions can support compound growth, but prices and distributions can fall. The SEC’s investing introduction distinguishes investment returns, compound growth and risk.

Reinvestment does not create free profit out of a dividend payment. A distribution changes where value is held; market pricing, costs and taxes still matter. Do not add a dividend yield on top of a total-return assumption that already includes reinvested dividends: that would count the same component twice.

The calculator applies one constant growth factor every month. A real stock portfolio does not follow that path, and an average yearly return does not tell you the sequence of gains and losses. It also does not model withdrawals during market declines. Review trading vs. investing, ETF holdings and costs, and the risk-management guide before connecting this arithmetic to an investment.

Fees, taxes and inflation change what you keep

A small annual cost repeats for many years

Compare a hypothetical $10,000 starting balance, no further deposits and a constant 6% effective annual return for thirty years. Without fees, the model ends at $57,434.91. Apply a 1% effective annual balance charge in the model and it ends at $42,484.63—a difference of $14,950.29.

No fee assumption1% annual fee assumption

Diagram scrolls horizontally on small screens.

Hypothetical thirty-year fee comparison$0k$30k$60kYear 0Year 15Year 30
Original model: growth factor 1.06 × fee factor 0.99 = 1.0494 per year, equivalent to 4.94% net growth. This is a simplified balance charge, not a reproduction of any fund’s billing method.

The $14,950.29 difference includes growth that the removed money no longer earns. It is not a total of actual fee invoices. Fees can be assessed in other ways, and expenses, trading costs and account charges can differ. Check the actual documents. The SEC’s fees bulletin explains why costs reduce both the money invested and its opportunity to earn returns.

Taxes are outside this tool

Interest, dividends, realized gains and account types can have different tax treatment. Reinvestment alone does not determine whether income is taxable; the IRS explains dividend types and taxable-income reporting. This calculator does not determine tax liability or eligibility for a retirement account. Its displayed balance is not a spendable after-tax estimate.

A future dollar may buy less

Inflation is a rise in the general price level; it reduces purchasing power. For illustration, discount the twenty-year $43,233.75 result by a constant 3% annual inflation assumption. Its approximate value in the starting date’s dollars is $23,937.48:

Today-dollar estimate = future balance ÷ (1 + inflation rate)years

That does not mean $19,296.27 is a cash fee. It is a change in the units used to describe purchasing power. Also, the $25,000 of total deposits was counted in nominal dollars at different dates. Subtracting it from the today-dollar estimate would mix units and would not calculate a real investment gain. The Bureau of Labor Statistics discusses inflation and purchasing power.

Losses also compound

Suppose a $1,000 investment rises 20% one year and falls 20% the next, with no cash flows. It becomes $1,200, then $960. The arithmetic average of +20% and −20% is 0%, yet the ending balance is 4% below the start.

Diagram scrolls horizontally on small screens.

Plus twenty percent, then minus twenty percent, leaves a four percent loss$1,000Start$1,200After +20%$960After −20%
Original illustration with no deposits, fees or taxes. Each percentage applies to a different starting balance. The same two returns in reverse order also end at $960 when there are no intervening cash flows.

The compound annual growth rate in this two-year example is about −2.02%, because √0.96 − 1 ≈ −0.0202. That describes the start-to-end change; it does not show the volatility within the period.

With money being added or withdrawn between returns, their order can affect the final balance. A constant-rate tool cannot show that sequence risk. And a 50% loss needs a 100% gain on the remaining money to recover, not a 50% gain. Try the drawdown exercise for that arithmetic. Compounding is a mechanism, not protection against permanent loss.

Averages can hide what happened to your money

Need a cash-flow refresher? Separate money deposited from the account’s dollar gain.

The gain-and-loss example above has no deposits: reversing the same two returns leaves the same ending balance. Now change the question. What happens when new money enters between those returns?

Now add $1,000 between the two years. After a gain first, $1,000 becomes $1,200; add $1,000, then lose 20%, leaving $1,760. After a loss first, $1,000 becomes $800; add $1,000, then gain 20%, leaving $2,160. Both examples contain the same two returns and the same $2,000 total contributed. Their ending balances differ by $400 because the second return acts on different amounts.

Original two-year exercise; no taxes or fees
StepGain, then lossLoss, then gain
Starting balance$1,000$1,000
After year one$1,200$800
Add $1,000$2,200$1,800
After year two$1,760$2,160
Balance minus contributions−$240+$160

This does not tell you which market path will happen, or establish a trading strategy. It explains why a published average return cannot, by itself, tell you what a person earned while making deposits. Withdrawals create their own timing effects. This calculator has no withdrawal input and cannot test a retirement spending sequence.

Three different questions about performance

“What was the investment’s compounded change?” is different from “What happened to my account after my deposits?” and “How much purchasing power do I have?” The first needs the investment’s return history. The second needs dated cash flows as well as returns. The third also needs an inflation convention. A balance screenshot does not supply all three answers.

Consider a $10,000 account that ends at $13,000 after you deposited $2,000 during the year. The simple dollar difference after subtracting the deposit is $1,000, before any omitted activity. Calling that a 10% personal return assumes the timing question away. Money contributed in January has much more exposure than money contributed on the last day of December. Keep the deposit dates if you want to investigate an account-performance calculation.

Use a range without pretending it is a probability

For the $1,000 start and $100 month-end deposit example, twenty years at a constant 2%, 5% or 7% effective annual rate gives approximately $30,909.11, $43,233.75 or $54,623.32. All three use $25,000 of contributions, no fees and no taxes. These are three selected mathematical assumptions. They are not a confidence interval, a worst case, an expected case or a forecast of stocks.

A useful comparison explains what would need to remain true: the contribution continues every month, the rate is constant, no money is withdrawn, and the other omitted costs stay outside the calculation. If real life changes one of those conditions, revise the scenario. Do not increase the assumed return just to make a desired ending number appear.

Practice: does a 5% return minus 3% inflation equal exactly 2%?

No. With no cash flows, the purchasing-power growth factor is 1.05 ÷ 1.03, so the exact real return is about 1.94%. A $10,000 balance grows to $10,500 nominally and about $10,194.17 in starting-date dollars. Subtraction gives a useful rough approximation at modest rates, but the ratio gives the exact result under these assumptions. Inflation is not an extra withdrawal from the account.

Practice: which comparison changes something you supply?

Increasing the monthly deposit from $100 to $150 at the same 5% rate changes total contributions from $25,000 to $37,000 and the modeled ending balance to $63,523.97. Raising only the assumed rate to 7% leaves contributions at $25,000 and models $54,623.32. The first comparison includes more money supplied; the second assumes a different investment result. Neither tells you what you can afford or what markets will deliver.

When your deposits change, divide the question into stages

A contribution pause changes cash flows without necessarily ending the growth period. In the fictional 5% effective-annual-rate example, $1,000 initially plus $100 at each month’s end grows to about $8,057.66 after five years; five more years with no deposits gives about $10,283.84. The saver supplied $7,000 across both stages, so modeled growth is about $3,283.84. These are constant-rate assumptions, not a prediction.

Use the calculator’s contribution-pause walkthrough to build those two stages and keep a scenario record. Carry the unrounded first ending balance forward for an exact calculation, and do not add the two runs’ contribution totals: the second starting balance already includes the first stage’s contributions and growth.

Keep a short scenario note with the starting amount, deposit timing, rate basis, fee assumption, inflation assumption and excluded cash flows. The calculator’s detailed worked examples show how to audit those inputs. Compare the principal in the formula above with the glossary definitions of yield and total return when another source uses a term differently.

Three checks before you trust a compound-interest number

  1. Identify the rate. Is it APY, a nominal interest rate or an assumed investment return? Is it fixed, variable or hypothetical?
  2. Separate cash flows. How much did you add? When did you add it? Were interest or dividends retained, or withdrawn?
  3. Name what is missing. Fees, taxes, inflation, changing rates, investment losses, withdrawal timing and account conditions can change the result.
Practice: $2,000 at 0%, plus $50 a month for five years. What is growth?

There are sixty deposits totaling $3,000. Add the $2,000 start: the balance is $5,000. Modeled growth is $0, assuming no fees. A bigger balance came entirely from adding money.

Practice: can a 5% APY be divided by twelve and compounded again?

No. APY already incorporates the compounding effect. Use an equivalent monthly factor of 1.051/12, or work directly with the annual effective rate. A 5% nominal annual rate compounded monthly is a different input.

Practice: does the calculator’s 5% curve say stocks will return 5%?

No. It answers what the balance would be if the chosen constant rate and cash-flow assumptions held. The rate is not a forecast, a recommended return or evidence of an investment’s performance.

For a practical study session, run the 0% case, the no-monthly-deposit case and the fee example. Write down what changed and what stayed constant. Save your assumptions and open questions in the research notebook. You can learn the mathematics without placing a trade.

Core checkpoint: explain what you found

Explain the rate convention and deposit timing, separate total contributions from growth, and name what the constant-rate model leaves out. Keep fees, inflation and losses in view; an ending balance is a scenario result, not a promised outcome.

You can stop with that record and choose a next step below, or continue with the optional extensions.

Choose your next practical step

Optional deeper practice

Work backward from a goal to a monthly contribution

The calculator above answers “What might this saving pattern grow to?” A second useful question is “What saving pattern would reach this target under a stated assumption?” Keep the target, starting balance and deadline separate from the assumed rate. Raising the rate until the screen shows your preferred answer does not make that rate available or achievable.

Here is an original hypothetical plan: start with $2,000, aim for $10,000 in five years, and contribute at the end of each of 60 months. Assume a constant 5% effective annual growth rate, with no fees, taxes or withdrawals. Convert the effective annual rate to a monthly growth factor: q = 1.051/12. This is about 1.00407412, meaning approximately 0.407412% monthly growth. Using 5% ÷ 12 would impose a different rate convention.

If P is the starting balance, G is the goal, M is the number of months and C is the end-of-month contribution, then C = (G − PqM) × (q − 1) ÷ (qM − 1). This is the earlier deposit formula rearranged, not a different growth model. Substituting P = $2,000, G = $10,000 and M = 60 gives C ≈ $109.82 a month. The displayed amount is rounded; $109.83 rounds upward to the next cent under this model.

Before trusting that result, perform a no-growth check. At a 0% rate the required monthly contribution is simply ($10,000 − $2,000) ÷ 60 = $133.33 repeating, or $133.34 rounded upward. The formula containing q − 1 must use this separate zero-rate case to avoid division by zero. The difference between these contributions is the effect of assumed growth, not money that has already been earned. Investor.gov’s Savings Goal Calculator offers another way to explore target-based saving; compare its rate and compounding settings before comparing outputs.

Specify whether the goal is in today’s or future dollars

A target of “$10,000” needs a date attached to its purchasing power. Suppose $10,000 is the cost of something today, and you use a hypothetical 3% annual increase in its price for five years. The future-dollar target becomes $10,000 × 1.035 = $11,592.74. Keeping every assumption from the preceding example except the target raises the calculated monthly contribution to approximately $133.31.

That does not mean every purchase will rise with general inflation or that 3% is a forecast. A particular tuition bill, repair or travel expense may change differently. It means the units need to agree: future account dollars should be compared with a future-dollar cost. If a supplier has already quoted a fixed $10,000 payment due in five years, multiplying that same quote by inflation again would double count the adjustment.

Self-check: did the higher contribution come from a lower investment rate?

No. The assumed investment rate remains 5% effective annually. Only the goal changed from $10,000 to $11,592.74. The monthly requirement rose by about $23.49. In another valid model, you could express both the portfolio and target in today’s purchasing power, but you would also need to express contributions consistently. Mixing a real return with an already inflated target creates inconsistent units.

Use the model to expose demanding assumptions

What rate would turn $2,000 into $10,000 in five years with no further contributions? Rearranging the lump-sum formula gives (10,000 ÷ 2,000)1/5 − 1 ≈ 37.97% per year. That is the mathematical requirement under constant annual compounding. It is not evidence that such a return can be obtained, a forecast, or a reason to select a riskier investment. The useful conclusion is that the target, deadline, contributions and growth assumption must be reviewed together.

Also inspect numerical precision. Rounding the monthly rate from approximately 0.407412% to 0.41% before compounding produces about 5.0325% effective annual growth, instead of exactly 5%. Keep full precision inside a calculation and round displayed currency at the end; round actual required deposits upward when testing a cents-only schedule. Small rounding errors become easier to notice over long horizons.

Finally, a constant rate is an assumption that can be replaced with dated periods. If a fictional $1,000 earns 4% annually for two years and 2% annually for the next three, its ending balance is $1,000 × 1.04² × 1.02³ = $1,147.80 before costs or taxes. Applying the original 4% for all five years would ignore the rate change. A useful worksheet records each period’s rate, cash flows and units so another reader can reproduce the result.

Additional source and calculation check: November 1, 2026. All rates and targets in this extension are hypothetical; none represents a quoted savings product or promised investment return.

Sources, calculations and limitations

Original guide written October 10, 2026; expanded examples and linked definition sources checked October 25, 2026. Original examples and charts use unrounded calculations, with displayed dollars rounded to cents. The calculators are free and run locally in your browser; their code does not transmit input amounts to our server or Analytics. If you allow Analytics, a fixed calculator-use event may be recorded without your inputs. No account, stored financial profile or broker connection.

Calculator conventions: whole years from 0 to 50; monthly deposits and a constant rate; no withdrawals; effective annual rate converted to an equivalent monthly factor, or nominal annual rate divided by twelve for monthly compounding. The optional annual fee is an effective balance charge applied evenly over twelve monthly factors. Inflation discounts the final balance only. It does not adjust each deposit, calculate a personal inflation rate or estimate taxes. Actual bank crediting, changing rates, market returns, fees and cash-flow dates may produce different results.

For educational purposes only. This is not financial advice. No investment result is promised. See our editorial standards and privacy details.

Keep the useful part.

Mark the lesson when you’ve worked through it. Then try one fact from an original source in the research notebook.

More market notes, and more Briana.