Home › Calculators & Converters › Compound Interest

Compound Interest Calculator

Work out how a savings balance grows when interest is added at regular intervals, with an optional contribution at the end of each period. Shows the final balance, the interest earned and a yearly table.

Up to 2 decimal places, for example 1000 or 1000.50.

A percentage, for example 5 or 4.25. Up to 6 decimal places.

Can be a decimal, for example 2.5. Up to 150 years.

1 for yearly, 2 for half-yearly, 4 for quarterly, 12 for monthly, 365 for daily. Any whole number of 1 or more.

Added at the end of each compounding period, after interest. Leave as 0 for none.

Enter the figures above.
Final balance-
Total contributed (principal plus contributions)-
Interest earned-

Yearly table

Balance at the end of each year. A final row at a decimal year end is shown when the years are not a whole number.

YearBalanceTotal contributedInterest to date
Money is shown to the cent. Each figure is rounded half up (a half cent goes up) from an exact calculation, and interest earned is the rounded balance minus the total contributed. Everything runs in your browser; no amounts are sent or stored.

How to use

  1. Enter the starting amount, in any currency, to the cent at most. Use 0 if you are starting from nothing and only plan to save regularly.
  2. Enter the annual interest rate as a percentage, so 4.5 means 4.5% a year.
  3. Enter the number of years. Decimals are fine, for example 2.5, up to 150 years.
  4. Set the compounding periods per year: 1 for yearly, 4 for quarterly, 12 for monthly, 365 for daily.
  5. Optionally add a regular contribution. It is added at the end of every compounding period, after that period's interest. Leave it at 0 for none.
  6. Read the final balance, the total contributed and the interest earned, then scan the yearly table to see the path.

The figures are illustrations based on a fixed rate. They are estimates and not financial advice.

Worked example

You start with 5,000, add 100 every month, and earn 4.5% a year compounded monthly for 15 years. The monthly rate is 4.5 ÷ 12 = 0.375%. There are 15 × 12 = 180 periods.

ResultAmount
Total contributed23,000.00 (5,000 plus 180 × 100)
Final balance35,449.24
Interest earned12,449.24
Balance after year 16,454.76 (6,200.00 paid in, 254.76 interest)
Balance after year 27,976.35

Interest earned is simply the balance minus everything you paid in: 35,449.24 − 23,000.00 = 12,449.24. About a third of the end balance came from interest.

How it works

Each compounding period the balance earns the annual rate divided by the number of periods, and then the contribution is added:

balance after one period
  = balance before x (1 + rate / (100 x periods per year)) + contribution

Repeating that for every whole period gives the final balance. With no contributions it reduces to the familiar formula, principal × (1 + r ÷ n) to the power of (years × n), where r is the rate as a fraction and n the periods per year. Check: 5,000 at 4.5% for 15 years compounded yearly is 5,000 × 1.04515 = 9,676.41, and compounded monthly it is 9,807.78.

The money is held as whole cents and every step uses exact integer arithmetic, so no floating-point error creeps in. Only the final figures are rounded, half up to the cent. Interest earned is then the rounded balance minus the exact total contributed, which keeps the three figures consistent.

Part periods. If the years do not end on a whole period, the leftover part earns simple interest at the period rate for that fraction. Take 1,000 at 5% compounded yearly for 2.5 years. After 2 years it is 1,102.50, and the final half year adds half a period's interest, 1,102.50 × 1.025 = 1,130.06. No contribution is added for the leftover part.

Compounding frequency and timing

More frequent compounding gives a slightly higher balance for the same stated rate, because interest starts earning interest sooner. The effect is modest: in the example above, monthly compounding adds about 131 to a 5,000 balance over 15 years compared with yearly compounding. The nominal rate you type is the annual figure before compounding. If a bank quotes an effective rate (often called AER or APY), it already includes compounding, so enter it with 1 period per year to avoid counting the effect twice.

Contributions are assumed to arrive at the end of each period. A deposit at the start of each period would earn one more period of interest, so real balances can differ a little from this model.

Common mistakes

Frequently asked questions

What is the difference between simple and compound interest?

Simple interest is paid on the original amount only. Compound interest is paid on the original amount plus the interest already added.

Can I use it for debt?

The growth maths is the same, but debt terms vary. For repayment of a loan with regular payments use the Loan and Mortgage Calculator.

Is my data saved?

No. Everything runs in your browser and is forgotten when you close the page.

Related tools