Compound Interest Calculator

Apply A = P(1 + r/n)^(nt) at any compounding frequency with AI-powered step-by-step solutions
$5,000 at 4% compounded quarterly for 6 years
$2,000 at 5% compounded daily for 3 years
What annual rate turns $1,000 into $1,500 in 5 years?
$10,000 at 3% compounded continuously for 8 years

The Compound Interest Formula

Compound interest means interest is added to the balance and then itself earns interest. The closing amount is

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

  • PP — the principal you start with
  • rr — the nominal annual rate as a decimal (5% is 0.050.05)
  • nn — compounding periods per year: 1 yearly, 4 quarterly, 12 monthly, 365 daily
  • tt — time in years (a value like t=0.5t = 0.5 is fine)

The interest earned alone is APA - P.

Each period the balance is multiplied by (1+rn)\left(1 + \frac{r}{n}\right), and doing that ntnt times gives the exponent. That is the whole derivation — compounding is repeated multiplication, which is why growth is exponential rather than linear.

With simple interest, A=P(1+rt)A = P(1 + rt): interest is charged on the original principal only, so it grows in a straight line and always trails compounding over the same term.

Frequency, Continuous Compounding and the Inverses

Letting nn grow without bound

As the compounding gets more frequent, (1+rn)nt\left(1 + \frac{r}{n}\right)^{nt} approaches a limit:

A=PertA = Pe^{rt}

This is continuous compounding — the theoretical ceiling for a given nominal rate. The step from yearly to monthly is noticeable; from daily to continuous it is almost nothing.

The effective annual rate

EAR=(1+rn)n1EAR = \left(1 + \frac{r}{n}\right)^{n} - 1

Compare two accounts by EAR, never by nominal rate alone, unless they compound identically.

Solving for what you do not know

Rearranged, the same formula answers three more questions:

r=n[(AP)1nt1],t=ln(A/P)nln ⁣(1+rn),P=A(1+rn)ntr = n\left[\left(\frac{A}{P}\right)^{\frac{1}{nt}} - 1\right], \qquad t = \frac{\ln(A/P)}{n\ln\!\left(1 + \frac{r}{n}\right)}, \qquad P = \frac{A}{\left(1 + \frac{r}{n}\right)^{nt}}

The last one is the present value: what a future amount is worth today.

Doubling time

Exactly, t=ln2/ln(1+i)t = \ln 2 / \ln(1 + i) where ii is the periodic rate. The familiar "rule of 72" is just a mental shortcut to that expression and drifts at high rates.

Common Mistakes to Avoid

  • Forgetting to divide rr by nn: the rate in the bracket is per period. Using the annual rate with a monthly exponent is the classic blow-up.
  • Percent not converted: r=0.05r = 0.05, not 55. Check the magnitude of your answer as a sanity test.
  • tt measured in periods: tt is in years and nn supplies the periods. Do not put 36 months into tt and set n=12n = 12.
  • Comparing nominal rates directly: 5.9% compounded daily can beat 6% compounded annually. Only EAR settles it.
  • Using A=P(1+r/n)ntA = P(1+r/n)^{nt} for regular deposits: a lump-sum formula cannot handle contributions — each deposit compounds for a different length of time and needs the annuity formula.
  • Assuming daily compounding is a big win: at 6% nominal the EAR is about 6.1678% monthly versus 6.1831% daily. The rate matters, the frequency barely does.
  • Ignoring withdrawals, fees and taxes: any of them changes the effective rate that belongs in the formula, and all three depend on your account and jurisdiction.

示例题目

Step 1: P=5000P = 5000, r=0.04r = 0.04, n=4n = 4, t=6t = 6
Step 2: Periodic rate: r/n=0.04/4=0.01r/n = 0.04/4 = 0.01; exponent: nt=24nt = 24
Step 3: (1.01)241.2697346(1.01)^{24} \approx 1.2697346
Step 4: A5000×1.26973466,348.67A \approx 5000 \times 1.2697346 \approx 6{,}348.67
Step 5: Interest earned: 6348.675000=1,348.676348.67 - 5000 = 1{,}348.67
Answer: A \approx \6{,}348.67,ofwhich, of which $1{,}348.67$ is interest

Step 1: r/n=0.05/3650.000136986r/n = 0.05/365 \approx 0.000136986; nt=365×3=1095nt = 365 \times 3 = 1095
Step 2: (1.000136986)10951.1618223(1.000136986)^{1095} \approx 1.1618223
Step 3: A2000×1.16182232,323.64A \approx 2000 \times 1.1618223 \approx 2{,}323.64
Step 4: Compare continuous: Pert=2000e0.152000×1.16183422,323.67Pe^{rt} = 2000e^{0.15} \approx 2000 \times 1.1618342 \approx 2{,}323.67
Answer: A \approx \2{,}323.64barelytwocentsbelowthecontinuouscompoundingceilingof— barely two cents below the continuous-compounding ceiling of$2{,}323.67$

Step 1: Solve A=P(1+r)tA = P(1+r)^t for rr: r=(A/P)1/t1r = (A/P)^{1/t} - 1
Step 2: A/P=1500/1000=1.5A/P = 1500/1000 = 1.5
Step 3: 1.51/5=1.50.21.08447181.5^{1/5} = 1.5^{0.2} \approx 1.0844718
Step 4: r0.0844718=8.4472%r \approx 0.0844718 = 8.4472\%
Step 5: Check: 1000×1.084471851,500.001000 \times 1.0844718^5 \approx 1{,}500.00
Answer: r8.4472%r \approx 8.4472\% per year

常见问题

A = P(1 + r/n)^(nt), where P is the principal, r the nominal annual rate as a decimal, n the compounding periods per year and t the time in years. The interest alone is A − P. Every period multiplies the balance by (1 + r/n), which is why growth is exponential.

Set n = 12, so the periodic rate is r/12 and the exponent is 12t. For example, 6% for 3 years monthly gives (1 + 0.005)^36. Never leave the annual rate in the bracket while using a monthly exponent.

It is the limit of (1 + r/n)^(nt) as n goes to infinity, which equals P·e^(rt). It represents the maximum a given nominal rate can produce. In practice it sits only fractions of a cent above daily compounding.

Exactly, t = ln(2) / ln(1 + i), where i is the rate per period; divide by the number of periods per year to express it in years. At 6% compounded annually that is about 11.9 years, close to but not identical to the rule-of-72 estimate of 12.

相关求解器

免费试用 AI-Math

任何数学问题都能获得分步解答。拍照上传或输入问题即可。

开始解题