Compound Interest Formula: The Math of Growing Money

8 min2026년 5월 19일

The Compound Interest Formula (With Real Numbers)

The compound interest formula is A = P(1 + r/n)^(nt), where A is the final amount, P is the principal (starting amount), r is the annual interest rate (as a decimal), n is the number of times interest compounds per year, and t is the number of years. That's the entire formula. Every savings account, investment return projection, and loan amortization uses this equation or a variation of it.

Let's run a concrete example. You invest $10,000 at 7% annual return (roughly the S&P 500 historical average after inflation) compounded monthly for 20 years. P = 10,000, r = 0.07, n = 12, t = 20. A = 10,000 × (1 + 0.07/12)^(12×20) = 10,000 × (1.005833)^240 = 10,000 × 4.0387 = $40,387. Your money quadrupled without you adding a single dollar. That's compound interest.

Compare that to simple interest (no compounding): A = P(1 + rt) = 10,000 × (1 + 0.07×20) = 10,000 × 2.4 = $24,000. Compounding earned you an extra $16,387 — that's 68% more than simple interest. The difference grows exponentially with time. At 30 years: compound gives $76,123 vs simple's $31,000. At 40 years: compound gives $149,745 vs simple's $38,000. Time is the multiplier.

Why Compounding Frequency Matters (And When It Doesn't)

Compounding frequency (the "n" in the formula) determines how often earned interest starts earning its own interest. Annual compounding (n=1): interest is calculated once per year. Monthly (n=12): interest is calculated every month. Daily (n=365): every day. Continuous (n→∞): the mathematical limit, using the formula A = Pe^(rt).

The practical difference is smaller than most people think. $10,000 at 7% for 20 years: annually = $38,697, monthly = $40,387, daily = $40,552, continuously = $40,552. The jump from annual to monthly is significant ($1,690). From monthly to daily is tiny ($165). From daily to continuous is negligible ($0.40). Most savings accounts compound daily, which is effectively the same as continuous for any practical purpose.

Where frequency matters more: credit card debt. A 24% APR compounded daily means you're charged 0.0657% per day on your balance. If you carry a $5,000 balance for a year without payments, you owe $6,356 (not $6,200 as simple interest would suggest). The daily compounding adds $156 in extra interest. Credit card companies use daily compounding because it maximizes what you owe. Our interest-calculator tool lets you compare different compounding frequencies side by side.

APR vs APY: APR (Annual Percentage Rate) is the stated rate without compounding. APY (Annual Percentage Yield) includes the effect of compounding. A savings account advertising "5.00% APY" with daily compounding actually has an APR of 4.88%. Banks advertise APY for savings (makes it look higher) and APR for loans (makes it look lower). Always compare APY to APY or APR to APR — never mix them.

The Rule of 72 (Quick Mental Math)

The Rule of 72 estimates how long it takes to double your money: divide 72 by the annual return percentage. At 7% return, your money doubles in 72/7 ≈ 10.3 years. At 10%, it doubles in 7.2 years. At 3% (typical savings account), it doubles in 24 years. This approximation is accurate within 1% for rates between 4% and 12%.

The rule works in reverse too. If you want to double your money in 5 years, you need 72/5 = 14.4% annual return. If someone promises to double your money in 2 years, that requires 72/2 = 36% annual return — which should immediately trigger your scam detector. The S&P 500's best single year since 1970 was 37.6% (1995). Sustained 36% returns don't exist in legitimate investments.

For tripling, use the Rule of 115 (divide 115 by the rate). For quadrupling, use 144 (which is just doubling twice, so Rule of 72 × 2). At 7%: double in 10.3 years, triple in 16.4 years, quadruple in 20.6 years. These mental shortcuts help you evaluate investment claims without a calculator. If a financial advisor says your portfolio will grow 5x in 10 years, that requires ~17.5% annual return (Rule of 72 says doubling in 4.1 years) — possible but aggressive.

Regular Contributions (The Real Wealth Builder)

The compound interest formula assumes a single lump sum. In reality, most people invest regularly — $500/month into a 401(k), $200/month into an index fund. The formula for regular contributions is: A = P(1+r/n)^(nt) + PMT × [((1+r/n)^(nt) - 1) / (r/n)]. The first term is your initial investment growing. The second term is the accumulated value of all your regular contributions.

Example: $500/month for 30 years at 7% annual return (compounded monthly), starting from $0. PMT = 500, r = 0.07, n = 12, t = 30. The contribution term: 500 × [((1.005833)^360 - 1) / 0.005833] = 500 × [(8.1165 - 1) / 0.005833] = 500 × 1,219.97 = $609,985. You contributed $180,000 total (500 × 360 months). Compound interest earned you $429,985 — more than double your contributions.

Starting early matters enormously. Person A invests $500/month from age 25 to 35 (10 years, $60,000 total) then stops. Person B invests $500/month from age 35 to 65 (30 years, $180,000 total). At 7% return, Person A has $602,070 at age 65. Person B has $609,985. They end up with nearly the same amount, but Person A invested one-third as much money. The 10-year head start let compounding do the heavy lifting.

Use our loan-calculator tool to model different contribution scenarios. The inputs that matter most (in order): time in the market, contribution amount, rate of return. A 1% higher return over 30 years adds about 25% to your final balance. Starting 5 years earlier adds about 40%. Increasing contributions by $100/month adds a fixed amount. Time and rate compound; contributions add linearly.

When Compound Interest Works Against You (Debt)

The same math that grows investments destroys borrowers. A $5,000 credit card balance at 24% APR (compounded daily), making only minimum payments (typically 2% of balance or $25, whichever is greater): it takes 28 years to pay off and costs $8,275 in interest. You pay $13,275 total for a $5,000 purchase. The compound interest formula works identically — it just works for the bank instead of for you.

Student loans: $35,000 at 6.8% (the current federal rate for undergrad) over the standard 10-year repayment: monthly payment of $403, total paid = $48,326, interest = $13,326. If you extend to 25 years (income-driven repayment): monthly payment of $244, total paid = $73,200, interest = $38,200. The lower payment costs you $24,874 more in interest. Compound interest rewards those who pay fast and punishes those who pay slow.

The debt avalanche strategy: pay minimums on all debts, then throw every extra dollar at the highest-interest debt first. This minimizes total interest paid. The debt snowball (smallest balance first) is psychologically satisfying but mathematically inferior. On $50,000 of mixed debt, the avalanche typically saves $2,000-5,000 compared to the snowball. Use our percentage-calculator to compare the interest cost of different payoff strategies.

One number that should scare you: if you invest $500/month at 7% for 30 years, you get $610,000. If you instead carry $500/month in credit card minimum payments at 24% for 30 years, you pay approximately $180,000 in interest (the balance barely decreases because minimums mostly cover interest). The opportunity cost of debt isn't just the interest — it's the investment returns you didn't earn.

Inflation: The Hidden Tax on Compound Growth

A 7% nominal return with 3% inflation gives you about 4% real return (the exact formula is (1.07/1.03) - 1 = 3.88%, not simply 7-3=4%). Over 30 years, $10,000 at 7% nominal grows to $76,123. But in today's purchasing power (adjusting for 3% inflation), that's only $76,123 / (1.03)^30 = $31,350. Still a 3x real return, but not the 7.6x the nominal number suggests.

The Rule of 72 works for inflation too. At 3% inflation, prices double every 24 years. Something that costs $100 today will cost $200 in 2050. This means your investments need to at least beat inflation to maintain purchasing power. A savings account paying 2% while inflation is 3% means you're losing 1% of purchasing power per year — your money is shrinking in real terms despite the balance growing.

Historical context: US inflation averaged 3.2% from 1926-2023. The S&P 500 returned 10.1% nominal (6.7% real). US Treasury bonds returned 5.1% nominal (1.8% real). Cash (T-bills) returned 3.3% nominal (0.1% real). Over long periods, stocks are the only asset class that consistently beats inflation by a meaningful margin. But "long periods" means 15+ years — in any given 5-year window, stocks can lose to inflation.

For retirement planning: use real returns (after inflation), not nominal. If you need $50,000/year in today's dollars at retirement in 30 years, you'll actually need about $121,000/year in nominal dollars (at 3% inflation). Plan for the real number. Our currency-converter tool can help you think about purchasing power across different time periods and economies.

When Compound Interest Assumptions Break Down

The formula assumes a constant rate of return. Real investments don't work this way. The S&P 500 returned +31% in 2019, -18% in 2022, and +26% in 2023. The sequence of returns matters — a 50% loss followed by a 50% gain doesn't get you back to even (you end up at 75% of your starting value). This is called "volatility drag" and it means actual compound growth is always less than the arithmetic average return suggests.

The formula assumes you never withdraw. In reality, you'll eventually spend the money — retirement withdrawals, home purchase, emergencies. The "4% rule" (withdraw 4% of your portfolio annually in retirement) is based on historical simulations showing this rate is sustainable for 30 years in most market conditions. But it's not guaranteed — a bad sequence of returns early in retirement can deplete the portfolio faster than expected.

The formula assumes no taxes. In a taxable account, you pay capital gains tax on investment growth (15-20% for long-term gains in the US). This reduces your effective return. Tax-advantaged accounts (401k, IRA, Roth IRA) let compound interest work without tax drag — which is why maxing these out is the first priority for most investors. The tax savings compound too.

The formula assumes no fees. A 1% annual management fee on a mutual fund doesn't sound like much, but over 30 years it consumes about 25% of your final balance. $10,000 at 7% for 30 years = $76,123. At 6% (after 1% fee) = $57,435. That 1% fee cost you $18,688. This is why index funds (0.03-0.10% fees) outperform most actively managed funds (0.5-1.5% fees) over long periods. The math is unforgiving.