The Compound Interest Formula, Explained

A = P(1 + r/n)^(nt), broken down variable by variable with worked examples.

The compound interest formula is A = P(1 + r/n)^(nt). It calculates how a principal P grows at annual rate r, compounded n times per year, over t years. On $1,000 at 8% for 10 years, annual compounding gives $2,158.92 while daily compounding gives $2,225.35 — compounding frequency matters, but time and rate matter more.

The formula

A = P(1 + r/n)nt

Each variable means something specific:

VariableMeaning
AFinal amount after interest
PPrincipal — the starting amount
rAnnual interest rate, as a decimal (8% → 0.08)
nCompounding periods per year (12 = monthly, 365 = daily)
tNumber of years

Worked example

Let's apply it: $1,000 at 8% annual return for 10 years, with no contributions. The only change is how often interest is credited:

Compounding frequencynResult
Annual1$2,158.92
Semi-annual2$2,191.12
Quarterly4$2,208.04
Monthly12$2,219.64
Daily365$2,225.35
Continuous$2,225.54

Annual compounding grows $1,000 to $2,158.92; daily compounding reaches $2,225.35 — a difference of about $66. Compounding frequency is real, but it's a small effect next to rate and time.

Try the calculator with your own numbers →

Why time is the real lever

Because time sits in the exponent (nt), it doesn't add to growth — it multiplies it. Doubling the time doesn't double the result; it roughly squares the growth factor. That's why starting earlier matters more than trying to pick a higher rate.

For example, $1,000 at 8% for 10 years is $2,158.92, but for 20 years it's $4,660.96 — more than double, because the growth compounds on itself.

Continuous compounding

As n grows toward infinity, the formula becomes A = Pert. It's the mathematical ceiling of compounding — the most growth mathematically possible at a given rate and time. For real accounts that credit daily or monthly, it's a few dollars' difference on modest sums, so it's mostly useful as a clean upper bound and a shortcut in higher math.

Risk & limitations

The formula assumes a constant rate, but real investment returns fluctuate year to year. Inflation, taxes, and fees are excluded and reduce real results. More frequent compounding helps, but it does not change risk. This is educational math, not a prediction or advice.

Frequently asked questions

What is the compound interest formula?
A = P(1 + r/n)^(nt), where A is the final amount, P the principal, r the annual rate as a decimal, n the compounding periods per year, and t the number of years.
What does n mean in the compound interest formula?
The number of compounding periods per year: 1 for annual, 12 for monthly, 365 for daily. Larger n means interest is added to the balance more often.
How do you calculate monthly compound interest?
Set n = 12 and use A = P(1 + r/12)^(12t). Example: $1,000 at 8% for 10 years compounded monthly is about $2,219.64.
What is continuous compounding?
The theoretical limit of compounding infinitely often, given by A = Pe^(rt). It produces a slightly higher result than any discrete frequency — here $2,225.54 versus $2,225.35 daily.