The Compound Interest Formula, Explained
The compound interest formula is A = P(1 + r/n)^(nt): your final amount equals principal P times one plus the annual rate r divided by compounding periods n, raised to the power of n times years t. On $10,000 at 7% compounded monthly for 10 years it gives $20,096.61. Run your own numbers with our compound interest calculator below.
What each letter in A = P(1 + r/n)^nt means
The formula has four inputs and one output. P is the principal, the lump sum you start with — say $10,000. r is the annual interest rate written as a decimal, so 7% becomes 0.07. n is the number of compounding periods per year: 1 for annual, 4 for quarterly, 12 for monthly, 365 for daily. t is the number of years the money stays invested. The output A is the final amount: principal plus every dollar of interest. The engine of the formula is the piece (1 + r/n). Each compounding period, your balance is multiplied by this growth factor, so interest earned in January starts earning its own interest in February. Raise that factor to the power of nt — the total number of compounding periods — and multiply by P. That exponent is why compounding is explosive over long horizons: the growth factor compounds on itself, period after period, instead of being added once. Two practical notes before we calculate. First, r must be a decimal, not a percent: 7 goes in as 0.07, and forgetting this is the single most common hand-calculation error. Second, n divides the rate but multiplies the exponent, which is exactly why more frequent compounding beats less frequent compounding at the same nominal rate — a fact we will measure precisely in the examples below.
Worked example: $10,000 at 7% compounded monthly for 10 years
Let us run the full calculation by hand. P = 10,000, r = 0.07, n = 12, t = 10. Step one: divide the rate by the compounding periods, r/n = 0.07/12 = 0.0058333. That is the interest credited each month, about 0.583% of the balance. Step two: add one to get the monthly growth factor, 1.0058333. Step three: count the total periods, nt = 12 times 10 = 120 months. Step four: raise the factor to the 120th power. 1.0058333^120 = 2.009661, meaning every dollar roughly doubles over the decade. Step five: multiply by the principal, 10,000 times 2.009661 = $20,096.61. The interest earned is A minus P: $20,096.61 minus $10,000 = $10,096.61. Notice something important: the interest ($10,096.61) is larger than the original deposit. That crossover — where earned interest exceeds what you put in — is the signature of compounding, and it arrived here in just ten years at a modest 7%. Simple interest on the same terms would have paid only $7,000 (10,000 times 0.07 times 10), so compounding added $3,096.61 for free, purely from interest earning interest. If you change any single input, the whole result shifts: bump the rate to 8% and the answer becomes $22,196.40; stretch the term to 15 years and it becomes $28,489.47. That sensitivity is exactly why a compound interest calculator beats mental math for real planning.
Same money, different n: annual vs monthly vs daily compounding
Keep P = $10,000, r = 7%, t = 10 years, and change only n. With annual compounding (n = 1), the factor is 1.07^10 = 1.967151, giving $19,671.51. With monthly compounding (n = 12), we already computed $20,096.61. With daily compounding (n = 365), the factor is (1 + 0.07/365)^3650 = 2.013628, giving $20,136.28. The ranking is exactly what the theory predicts: daily beats monthly beats annual, because interest credited sooner starts earning sooner. But look at the sizes. Monthly beats annual by $425.10 — meaningful. Daily beats monthly by only $39.67 — barely worth noticing. This is the law of diminishing returns on compounding frequency: going from 1 to 12 periods buys you $425, while going from 12 to 365 buys you $40. Pushing n toward infinity converges on continuous compounding, e^(rt), which here gives $20,137.53 — just $1.25 above daily. The practical lesson: when comparing two savings accounts, the effective annual rate matters far more than whether compounding is monthly or daily. A 7% account compounding monthly (effective 7.229%) beats a 7.1% account compounding annually (effective 7.1%), but a daily-compounding 7% account never catches a monthly-compounding 7.25% account. Always compare effective rates, not frequencies.
The formula with monthly contributions added
Real investing is not a single lump sum — it is a lump sum plus regular deposits. The extended formula handles that: A = P(1 + r/n)^(nt) + PMT times [((1 + r/n)^(nt) minus 1) / (r/n)], where PMT is the deposit each period. Work it with P = $5,000, PMT = $200 per month, r = 8%, n = 12, t = 15 years. The monthly factor is 1 + 0.08/12 = 1.0066667, and nt = 180 months. 1.0066667^180 = 3.306928. The lump-sum leg: 5,000 times 3.306928 = $16,534.64. The contributions leg: 200 times ((3.306928 minus 1) / 0.0066667) = 200 times 346.039 = $69,207.86. Total: $85,742.50. Now compare against what you actually deposited: $5,000 plus 180 monthly payments of $200 = $41,000. Interest did the rest — $44,742.50, more than everything you contributed. The contributions leg dominates because each $200 deposit compounds for a different length of time: the first deposit compounds for the full 15 years, the last for one month. Raise PMT to $300 and the total jumps to about $120,346; the math rewards consistency more than timing. This is also where small lifestyle numbers turn into big retirement numbers: trimming a 40-mile round-trip commute by carpooling twice a week, for instance — convert miles to kilometers if your mileage app tracks metric — can free $150 a month in gas, and $150 a month at 8% for 20 years compounds to roughly $88,000. Our compound interest calculator with monthly contributions runs this exact extended formula instantly.
What the formula assumes — and what it gets wrong
The formula is exact mathematics applied to idealized assumptions, and the gaps matter. First, it assumes the rate never changes; real investments fluctuate, so treat any projection as a scenario, not a promise. Second, it ignores taxes and fees: a 7% return in a taxable account at a 22% marginal rate behaves more like 5.46% after tax, which over 10 years turns our $20,096.61 into about $17,086. Third, it ignores inflation: at 3% annual inflation, $20,096.61 of future dollars buys what roughly $14,950 buys today, so the real return is closer to 3.88% (1.07/1.03 minus 1), not 7%. Fourth, watch the APR-versus-APY trap: a bank advertising 7% APR compounded monthly actually pays an effective 7.229%, while 7% APY means 7% effective by definition — always compare APY to APY. Fifth, the formula says nothing about risk: the same math describes a savings account and a volatile stock fund, but only the savings account delivers the stated rate with near certainty. Finally, remember that compounding works symmetrically on debt, which is why understanding this formula also means understanding what lenders charge you — the mirror image is covered in our guides on how mortgage interest is calculated each month and total interest paid on a mortgage. One more practical lever: time itself. An extra 45 minutes of overtime per week — convert minutes to hours to price it precisely — invested monthly can add tens of thousands to the contributions leg over a career.
Do it in one click
Run the numbers instantly — free compound interest calculator.
Open the Free Tool →