Savings habits

Compound Interest: How It Works and How to Calculate It

Learn what compound interest is, use the formula, and compare worked examples for lump sums, monthly deposits, withdrawals, and compounding frequency.

Published Updated 8 min read Compound interest and savings
A glass jar of coins with a small plant growing from it on a bright desk.

Compound interest means earning interest on your starting money and on interest already added to the balance. The effect builds over time because each interest payment can become part of the amount earning the next payment.

Use the compound interest calculator to try your own starting balance, rate, term, and deposits or withdrawals. This guide explains the formula and shows how to reproduce the results.

All worked amounts below are US dollars (USD). Rates are hypothetical and constant; they are not account offers or investment forecasts. Changing the calculator's currency label does not convert an example's amounts.

What is compound interest?

Your starting amount is the principal. When interest is added to it, the next interest calculation uses the larger balance, provided the interest stays in the account.

For example, start with $1,000 at 5% a year, compounded annually, with no deposits or withdrawals:

YearStarting balanceInterest earnedEnding balance
1$1,000.00$50.00$1,050.00
2$1,050.00$52.50$1,102.50

The extra $2.50 in the second year's interest comes from earning 5% on the first year's $50. The Consumer Financial Protection Bureau's compound-interest explanation describes this same principle.

Simple interest vs compound interest

Simple interest is calculated on the original principal. Compound interest also includes interest that has already been added. Here is a controlled comparison using the same $1,000, 5% annual rate, two years, and no cash flows:

MethodCalculationEnding balance
Simple interest1,000 × (1 + 0.05 × 2)$1,100.00
Annual compound interest1,000 × 1.05^2$1,102.50

The difference is small over two years in this example. Over longer terms, the repeated interest-on-interest effect can become more noticeable. It depends on the rate, time, and money left in the balance.

Compound interest formula

For a lump sum with no deposits or withdrawals, the standard formula is:

A = P × (1 + r / n)^(n × t)

SymbolMeaningExample
AEnding balance, including the starting moneyThe answer you calculate
PStarting principal$5,000
rNominal annual rate as a decimal5% = 0.05
nCompounding periods per yearMonthly = 12
tTime in years5

To find interest earned, subtract P from A. Do not confuse the full ending balance with the interest alone.

How to calculate a lump sum

Suppose you start with $5,000, use a 5% nominal annual rate, compound monthly, and leave it for five years.

  1. Convert 5% to a decimal: 0.05.
  2. Find the monthly rate: i = 0.05 / 12.
  3. Count the periods: 12 × 5 = 60.
  4. Calculate 5,000 × (1 + 0.05 / 12)^60.

The ending balance is $6,416.79, including $1,416.79 of interest. Keep the rate and intermediate balance at full precision; round only the displayed answer to cents.

To reproduce it in the calculator, enter Initial amount 5000, Interest rate 5, Rate period Yearly, Compounding Monthly, Years 5, Months 0, and Regular money in/out None.

How long does it take money to double?

The Rule of 72 doubling-time guide compares a quick estimate with the logarithmic compound-interest formula. It uses fixed-rate lump sums with no deposits or withdrawals and explains why a fractional-year formula result can differ from an annual crediting date.

Compound interest with monthly deposits

The lump-sum formula does not include new money. For equal deposits made at the end of every month, with monthly compounding:

A = P × (1 + i)^m + D × ((1 + i)^m − 1) / i

Here i is the monthly rate, m is the number of months, and D is the monthly deposit. At a zero rate, use A = P + D × m instead of dividing by zero.

Keep the $5,000 starting balance, 5% nominal annual rate, and five-year term. Add $100 at each month end, with no annual deposit increase or withdrawals:

  • Starting principal: $5,000.00.
  • New deposits: $100 × 60 = $6,000.00.
  • Ending balance: $13,217.40.
  • Interest earned: $13,217.40 − $11,000.00 = $2,217.40.

In the calculator, change Regular money in/out to Add deposits, Deposit amount to 100, Deposit frequency to Monthly, Deposit increase to 0, and Timing to End of each month.

Changing only Timing to Beginning of each month gives $13,245.74. Each new deposit gets one extra month of interest. The amount and timing of deposits are separate choices from how often interest compounds.

For a longer contribution example, see the existing £100-a-month savings guide. Its worked amounts are explicitly in pounds.

What changes the ending balance?

