How to Calculate Compound Interest: Step-by-Step with Examples
Learn how to calculate compound interest using the formula A = P(1 + r/n)^nt with worked examples, a comparison table, and a free compound interest calculator.
How to calculate compound interest is one of the most useful things you can learn about money. Compound interest is the reason a $10,000 investment can quietly grow into $76,000 over 30 years — without you adding another dollar. It is also the reason a credit card balance left unpaid can double in under five years. Understanding the mechanics puts you firmly in control of both.
What is compound interest?
Compound interest is interest calculated on both the original principal and the interest already earned. Each period, your interest is added to the balance, and the next period's interest is calculated on that larger amount. This creates a snowball effect — slow at first, then dramatically faster over time.
Simple interest, by contrast, is calculated only on the original principal every period. It grows in a straight line. Compound interest grows in a curve — and that curve steepens sharply over longer timeframes.
The compound interest formula explained
The standard formula for compound interest is:
A = P × (1 + r/n)^(n×t)
Where:
- A = final amount (principal + interest)
- P = principal (starting amount)
- r = annual interest rate (as a decimal — 7% = 0.07)
- n = number of times interest compounds per year
- t = time in years
The total interest earned is simply A − P.
How to calculate compound interest step by step
Here is a complete worked example. You invest $10,000 at 7% annual interest, compounded monthly, for 20 years.
Step 1 — Identify your variables:
- P = $10,000
- r = 0.07 (7%)
- n = 12 (monthly compounding)
- t = 20
Step 2 — Plug into the formula:
A = 10,000 × (1 + 0.07/12)^(12×20)
A = 10,000 × (1.005833)^240
A = 10,000 × 4.0387
A = $40,387
Your $10,000 investment grows to $40,387 — meaning you earned $30,387 in interest on a $10,000 principal. That is a 3× return without ever touching the account.
Compound interest vs simple interest: what's the real difference?
Using the same $10,000 at 7% over 20 years, here is what simple interest returns instead:
Simple interest = P × r × t = 10,000 × 0.07 × 20 = $14,000 total interest
So the same principal, same rate, same 20 years — but compound interest earns $30,387 vs simple interest's $14,000. That $16,387 difference is entirely due to interest earning interest.
| Feature | Simple Interest | Compound Interest |
|---|---|---|
| Calculated on | Principal only | Principal + accumulated interest |
| Growth shape | Linear (straight line) | Exponential (curve) |
| $10,000 at 7% after 20 years | $24,000 | $40,387 |
| $10,000 at 7% after 30 years | $31,000 | $76,123 |
| Where you see it | Some personal loans, bonds | Savings accounts, investments, credit cards |
How often is compound interest calculated?
The frequency of compounding — daily, monthly, quarterly, or annually — has a meaningful effect on the final amount. The more frequently interest compounds, the more you earn (or owe). Here is the same $10,000 at 7% for 20 years across different compounding frequencies:
| Compounding frequency | n (per year) | Final value | Interest earned |
|---|---|---|---|
| Annually | 1 | $38,697 | $28,697 |
| Quarterly | 4 | $40,064 | $30,064 |
| Monthly | 12 | $40,387 | $30,387 |
| Daily | 365 | $40,495 | $30,495 |
The difference between annual and daily compounding on this example is about $1,800 over 20 years — meaningful but not dramatic. The rate and time period matter far more than compounding frequency for most real-world scenarios.
In practice: savings accounts and money market accounts typically compound daily. Most investment accounts and retirement funds compound monthly or quarterly. Mortgages compound monthly. Credit cards compound daily — which is why high-APR balances grow so fast.
Why compound interest matters for investing
The most powerful aspect of compound interest is time. Starting 10 years earlier can matter more than contributing twice as much money. Here is a comparison of two investors, both earning 7% annually:
| Early investor | Late investor | |
|---|---|---|
| Starts investing at age | 25 | 35 |
| Monthly contribution | $300 | $600 |
| Total contributed by age 65 | $144,000 | $216,000 |
| Balance at age 65 | $798,000 | $607,000 |
The early investor contributes $72,000 less but ends up with $191,000 more. The extra 10 years of compounding — not the extra contributions — makes the difference. This is why financial advisers consistently say the best time to start investing is as early as possible.
This principle applies directly to 401k contributions, Roth IRA accounts, and any long-term investment account. Use our free 401k Calculator and Roth IRA Calculator to see how compounding works on your own retirement numbers.
Key takeaways
- Compound interest is calculated on principal plus previously earned interest — it grows exponentially, not linearly.
- The formula is A = P × (1 + r/n)^(n×t).
- On $10,000 at 7% over 20 years: compound interest earns $30,387 vs simple interest's $14,000.
- More frequent compounding (daily vs annual) adds value, but time and rate matter far more.
- Starting investing 10 years earlier can outperform contributing twice as much money later.
Frequently asked questions
How often is compound interest calculated on a savings account?
Most high-yield savings accounts and money market accounts compound interest daily and credit it to your account monthly. This means your balance earns interest on interest every single day, even though you only see it reflected in your balance once a month. Always check the account's APY (Annual Percentage Yield), which already accounts for the compounding frequency — it is a more accurate comparison metric than the stated rate.
What is the Rule of 72?
The Rule of 72 is a quick mental shortcut to estimate how long it takes to double an investment. Divide 72 by the annual interest rate and you get the approximate number of years. At 7%, your money doubles in roughly 72 ÷ 7 = 10.3 years. At 10%, it doubles in about 7.2 years. It is a rough estimate but accurate enough for quick back-of-envelope planning.
Does compound interest work against you on debt?
Yes — and aggressively. A $5,000 credit card balance at 20% APR compounded daily, with only minimum payments made, will take over 15 years to pay off and cost more than $8,000 in interest — nearly doubling the original debt. The same mathematics that builds wealth in investments destroys it in high-interest debt. Use our Credit Card Payoff Calculator to see your exact payoff timeline.
What is the difference between APR and APY?
APR (Annual Percentage Rate) is the stated interest rate without accounting for compounding. APY (Annual Percentage Yield) includes the effect of compounding within the year. A savings account with a 5% APR compounded monthly has an APY of 5.12%. When comparing savings products, always use APY — it shows the true annual return. When comparing loans, always use APR — it shows the true annual cost including fees.
Can I calculate compound interest in a spreadsheet?
Yes. In Excel or Google Sheets, use the FV (Future Value) function: =FV(rate/n, n*t, 0, -principal). For $10,000 at 7% compounded monthly for 20 years: =FV(0.07/12, 12*20, 0, -10000) returns $40,387. Alternatively, use our free Compound Interest Calculator which handles all the inputs visually with no formula required.
Free tool
Try the Compound Interest Calculator
Use our free compound interest calculator to calculate results instantly — no signup required.
Open Compound Interest Calculator →