The compound interest formula is ( A = Pleft(1 + frac{r}{n}right)^{nt} ), where P is the principal (starting amount), r the annual interest rate as a decimal, n the number of times interest is compounded per year, t the number of years, and A the final amount. The interest earned is ( A – P ). For continuous compounding, ( A = Pe^{rt} ). For example, $1000 at 5% compounded monthly for 10 years grows to about $1647.01.
With simple interest, you earn interest only on the money you put in. With compound interest, you also earn interest on the interest already added, so the balance grows faster and faster. This guide explains the formula letter by letter, shows how to use it, and covers the related ideas people search for: continuous compounding, effective rates, doubling time and solving for time or rate.
The mechanics of simple vs. compound interest
Simple interest calculates earnings strictly on your initial deposit. However, compound interest calculates earnings on your initial deposit plus all accumulated interest from previous periods.
- Simple interest: You earn $100 in Year 1, $100 in Year 2, and $100 in Year 3. Your final balance is $1,300. Total interest earned equals $300.
- Compound interest (annual):
- Year 1: $1,000 grows by 10% ($100) to reach $1,100.
- Year 2: $1,100 grows by 10% ($110) to reach $1,210.
- Year 3: $1,210 grows by 10% ($121) to reach $1,331.
Your final balance with compound interest is $1,331. The extra $31 comes entirely from interest earning interest. As a result, over longer timeframes, this compounding effect dominates the growth of your account.
The formula, letter by letter
$$A = Pleft(1 + frac{r}{n}right)^{nt}$$
| Letter | Meaning | Description | Example |
|---|---|---|---|
| P | Principal | Starting amount of money invested or borrowed | $1,000 |
| r | Annual interest rate | Nominal rate expressed as a decimal (divide percentage by 100) | 5% → 0.05 |
| n | Compounding frequency | Number of times interest compounds per year | Monthly → 12 |
| t | Time | Duration of the investment or loan in years | 10 years |
| A | Final amount | Total future balance including principal and accumulated interest | $1,647.01 |
Each period, you multiply the balance by ( 1 + frac{r}{n} ). Over ( t ) years, you multiply by this factor a total of ( nt ) times.
| Compounding frequency | Compounding periods per year (n) |
|---|---|
| Annually | 1 |
| Semi-annually | 2 |
| Quarterly | 4 |
| Monthly | 12 |
| Semi-monthly | 24 |
| Bi-weekly | 26 |
| Weekly | 52 |
| Daily | 365 |
Step-by-step guide to calculating compound interest
Follow these six steps to calculate compound interest manually or with a standard scientific calculator:
- Convert the interest rate to a decimal: Divide the annual percentage rate by 100. For example, 6% becomes 0.06.
- Find the periodic rate: Divide the annual decimal rate (r) by the number of compounding periods per year (n). For example, for 6% compounded quarterly, compute 0.06 / 4 = 0.015.
- Calculate the periodic growth factor: Add 1 to the periodic rate. For example, for 0.015, this yields 1 + 0.015 = 1.015.
- Determine total compounding periods: Multiply compounding frequency (n) by total years (t). So, for 8 years quarterly, compute 4 × 8 = 32 periods.
- Exponentiate the growth factor: Raise the growth factor to the power of total periods. Next, compute (1.015)^32 ≈ 1.61032.
- Multiply by the principal: Multiply the principal balance (P) by this exponentiated factor. For $5,000, therefore, compute 5,000 × 1.61032 = $8,051.62.
How compounding frequency impacts long-term growth
Higher compounding frequencies yield higher total interest because interest adds to the principal balance sooner.
| Compounding frequency | n | Formula setup | Final balance (A) | Interest earned |
|---|---|---|---|---|
| Annually | 1 | $10,000(1 + 0.06/1)^{10}$ | $17,908.48 | $7,908.48 |
| Semi-annually | 2 | $10,000(1 + 0.06/2)^{20}$ | $18,061.11 | $8,061.11 |
| Quarterly | 4 | $10,000(1 + 0.06/4)^{40}$ | $18,140.18 | $8,140.18 |
| Monthly | 12 | $10,000(1 + 0.06/12)^{120}$ | $18,193.97 | $8,193.97 |
| Daily | 365 | $10,000(1 + 0.06/365)^{3650}$ | $18,220.30 | $8,220.30 |
| Continuous | ∞ | $10,000 e^{(0.06 × 10)}$ | $18,221.19 | $8,221.19 |
Increasing frequency from annual to monthly adds $285.49 in interest. Increasing frequency from monthly to daily adds $26.33. Moving from daily to continuous adds less than $1. Compounding more frequently produces diminishing returns once frequency passes monthly.
Worked examples
Example 1: monthly compounding
You leave the balance untouched for 10 years.
Set up your variables: P = 1000, r = 0.05, n = 12, t = 10.
$$A = 1000left(1 + frac{0.05}{12}right)^{12 times 10} = 1000(1.0041667)^{120} approx $1647.01$$
Interest earned: $1,647.01 – $1,000 = $647.01.
Example 2: quarterly compounding
Set up your variables: P = 5000, r = 0.06, n = 4, t = 8.
$$A = 5000left(1 + frac{0.06}{4}right)^{4 times 8} = 5000(1.015)^{32} approx $8051.62$$
Interest earned: $8,051.62 – $5,000 = $3,051.62.
Example 3: long-term growth across decades
Let us compare the balance at 20, 30, and 40 years:
- 20 years: ( A = 10{,}000(1.07)^{20} approx $38{,}696.84 ). Total interest earned: $28,696.84.
- 30 years: ( A = 10{,}000(1.07)^{30} approx $76{,}122.55 ). Total interest earned: $66,122.55.
- 40 years: ( A = 10{,}000(1.07)^{40} approx $149{,}744.58 ). Total interest earned: $139,744.58.
Simple interest would yield only $24,000 in total interest over 20 years ($1,400 per year). However, compounding adds nearly $15,000 extra in that same timeframe and pushes the growth curve upward over 40 years. Time serves as the most powerful multiplier in the formula.
Compound interest calculator
Enter the principal, rate, compounding frequency, and years to compute your final balance and generate a summary breakdown.
Compound Interest Calculator
\(A = P\left(1 + \frac{r}{n}\right)^{nt}\): final balance, interest earned, effective rate and a year-by-year table.
The full-page compound interest calculator offers additional features and extended projections.
Simple vs. compound interest formulas
$$text{Simple interest formula: } A = P(1 + rt)$$
$$text{Compound interest formula: } A = Pleft(1 + frac{r}{n}right)^{nt}$$
Simple interest creates linear growth, forming a straight line on a graph. Compound interest creates exponential growth, forming an upward curve (see exponential functions). Over short periods, simple and compound values stay close together. Over extended periods, compound interest diverges significantly above simple interest.
Continuous compounding
When compounding frequency (n) grows infinitely large, interest compounds continuously at every mathematical instant. The compound interest formula transforms into:
$$A = Pe^{rt}$$
The variable e represents Euler’s number, an irrational mathematical constant approximately equal to 2.71828.
- Annually: $1,628.89
- Monthly: $1,647.01
- Daily: $1,648.66
- Continuously: ( 1000e^{0.05 times 10} = 1000e^{0.5} approx $1648.72 )
Mathematicians discovered the constant e while studying compound interest limits:
$$e = lim_{ntoinfty}left(1 + frac1nright)^n$$
Continuous compounding models continuous natural growth systems and solves the basic differential equation ( frac{dA}{dt} = rA ); see differential equations.
Effective annual rate (APY) vs. nominal rate (APR)
The stated annual interest rate is the nominal rate (APR). Because of intra-year compounding, your investment actually earns a higher rate over a full year. We call this actual rate the effective annual rate (or Annual Percentage Yield, APY).
Compute the effective annual rate with this formula:
$$r_{text{eff}} = left(1 + frac{r}{n}right)^n - 1$$
$$r_{text{eff}} = left(1 + frac{0.05}{12}right)^{12} - 1 = (1.0041667)^{12} - 1 approx 0.05116 text{ or } 5.116%$$
Always convert nominal rates to effective annual rates when comparing financial products with different compounding schedules.
Solving for time, rate, or principal
You can rearrange the compound interest formula algebraically to solve for any unknown variable when you know the other values.
1. Solving for time (t)
Set up the equation: $2000 = 1000(1.06)^t$. Then, divide both sides by 1000: $2 = 1.06^t$. Apply natural logarithms to isolate $t$:
$$t = frac{ln(A/P)}{n cdot ln(1 + r/n)} = frac{ln 2}{ln 1.06} approx 11.9 text{ years}$$
Taking logs provides the necessary algebraic step; see logarithm rules.

