Exponents & Radicals

Compound Interest Formula

The compound interest formula is A=P(1+rn)ntA = P\left(1 + \frac{r}{n}\right)^{nt}: start with the principal PP, multiply it by the growth factor 1+rn1 + \frac{r}{n} once for each compounding period, and repeat ntnt times. The interest you earn is A−PA - P.

A=P(1+rn)ntA = P\left(1 + \frac{r}{n}\right)^{nt}

Try it with your numbers

Show every step

The solver above shows every step for your own numbers. The rest of this page explains why those steps work, how to run the formula backward, and where it quietly goes wrong.

What do A, P, r, n and t mean in the compound interest formula?

Each letter has one job, and most errors come from feeding one of them the wrong kind of number.

  • AA: the final amount, principal and interest together.
  • PP: the principal, the money you start with.
  • rr: the annual rate as a decimal, so 6.5%6.5\% becomes 0.0650.065.
  • nn: how many times per year interest is added (1, 4, 12 or 365 are typical).
  • tt: the time in years, even if the problem speaks in months.

Read the formula as two pieces. The base 1+rn1 + \frac{r}{n} is the growth factor for a single period, and the exponent ntnt counts the periods. A rate of 6%6\% compounded monthly is not 6%6\% per month. It is 0.5%0.5\% per month, applied 12 times a year.

A useful sanity check is t=0t = 0. The exponent becomes 00, and anything nonzero to the zero power is 1 (see why anything to the zero power is 1), so A=PA = P. No time, no interest. Any formula you build or rearrange should pass this test.

Where does the compound interest formula come from?

The whole formula is one idea: growth by a percentage means multiplying. If a period’s interest rate is i=rni = \frac{r}{n}, then after one period the balance is P+Pi=P(1+i)P + Pi = P(1 + i). The next period multiplies that new balance by the same factor, giving P(1+i)(1+i)P(1+i)(1+i).

Repeating this kk times multiplies PP by (1+i)(1+i) a total of kk times. Using the rules of exponents, repeated multiplication of the same base collapses into a power:

A=P(1+i)k,i=rn,k=ntA = P(1+i)^k, \quad i = \frac{r}{n}, \quad k = nt

Substituting ii and kk gives the standard form. Nothing else is hidden in it.

Where the "interest on interest" lives

Expand (1+i)2=1+2i+i2(1+i)^2 = 1 + 2i + i^2. The 2i2i is two periods of ordinary interest, and the i2i^2 is interest earned on interest. For P=1000P = 1000 and i=0.1i = 0.1, that is 1000+100+100+10=12101000 + 100 + 100 + 10 = 1210.

That extra i2i^2 term is why compound growth pulls away from a straight line. Each period’s interest adds a little more than the one before.

Quick check

A balance grows by 10%10\% each period. By what single factor does it grow over 3 periods?

Compound interest formula example: quarterly compounding

Find the balance when $2,500 is invested at 6%6\% compounded quarterly for 5 years.

Identify the inputs: P=2500P = 2500, r=0.06r = 0.06, n=4n = 4, t=5t = 5. The per-period rate is 0.06/4=0.0150.06 / 4 = 0.015, and the number of periods is 4⋅5=204 \cdot 5 = 20.

A=2500(1+0.064)4⋅5=2500(1.015)20A = 2500\left(1 + \frac{0.06}{4}\right)^{4 \cdot 5} = 2500(1.015)^{20}

On a calculator, (1.015)20≈1.346855(1.015)^{20} \approx 1.346855. Then:

A≈2500×1.346855=3367.14A \approx 2500 \times 1.346855 = 3367.14

The balance is about $3,367.14, so the interest earned is 3367.14−2500=3367.14 - 2500 = 867.14$.

A fast mental check: simple interest would earn 2500×0.06×5=7502500 \times 0.06 \times 5 = 750. Compounding should land a bit above that, and $867 does. If your answer came out below $750 or near double it, something is off. Keep at least six digits of the growth factor before multiplying by PP.

Does compounding more often really earn more?

Yes, but with sharply diminishing returns. Here is $1,000 at 8%8\% for one year at different frequencies:

Compounding nn Balance after 1 year
Annually 1 $1,080.00
Quarterly 4 $1,082.43
Monthly 12 $1,082.99
Daily 365 $1,083.28

Going from annual to monthly gains about $2.99. Going from monthly to daily gains only about $0.29. Pushing nn toward infinity does not blow up, it settles at a limit.

Effective annual rate (APY)

To compare accounts with different nn, convert each to one yearly figure: APY=(1+rn)n−1\text{APY} = \left(1 + \frac{r}{n}\right)^n - 1. For 8%8\% monthly, that is 8.30%8.30\%.

