About Privacy Contact Us

Compound Interest Formula - With Examples

In this article, we'll look at the compound interest formula, give you some worked examples and provide you with the tools to calculate it yourself.

The Compound Interest Formula
A = P(1 + r/n)nt
Where A = final amount, P = principal, r = interest rate, n = compounding frequency, t = time in years

Disclaimer: Whilst every effort has been made in building our calculator tools, we are not to be held liable for any damages or monetary losses arising out of or in connection with their use. Full disclaimer.

What is the compound interest formula?

Compound interest is the concept of adding accumulated interest back to the principal sum, so that interest is earned on top of interest from that moment on. The compound interest formula determines the amount of interest earned based on the initial principal, the interest rate, the compounding frequency and the total time period.

A = P(1 + r/n)nt

This formula gives you the future value of an investment or loan, which is the initial principal plus all of the compound interest earned over the period.

Tip: If you just want to find out the compound interest portion, you need to subtract the principal from the result. So: Compound Interest = A โˆ’ P

Understanding the variables

Let's break down each variable in the formula:

AAccrued amount (future value) โ€” the total amount of money accumulated after the interest has been applied, including the principal.
PPrincipal โ€” the initial amount of money invested or borrowed (your starting balance).
rAnnual interest rate (decimal) โ€” the yearly interest rate expressed as a decimal. For example, 5% would be 0.05.
nCompounding frequency โ€” the number of times interest is compounded per year. Common values: 1 (annually), 4 (quarterly), 12 (monthly), 365 (daily).
tTime โ€” the number of years the money is invested or borrowed for.

Example 1: Basic compound interest

Let's say you invest $5,000 at an annual interest rate of 5%, compounded annually, for 10 years. How much will you have at the end?

Worked Example

Using the formula A = P(1 + r/n)nt with our values:

P = $5,000  |  r = 5/100 = 0.05  |  n = 1  |  t = 10
A = 5000 ร— (1 + 0.05/1)(1ร—10)
A = 5000 ร— (1.05)10
A = 5000 ร— 1.62889...
A = $8,144.47

So, after 10 years your investment would be worth $8,144.47. The total compound interest earned is $8,144.47 โˆ’ $5,000 = $3,144.47.

Example 2: Different compounding periods

What if the same investment ($5,000, 5%, 10 years) is compounded monthly instead of annually?

Monthly Compounding

P = $5,000  |  r = 0.05  |  n = 12  |  t = 10
A = 5000 ร— (1 + 0.05/12)(12ร—10)
A = 5000 ร— (1 + 0.004167)120
A = 5000 ร— (1.004167)120
A = 5000 ร— 1.64701...
A = $8,235.05

With monthly compounding you earn an extra $90.58 compared to annual compounding. This is because interest is being calculated and added more frequently.

The more frequently interest is compounded, the more you earn. Here's a comparison:

Compoundingn valueFinal AmountInterest Earned
Annually1$8,144.47$3,144.47
Quarterly4$8,218.10$3,218.10
Monthly12$8,235.05$3,235.05
Daily365$8,243.04$3,243.04

Compound interest formula with regular contributions

If you're making regular deposits (or withdrawals) alongside your investment, the formula becomes more complex. The formula for compound interest with regular contributions is:

Compound Interest with Contributions
A = P(1+r/n)nt + PMT ร— [((1+r/n)nt โˆ’ 1) / (r/n)]
P = principal PMT = payment r = rate n = compounds/yr t = years

Where PMT is the regular contribution (deposit) amount made at the end of each compounding period.

PMTRegular payment/contribution โ€” the fixed amount of money added to the principal at regular intervals (e.g. monthly deposits).

Example 3: With monthly contributions

You invest $5,000 initially and contribute $100 per month at 5% annual interest, compounded monthly, for 10 years.

Worked Example with Contributions

