Compound Interest Calculator

  • Free
  • No sign-up
  • Works on phones
  • Shows the working
Geometry & Stats#48

Compound Interest Calculator

\(A = P\left(1 + \frac{r}{n}\right)^{nt}\): final balance, interest earned, effective rate and a year-by-year table.

This compound interest calculator shows how money grows when interest earns interest. Enter the principal, the annual interest rate, how often interest is compounded (yearly, half-yearly, quarterly, monthly, daily or continuously) and the number of years. It returns the final balance, the interest earned, the effective annual rate, the simple-interest amount for comparison, and a year-by-year balance table.

It’s free and needs no sign-up. However, it’s for learning and estimates; it doesn’t include fees, taxes or regular deposits.

Compound Interest Calculator: Compound interest grows faster each year because interest earns interest: $1000 at 5%…
Compound interest grows faster each year because interest earns interest: $1000 at 5% compounded monthly becomes about $1647.01 after 10 years.

How to use it

  1. Enter the principal P, the starting amount.
  2. Enter the annual rate in percent (5 for 5%).
  3. Choose how often interest is compounded.
  4. Enter the number of years and press Calculate.

Formula

$$A = Pleft(1 + frac{r}{n}right)^{nt}$$

Close-up of the pages of a book, suggesting study or information.

where r is the annual rate as a decimal, n the number of compounding periods per year and t the time in years. With continuous compounding, ( A = Pe^{rt} ). So, the interest earned is ( A – P ).

Worked example

$1000 at 5% compounded monthly for 10 years (as loaded above):

$$A = 1000left(1 + frac{0.05}{12}right)^{120} approx $1647.01$$

The interest earned is $647.01. Simple interest would give only $1500, so compounding adds $147.01. Compounded continuously, the balance would be ( 1000e^{0.5} approx $1648.72 ).

Worked example: quarterly

$5000 at 6% compounded quarterly for 8 years: ( A = 5000(1.015)^{32} approx $8051.62 ).

How compounding frequency matters to a compound interest calculator

For $1000 at 5% for 10 years:

An ancient calendar or stone carving with intricate designs and a central face.
CompoundedFinal amount
Yearly$1628.89
Monthly$1647.01
Daily$1648.66
Continuously$1648.72

More frequent compounding helps, but with rapidly diminishing returns, approaching the continuous limit ( Pe^{rt} ). That limit is where the number ( e ) comes from; see exponential functions.

The rule of 72

Money doubles in roughly ( 72 div text{rate} ) years: at 6%, about 12 years. However, the exact doubling time for yearly compounding is ( frac{ln 2}{ln(1 + r)} ), found with logarithms.

Common mistakes

  • Using the rate as a whole number. For example, 5% is 0.05 in the formula (the calculator takes 5 and converts it).
  • Mixing up n and t. n is periods per year, t is years; the exponent is ( nt ).
  • Comparing nominal rates with different compounding. Compare effective annual rates instead.

Compound interest with regular deposits

Most savings plans add money every month. As a result, the future value is the compounded starting amount plus the compounded deposits:

$$A = P\left(1 + \frac{r}{n}\right)^{nt} + D \cdot \frac{\left(1 + \frac{r}{n}\right)^{nt} - 1}{r/n}$$

where \( D \) is the deposit made at the end of each period.

Example. Start with $5,000, add $200 a month, earn 6% a year compounded monthly for 20 years. Here \( r/n = 0.005 \) and \( nt = 240 \), so \( 1.005^{240} \approx 3.3102 \).

  • Starting amount: \( 5000 \times 3.3102 \approx 16{,}551 \)
  • Deposits: \( 200 \times \frac{3.3102 - 1}{0.005} \approx 92{,}408 \)
  • Total: about $108,959, of which you paid in $53,000. The other $55,959 is interest.

Continuous compounding

When interest compounds “continuously”, the formula becomes

$$A = Pe^{rt}$$

$10,000 at 5% for 10 years grows to \( 10000e^{0.5} \approx \$16{,}487.21 \). Compounded monthly it would be $16,470.09, and yearly $16,288.95. Continuous compounding is the upper limit: compounding more often than daily adds almost nothing.

Effective annual rate (APY)

Banks quote a nominal rate and an annual percentage yield. However, the yield shows what you really earn in a year:

$$\text{APY} = \left(1 + \frac{r}{n}\right)^{n} - 1$$

Nominal 6% compoundedEffective annual rate
Yearly6.000%
Monthly6.168%
Daily6.183%
Continuously6.184%

Use the APY to compare accounts with different compounding.

Solving for time or rate

Take logarithms to find how long a balance takes to grow:

$$t = \frac{\ln(A/P)}{n \ln\left(1 + \frac{r}{n}\right)}$$

At 7% compounded yearly, money doubles in \( \ln 2 / \ln 1.07 \approx 10.24 \) years (the rule of 72 gives 10.29). To find the rate that turns $10,000 into $20,000 in 8 years with yearly compounding, solve \( (1 + r)^8 = 2 \). As a result, \( r = 2^{1/8} - 1 \approx 9.05\% \).

Inflation and real return

Growth in dollars is not growth in what money buys. However, the real return is

$$\text{real return} = \frac{1 + \text{nominal rate}}{1 + \text{inflation}} - 1$$

A 7% return with 3% inflation is a real return of \( 1.07/1.03 - 1 \approx 3.88\% \), not 4%.

Compound interest working against you: loans and cards

Debt compounds too. Next, a credit card with a 24% APR charged monthly applies 2% a month, so the effective annual rate is \( 1.02^{12} - 1 \approx 26.8\% \). A $1,000 balance left unpaid for a year (with no payments or fees) grows to about \( 1000 \times 1.02^{12} \approx \$1{,}268.24 \). Comparing loans by their effective annual rate, not the headline APR, shows the true cost.

Step-by-step: using the formula

  1. Write the annual rate as a decimal (5% = 0.05).
  2. Divide it by the number of compounding periods per year \( n \).
  3. Multiply the years by \( n \) to get the number of periods.
  4. Compute \( P(1 + r/n)^{nt} \), then subtract \( P \) if you want the interest alone.
  5. For regular deposits, add the deposit part from the formula above.

Keep full precision until the last step; rounding \( (1 + r/n) \) early can change the answer by several dollars over long periods.

Simple interest vs compound interest

Simple interest is paid only on the original amount: \( I = Prt \). On $10,000 at 5% for 10 years that is $5,000, for a total of $15,000. Compounded yearly, the same deposit grows to $16,288.95. The gap widens every year, because compound interest also earns interest on the interest already added. Over 30 years the totals are $25,000 (simple) and about $43,219 (compound).

How often is interest compounded?

Savings accounts usually compound daily or monthly, certificates of deposit monthly or quarterly, and many bonds pay twice a year. Mortgages in the US compound monthly, while Canadian fixed-rate mortgages are by law compounded semi-annually. Check the account terms and enter that frequency in the calculator, because the same headline rate earns slightly different amounts.

Common questions about the inputs

Enter the rate as a yearly percentage even if interest is paid monthly; the calculator divides it by the compounding frequency. Enter the time in years (18 months is 1.5). If your bank quotes an APY rather than a nominal rate, choose yearly compounding and enter the APY directly.

Practice problems

  1. $2,000 at 4% compounded quarterly for 5 years.
  2. How many years does $1,000 take to reach $1,500 at 5% compounded yearly?
  3. What is the APY of 12% compounded monthly?

Answers: 1. \( 2000(1.01)^{20} \approx \$2{,}440.38 \). 2. \( \ln 1.5 / \ln 1.05 \approx 8.31 \) years. 3. \( 1.01^{12} - 1 \approx 12.68\% \).

Related guides

Further reading

FAQ

What is the compound interest formula?

( A = Pleft(1 + frac{r}{n}right)^{nt} ).

What is the difference between simple and compound interest?

Simple interest is paid only on the original amount; compound interest is also paid on earlier interest, so the balance grows faster.

How much is $1000 at 5% for 10 years?

About $1628.89 compounded yearly, or $1647.01 compounded monthly.

What is continuous compounding?

The limit of compounding more and more often: ( A = Pe^{rt} ).

Embed this calculator on your website

Teachers, tutors and bloggers are welcome to use this calculator for free. Copy the code below and paste it into any page (in WordPress, use a "Custom HTML" block). The small script makes the calculator grow to fit its answer; if your site removes scripts, it still works at a fixed height. Please keep the credit link.

More calculators

See all calculators