That limit is continuous compounding, where (1+rn)n\left(1 + \frac{r}{n}\right)^{n} approaches ere^{r} and the formula becomes A=PertA = Pe^{rt}. For $1,500 at 3.5%3.5\% for 8 years, A=1500e0.28≈1500×1.32313≈$1,984.69A = 1500e^{0.28} \approx 1500 \times 1.32313 \approx \text{\textdollar}1{,}984.69. Continuous compounding is the ceiling that daily or hourly compounding approaches, and it is the version used in physics and calculus.

Quick check

Which pays more per year: 5%5\% compounded monthly or 5.1%5.1\% compounded annually? Give the effective annual rate of the monthly account as a percent to 2 decimal places.

How do you solve for time, principal or rate?

Bar chart showing $4,000 at 5% falls $90.18 short of $6,000 in year 8 and passes it in year 9
With yearly crediting, the balance is $5,909.82 after 8 years and $6,205.31 after 9, so the $6,000 goal arrives in year 9.

The formula has four inputs plus the answer, so any one of them can be the unknown. Each needs a different tool.

Solving for time needs logarithms. How long for $4,000 to grow to $6,000 at 5%5\% compounded annually? Divide by PP, then take a log, which turns the exponent into a multiplier via the logarithm rules:

1.5=(1.05)t⇒t=ln⁡1.5ln⁡1.05≈0.4054650.048790≈8.311.5 = (1.05)^t \quad \Rightarrow \quad t = \frac{\ln 1.5}{\ln 1.05} \approx \frac{0.405465}{0.048790} \approx 8.31

Interest is only credited at year end, so the balance actually passes $6,000 during year 9. Check: after 8 years it is $5,909.82, after 9 it is $6,205.31.

Solving for principal just divides: P=A(1+i)ntP = \frac{A}{(1+i)^{nt}}, which is the same as A(1+i)−ntA(1+i)^{-nt}, a use of negative exponents. To have $20,000 in 10 years at 4%4\% compounded monthly:

P=20000(1+0.04/12)120≈200001.490833≈13,415P = \frac{20000}{(1 + 0.04/12)^{120}} \approx \frac{20000}{1.490833} \approx 13{,}415

You would need to deposit about $13,415 today.

Solving for rate needs a root. Rearranging gives r=n[(AP)1/(nt)−1]r = n\left[\left(\frac{A}{P}\right)^{1/(nt)} - 1\right], where the exponent 1nt\frac{1}{nt} is an nth root. Practice problem 5 below uses this.

Try this: Rearrange A=P(1+i)kA = P(1+i)^{k} yourself to get ii alone, using a root, and test it on A=1210A = 1210, P=1000P = 1000, k=2k = 2. You should get i=0.1i = 0.1.

Compound interest formula with fractional years and negative rates

Time rarely arrives as a whole number of years. Convert first: 18 months is t=1.5t = 1.5, and 7 months is t=712t = \frac{7}{12}. With monthly compounding, nt=12⋅712=7nt = 12 \cdot \frac{7}{12} = 7 periods, which is clean. The awkward case is a partial period, such as 1.5 years with annual compounding.

Textbooks just allow a fractional exponent: $1,000 at 4%4\% annually for 18 months gives 1000(1.04)1.5=1000⋅1.041.04≈$1,060.601000(1.04)^{1.5} = 1000 \cdot 1.04\sqrt{1.04} \approx \text{\textdollar}1{,}060.60. A real bank would usually credit nothing, or simple interest, for the unfinished period, so check which convention your course uses.

Negative rates work with no changes to the formula. A car that loses 15%15\% of its value each year uses r=−0.15r = -0.15, so the growth factor is 0.850.85. Starting at $20,000, three years later it is worth 20000(0.85)3=20000×0.614125=20000(0.85)^3 = 20000 \times 0.614125 = 12{,}282.50$. A factor below 1 shrinks the balance each period.

Try this: Find the value of $500 at 6%6\% compounded monthly after 9 months. Write ntnt first, then compute 500(1.005)9500(1.005)^{9}. The answer is about $522.96.

Compound interest vs simple interest, and the Rule of 72

Simple interest is A=P(1+rt)A = P(1 + rt). Plot balance against time and you get a straight line with starting value PP and slope PrPr, exactly the pattern of slope-intercept form. The balance climbs by the same dollar amount each year, an arithmetic sequence. Compound interest climbs by the same percentage each year, a geometric sequence, which is why its curve bends upward.

After 2 years at 10%10\% on $1,000, simple interest gives $1,200 and compound gives $1,210. The gap looks tiny early and becomes enormous late, because it grows exponentially.

Rule of 72

