Every number in the formula, decoded — plus worked examples you can verify by hand.
A = P × (1 + r/n)nt
Where:
A = Final amount (what you'll have)
P = Principal (initial deposit)
r = Annual interest rate (as a decimal, e.g. 7% = 0.07)
n = Compounding frequency per year (12 = monthly)
t = Time in years
Worked Example: $10,000 at 7% for 20 Years
P = $10,000 r = 0.07 n = 12 (monthly) t = 20 years
Step 1: r/n = 0.07 ÷ 12 = 0.005833
Step 2: nt = 12 × 20 = 240 periods
Step 3: A = $10,000 × (1 + 0.005833)^240
Step 4: A = $10,000 × (1.005833)^240
Step 5: A = $10,000 × 3.10565
Step 6: A = $40,387
Interest earned = $40,387 − $10,000 = $30,387 (304% gain)
Continuous Compounding Formula
When interest compounds continuously (every infinitesimal moment), the formula simplifies using Euler's number:
A = P × ert
e ≈ 2.71828 (Euler's number)
Continuous compounding produces slightly more than daily compounding and represents the theoretical maximum. The difference between daily and continuous compounding on $10,000 at 7% for 20 years is only about $12 — demonstrating diminishing returns beyond daily compounding.
Extended Formula: With Regular Contributions
When you add regular monthly contributions (C), the formula becomes:
A = P(1 + r/n)nt + C × [((1 + r/n)nt − 1) / (r/n)]
Where C = regular contribution per compounding period
This is the formula our calculator uses when you enter monthly contributions. The second term represents the future value of an annuity — the accumulated value of all your regular deposits.