The Rule of 72 shortcut: Estimate doubling time quickly by dividing 72 by the annual percentage rate. This quick mental shortcut closely matches the exact logarithmic calculation of 11.9 years.
2. Solving for interest rate (r)
If $2,000 grows to $2,500 in 4 years with annual compounding, what interest rate did you earn?
Set up the equation: $2500 = 2000(1 + r)^4$. Divide both sides by 2000: $1.25 = (1 + r)^4$. Next, take the 4th root (or 1/4 power) of both sides:
$$1 + r = 1.25^{1/4} approx 1.05737$$
$$r = 1.05737 - 1 = 0.05737 text{ or } 5.74%$$
3. Solving for principal (present value, P)
Rearrange the formula to isolate P:
$$P = frac{A}{left(1 + frac{r}{n}right)^{nt}} = frac{10{,}000}{(1.04)^{15}} approx $5552.65$$
When this formula does not apply
The formula ( A = P(1 + r/n)^{nt} ) works specifically for single, lump-sum investments with a fixed interest rate. It does not fit the following situations:
- Regular recurring contributions or withdrawals: If you add $200 every month to an account, use the future value of an annuity formula instead of a single lump-sum formula.
- Variable interest rates or market fluctuations: Stock market portfolios and adjustable-rate loans change rates continually. Consequently, you cannot model fluctuating returns with a single fixed rate (r).
- Inflation adjustments: To find real purchasing power, adjust the nominal final balance (A) using inflation formulas: Real Value = Nominal Value / (1 + inflation rate)^t.
Common mistakes and fixes
| Common error | Why it happens | How to fix it |
|---|---|---|
| Entering percentage directly into formula | Using 5 instead of 0.05 for a 5% rate | Always divide percentage rates by 100 before computing. |
| Misinterpreting annual vs. periodic rate | Using the full annual rate for each month | Divide annual rate r by compounding periods n ($r/n$). |
| Exponent order of operations error | Calculating $P(1 + r/n)^n cdot t$ instead of $(nt)$ | Enclose the product of $n cdot t$ in parentheses when using calculators. |
| Confusing total balance (A) with earned interest | Assuming the formula result equals interest earnings | Subtract original principal from final balance: Interest = $A – P$. |
| Comparing nominal rates across accounts | Ignoring compounding frequency when choosing accounts | Convert all nominal rates to Effective Annual Rates (APY) before comparing. |
Practice problems
- Find the final balance (A) when $2,000 is invested at 3% interest compounded annually for 5 years.
- Find the final balance (A) when $1,500 is invested at 4% interest compounded quarterly for 6 years.
- Find the final balance (A) when $1,000 is invested at 8% interest compounded continuously for 3 years.
- Calculate the effective annual rate (APY) for a 12% nominal annual rate compounded monthly.
- Determine how many years it takes for an investment to triple at 5% interest compounded annually.
Full step-by-step solutions
1. Solution:
P = 2000, r = 0.03, n = 1, t = 5.
A = 2000(1 + 0.03/1)^(1 × 5) = 2000(1.03)^5 = 2000(1.159274) = $2,318.55.
2. Solution:
P = 1500, r = 0.04, n = 4, t = 6.
A = 1500(1 + 0.04/4)^(4 × 6) = 1500(1.01)^24 = 1500(1.269735) = $1,904.60.
3. Solution:
P = 1000, r = 0.08, t = 3.
A = 1000 × e^(0.08 × 3) = 1000 × e^0.24 = 1000(1.271249) = $1,271.25.
4. Solution:
r = 0.12, n = 12.
r_eff = (1 + 0.12/12)^12 – 1 = (1.01)^12 – 1 = 1.126825 – 1 = 0.126825 = .
5. Solution:
We need A = 3P. So 3 = (1.05)^t.
Next, take natural logarithms: ln(3) = t × ln(1.05).
As a result, t = ln(3) / ln(1.05) = 1.098612 / 0.048790 = 22.52 years (about 22.5 years).
Frequently asked questions
What is the compound interest formula?
The standard compound interest formula is ( A = Pleft(1 + frac{r}{n}right)^{nt} ), where A is the total accumulated balance, P is the initial principal, r is the annual rate as a decimal, n is the compounding frequency per year, and t is time in years.
How do you calculate total compound interest earned?
Calculate the final future value balance (A) using the formula, then subtract your starting principal (P): Total Interest = A – P.
What is the difference between simple and compound interest?
Simple interest calculates interest earnings solely on the starting principal balance. Compound interest calculates interest on the principal balance plus all previously accumulated interest.
What does compounded monthly mean?
Compounded monthly means interest recalculates and adds to the principal balance 12 times per year. As a result, each monthly cycle credits one-twelfth of the nominal annual rate to your account.
What is the formula for continuous compounding?
The continuous compounding formula is ( A = Pe^{rt} ), where e represents Euler’s constant (approximately 2.71828), r is the annual interest rate as a decimal, and t is time in years.
Further reading
- Compound interest (Wikipedia) — detailed mathematical background, historical overview, and financial formulas.
- e (mathematical constant) (Wikipedia) — exploration of how Euler’s number originates from compound interest calculations.
Calculators for this topic
Keep learning
Percentage Formula: How to Calculate Percentages
The percentage formula: percent of a number, what percent one number is of another, percent change, percent error and reverse percentages.
Fractions: How to Add, Subtract, Multiply and Divide
How to add, subtract, multiply and divide fractions, simplify them, convert mixed numbers and compare fractions, with step-by-step examples.