Doubling time in years is roughly 72rate in percent\frac{72}{\text{rate in percent}}. At 6%6\% that predicts 12 years, and the exact value is ln⁡2ln⁡1.06≈11.90\frac{\ln 2}{\ln 1.06} \approx 11.90.

The rule comes from ln⁡2≈0.693\ln 2 \approx 0.693, and 72 is used because it has many divisors, so mental division works. It is accurate for rates from about 6%6\% to 10%10\%. At extreme rates it drifts: at 36%36\% it predicts 2 years, but the true answer is about 2.252.25.

Quick check

Use the Rule of 72 to estimate the years needed to double money at 9%9\% interest.

Where is the compound interest formula used in real life?

Savings accounts and certificates of deposit are the obvious case, but the formula matters just as much on the debt side. A credit card with a 24%24\% APR compounded daily has an effective annual rate of about 27.1%27.1\%, so $1,000 left unpaid for a year becomes roughly $1,271. The frequency is hidden in the fine print, and it moves the real cost.

The same mathematics describes any quantity that changes by a fixed percentage per step: population, inflation, and the spread of a signal. That is why the formula is a special case of exponential growth and decay. Use a growth factor above 1 for growth, and below 1 for decay, as in the half-life formula, where the factor is exactly 12\frac{1}{2} per half-life.

The formula has one limit worth knowing. It describes a single deposit left alone. Regular monthly deposits need a different formula, a sum of many such terms, FV=PMT⋅(1+i)N−1iFV = PMT \cdot \frac{(1+i)^N - 1}{i}. And a loan with monthly payments does not follow this formula either, because each payment reduces the balance that is being compounded.

Why is your compound interest answer off?

Most wrong answers trace back to a short list of slips:

  • Typing 66 instead of 0.060.06 for the rate.
  • Using months for tt while rr is yearly.
  • Rounding r/nr/n before raising it to the power.
  • Multiplying inside instead of using the exponent, such as computing P(1+r/n)⋅ntP(1 + r/n) \cdot nt.
  • Splitting the power over the sum, writing (1+x)k(1 + x)^k as 1+xk1 + x^k.

The rounding slip is sneakier than it looks. For $10,000 at 4%4\% compounded monthly over 10 years, the correct growth factor is (1+0.0412)120≈1.490833\left(1 + \frac{0.04}{12}\right)^{120} \approx 1.490833, giving $14,908.33. Rounding the monthly rate to 0.00330.0033 gives about $14,849.01, roughly $59 short. Keep the full value on your calculator, or store it in memory.

When the answer looks wrong, run two quick checks. First, AA must exceed PP for a positive rate. Second, AA should land slightly above the simple interest result P(1+rt)P(1 + rt). If it does both, the setup is probably right, and any remaining error is in the arithmetic.

Practice problems

0 of 5 solved

  1. Find the balance after 3 years when 10001000 dollars earns 5%5\% interest compounded annually. Round to the cent (answer in dollars).

  2. Find the balance after 2 years when 800800 dollars earns 3%3\% compounded monthly. Round to the cent (answer in dollars).

  3. How much must be deposited today at 6%6\% compounded annually to have 1000010000 dollars in 5 years? Round to the cent (answer in dollars).

  4. About how many years does money take to double at 7%7\% compounded annually? Round to 2 decimal places.

  5. A deposit of 30003000 dollars grows to 39003900 dollars in 4 years with annual compounding. Find the annual rate as a percent, to 2 decimal places.

Common questions

What is the compound interest formula?

The formula is A=P(1+rn)ntA = P\left(1 + \frac{r}{n}\right)^{nt}. AA is the final amount, PP the starting principal, rr the annual rate as a decimal, nn the number of compounding periods per year and tt the time in years.

How do you find only the interest earned, not the total balance?

Subtract the principal from the final amount: interest =A−P= A - P. The formula itself returns the whole balance, principal included.

What does n mean in the compound interest formula?

nn is how many times per year interest is added to the balance: 1 for annual, 4 for quarterly, 12 for monthly and 365 for daily. It splits the annual rate into r/nr/n per period and sets the number of periods ntnt.

How do you solve for time in the compound interest formula?

Divide both sides by PP, then take a logarithm of both sides. This gives t=ln⁡(A/P)nln⁡(1+r/n)t = \dfrac{\ln(A/P)}{n\ln(1 + r/n)}.

What is the difference between simple and compound interest formulas?

Simple interest uses A=P(1+rt)A = P(1 + rt) and always earns interest on the original principal only. Compound interest earns interest on the growing balance, so the exponent ntnt appears and the growth curves upward.

Can the compound interest formula use a negative rate?

Yes. A negative rr makes the growth factor smaller than 1, so the balance shrinks. This is how depreciation and exponential decay are modeled.

Up next