P = $5,000  |  PMT = $100  |  r = 0.05  |  n = 12  |  t = 10
Part 1: Principal compound interest
Aโ‚ = 5000 ร— (1 + 0.05/12)(12ร—10)
Aโ‚ = 5000 ร— 1.64701 = $8,235.05
Part 2: Contribution compound interest
Aโ‚‚ = 100 ร— [((1 + 0.05/12)120 โˆ’ 1) / (0.05/12)]
Aโ‚‚ = 100 ร— [(1.64701 โˆ’ 1) / 0.004167]
Aโ‚‚ = 100 ร— [0.64701 / 0.004167]
Aโ‚‚ = 100 ร— 155.282 = $15,528.23
Total: A = Aโ‚ + Aโ‚‚
A = $8,235.05 + $15,528.23
A = $23,763.28

Your total deposits were $5,000 + ($100 ร— 120) = $17,000. So the total interest earned is $23,763.28 โˆ’ $17,000 = $6,763.28.

Continuous compounding formula

As the compounding frequency approaches infinity, we arrive at continuous compounding. The formula for continuous compounding uses Euler's number (e โ‰ˆ 2.71828):

Continuous Compound Interest
A = P ร— ert
P = principal e = 2.71828... r = annual rate t = years

Continuous Compounding Example

Using the same $5,000 at 5% for 10 years:

A = 5000 ร— e(0.05 ร— 10)
A = 5000 ร— e0.5
A = 5000 ร— 1.64872...
A = $8,243.61

Note that continuous compounding ($8,243.61) gives only a slight increase over daily compounding ($8,243.04).

Finding other variables

You can rearrange the compound interest formula to solve for other variables:

To find the Principal: P = A / (1 + r/n)nt
To find the Rate: r = n ร— [(A/P)1/nt โˆ’ 1]
To find the Time: t = ln(A/P) / (n ร— ln(1 + r/n))

Where ln is the natural logarithm.

Compound interest growth chart

The following table shows how $5,000 grows at 5% interest with different compounding frequencies over various time periods:

YearAnnualMonthlyDaily
1$5,250.00$5,255.81$5,256.31
2$5,512.50$5,524.71$5,525.70
5$6,381.41$6,416.79$6,419.74
10$8,144.47$8,235.05$8,243.04
15$10,394.64$10,568.39$10,584.98
20$13,266.49$13,563.20$13,590.55
25$16,931.77$17,404.55$17,448.64
30$21,609.71$22,332.96$22,399.47
Key takeaway: The power of compound interest becomes dramatically more visible over longer time periods. Over 30 years, $5,000 at 5% grows to over $21,600 with annual compounding โ€” more than quadrupling your initial investment. If you want to try different figures, use our compound interest calculator.

The Rule of 72

A handy shortcut for estimating how long it takes to double your money is the Rule of 72. Simply divide 72 by the annual interest rate:

The Rule of 72
Years to double โ‰ˆ 72 / interest rate
At 6% โ†’ ~12 years At 8% โ†’ ~9 years At 12% โ†’ ~6 years

For example, at a 6% annual interest rate, it would take approximately 72 รท 6 = 12 years to double your money. This is an approximation but works remarkably well for interest rates between 4% and 12%.

Simple interest vs compound interest

With simple interest, interest is calculated only on the original principal. With compound interest, interest is calculated on both the principal and all previously accumulated interest. Over time, compound interest results in significantly higher returns.

Comparison: $10,000 at 8% for 20 years

Simple interest: $10,000 + ($10,000 ร— 0.08 ร— 20) = $26,000
Compound interest (annual): $10,000 ร— (1.08)20 = $46,609.57

Compound interest earns you an extra $20,609.57 over the same period โ€” nearly double what simple interest provides.

If you wish to calculate your figures with the formulas from this article, you can do so with our compound interest calculator. You may also want to check our separate articles on compound interest tables and how to calculate compound interest.

๐Ÿ‘ค
Written by Alastair Hazell. Reviewed by Chris Hindle.