This reference table changes one assumption at a time. Every row starts with $5,000, uses a 5% nominal annual rate, and runs for five years. Deposits do not increase annually, and there are no withdrawals.

ScenarioDepositsEnding balance
Annual compoundingNone$6,381.41
Monthly compoundingNone$6,416.79
Monthly compounding$100 at each month end$13,217.40
Monthly compounding$100 at each month beginning$13,245.74

The larger change here comes from adding money, not just increasing compounding frequency. The calculator guide also has a frequency comparison and withdrawal example.

What happens with withdrawals?

Withdrawals reduce the balance available to earn later interest. As a separate one-year example, start with $5,000 at 5% nominal annual interest, compound monthly, and withdraw $100 at each month end.

After 12 withdrawals, the ending balance is $4,027.92. You have taken out $1,200.00 and earned $227.92 of interest. This is a hypothetical cash-flow example, not a recommendation for retirement income or a safe withdrawal rate.

Nominal interest rate vs APY

A nominal annual rate is the rate before the selected compounding effect. The effective annual yield includes that effect:

Effective annual yield = (1 + r / n)^n − 1

A 5% nominal annual rate compounded monthly has an effective annual yield of approximately 5.12%. The CFPB's APY definition explains that annual percentage yield reflects interest and compounding; actual account disclosures also depend on their rules.

When two scenarios have the same effective annual yield, more frequent compounding does not add another bonus to their full-year lump-sum return. When they have the same nominal rate, frequency can change that return.

The calculator takes a nominal rate and rate period. Do not enter an advertised APY as though it were a nominal annual rate and then compound it again. Loan APR can also include fees, as the CFPB's APR explanation describes; this savings projection does not model those fees.

For a worked one-year comparison and guidance on which rate to enter, read APY vs interest rate.

Choose the right calculator

The General calculator uses monthly projection periods. Weekly, biweekly, quarterly, and yearly deposits or withdrawals are spread into monthly equivalents. They are not credited on their exact calendar dates. Choose Daily when the supported dated schedule is the task you need.

Check the graph and your result

The graph's Balance line includes your starting money, deposits, withdrawals, and interest. Total interest is cumulative interest earned so far. A rising balance does not mean all of that growth came from interest.

After trying the $5,000 plus $100 monthly-deposit example above, use Inspect month below the graph. Hover or tap the graph, or move the slider with the arrow keys. Home selects the start: $5,000 balance and $0 interest. End selects month 60: $13,217.40 balance and $2,217.40 total interest. The difference also includes the $6,000 you deposited.

The graph and CSV cover the full term. On longer projections, the visible table includes the first 11 summary periods and the final period. Open View all summary periods to read the complete summary. The General calculator supports up to 100 years (1,200 months).

Save a scenario to revisit later

After calculating, open Save, share or print this calculation and choose Save scenario. A name such as “Current monthly saving” can help you recognize it later. Saved inputs stay in that browser on that device; clearing browser storage can remove them. Loading a scenario recalculates it with the current calculator.

Save beside the calculator title adds the tool to Favorites; it does not save the entered financial amounts. Shared links with inputs can be read by their recipients. Keep private details out of names or links you share.

Limits to keep in mind

  • A constant rate is an assumption. Savings rates can change; investment returns vary and can be negative.
  • The examples exclude taxes, fees, inflation, charges, and product-specific rules.
  • Money added by you is a contribution, not interest earned.
  • Changing several inputs together makes it harder to identify what changed the answer.
  • Bank day-count, interest-posting, and rounding conventions may differ from this model.
  • The calculation is an educational estimate, not financial advice or a guaranteed return.

For another primary-source tool, Investor.gov's compound interest calculator illustrates starting savings, monthly contributions, time, and compounding.

Reader questions

Does compound interest work without deposits?

Yes. The lump-sum formula models growth from the starting amount alone, assuming interest remains in the balance and the rate stays constant.

Are monthly deposits the same as monthly compounding?

No. Deposit frequency says when you add money; compounding frequency says how often interest is added. Check both settings and the model's cash-flow assumptions.

Can withdrawals use up the balance?

Yes. In this calculator, a withdrawal is capped at the available balance. A planned withdrawal above that amount is not fully paid out.

Why might another calculator give a different answer?

Compare nominal rate versus APY, compounding frequency, deposit timing, exact dates versus monthly equivalents, and rounding. The same displayed rate is not enough to establish identical assumptions.

View all guides