Simple vs Compound Interest: Formulas, Examples, and How to Calculate
What is interest?
Interest is the cost of using someone else's money — or the reward for letting someone else use yours. When you deposit money in a savings account, the bank pays you interest because it uses your funds to make loans. When you borrow money for a car or a mortgage, you pay interest as compensation to the lender for the risk and the opportunity cost of parting with their capital.
The concept of interest dates back thousands of years. Ancient Sumerian clay tablets from 2400 BC record interest-bearing grain loans. The Code of Hammurabi (1754 BC) set maximum interest rates at 33% for grain and 20% for silver. Today, interest rates are set by central banks, market forces, and credit risk — but the fundamental idea remains unchanged: money has a time value, and interest is the price of that time.
Understanding how interest is calculated is essential whether you are saving, investing, or borrowing. The difference between simple and compound interest — and between APR and APY — can mean tens of thousands of dollars over a lifetime.
Simple interest
Simple interest is calculated only on the original principal amount. It does not account for any interest that has already accumulated. The formula is straightforward:
I = P × r × t
Where:
- I = Interest earned (or owed)
- P = Principal (the original amount)
- r = Annual interest rate (as a decimal)
- t = Time in years
Worked example
You invest $5,000 at 4% simple interest for 3 years:
I = $5,000 × 0.04 × 3 = $600
After 3 years, you have $5,600. You earn exactly $200 per year, every year — the amount never changes because interest is only calculated on the original $5,000.
When simple interest is used
- Short-term personal loans
- Auto loans (many use simple interest)
- Some bonds (coupon payments)
- Treasury bills and notes
- Installment loans where interest is pre-calculated
Compound interest
Compound interest is calculated on the principal plus all previously accumulated interest. This means you earn interest on your interest — creating exponential growth over time. Albert Einstein reportedly called compound interest "the eighth wonder of the world," and whether or not the attribution is accurate, the sentiment is mathematically sound.
The compound interest formula is:
A = P(1 + r/n)nt
Where:
- A = Final amount (principal + interest)
- P = Principal (initial investment)
- r = Annual interest rate (as a decimal)
- n = Number of times interest compounds per year
- t = Number of years
Worked example
You invest $5,000 at 4% compounded monthly for 3 years:
A = $5,000 × (1 + 0.04/12)^(12×3) = $5,000 × (1.00333)^36 = $5,636.36
Compared to simple interest ($5,600), compound interest earns you an extra $36.36 over 3 years. That gap widens dramatically over longer periods and at higher rates.
Calculate Interest Instantly
Plug in your principal, rate, and time to see exactly how simple and compound interest compare. No sign-up required.
Open Interest Calculator →The power of compounding
The real magic of compound interest reveals itself over long time horizons. Small differences in time, rate, or compounding frequency produce enormous differences in final wealth. Here is a comparison of $10,000 invested at 7% annual compound interest:
| Years | Final Value | Interest Earned | Growth Multiple |
|---|---|---|---|
| 5 | $14,026 | $4,026 | 1.4x |
| 10 | $19,672 | $9,672 | 2.0x |
| 15 | $27,590 | $17,590 | 2.8x |
| 20 | $38,697 | $28,697 | 3.9x |
| 25 | $54,274 | $44,274 | 5.4x |
| 30 | $76,123 | $66,123 | 7.6x |
Notice the pattern: the money roughly doubles every 10 years at 7%. The growth in the last 10 years ($76,123 - $38,697 = $37,426) is almost as much as the entire balance at year 20. This is the essence of compounding — the growth accelerates over time because each year's interest base is larger than the last.
Starting early vs. starting late
Consider two investors who each contribute $10,000 once:
- Investor A invests at age 25 and lets it grow for 40 years at 7%: $149,745
- Investor B invests at age 35 and lets it grow for 30 years at 7%: $76,123
Investor A ends up with nearly twice as much money — not because they invested more, but because they had 10 extra years of compounding. Those 10 years of doing nothing are worth $73,622. This is why every financial advisor says the same thing: start early.
Compounding frequency
How often interest compounds affects the final amount. More frequent compounding means interest is added to the principal more often, which means subsequent interest calculations use a larger base.
| Frequency | n value | $10,000 at 7% for 10 years |
|---|---|---|
| Annually | 1 | $19,672 |
| Semi-annually | 2 | $19,898 |
| Quarterly | 4 | $20,016 |
| Monthly | 12 | $20,097 |
| Daily | 365 | $20,137 |
| Continuous | ∞ | $20,138 |
The jump from annual to monthly compounding ($425 more) is meaningful. The jump from monthly to daily ($40 more) is modest. And the jump from daily to continuous is just $1. In practice, monthly compounding captures most of the benefit — which is why most savings accounts and investment accounts compound monthly or daily.
APR vs. APY
These two acronyms cause more confusion than any other terms in personal finance. Here is the clear distinction:
- APR (Annual Percentage Rate) — The stated annual rate, ignoring compounding. It is the "nominal" rate.
- APY (Annual Percentage Yield) — The effective annual rate after accounting for compounding. It is what you actually earn or pay.
The conversion formula from APR to APY is:
APY = (1 + APR/n)^n - 1
Example: A credit card with 24% APR compounded monthly:
APY = (1 + 0.24/12)^12 - 1 = (1.02)^12 - 1 = 0.2682 = 26.82%
Why the discrepancy matters: Credit card companies advertise APR (24%) because it looks lower. Savings accounts advertise APY because it looks higher. Both are technically accurate — but they represent different things. When comparing financial products, always compare APY to APY or APR to APR. Mixing them is an apples-to-oranges mistake that costs real money.
The Rule of 72
The Rule of 72 is a mental math shortcut for estimating how long it takes money to double at a given compound interest rate:
Years to double = 72 / interest rate
| Rate | Rule of 72 estimate | Actual doubling time |
|---|---|---|
| 4% | 18 years | 17.67 years |
| 6% | 12 years | 11.90 years |
| 7% | 10.3 years | 10.24 years |
| 8% | 9 years | 9.01 years |
| 10% | 7.2 years | 7.27 years |
| 12% | 6 years | 6.12 years |
The rule is remarkably accurate for rates between 4% and 12%. At very low rates (below 2%) or very high rates (above 20%), the approximation breaks down. For those ranges, use 69.3 instead of 72 for a slightly better estimate — or just use a calculator.
Continuous compounding
As compounding frequency approaches infinity, we reach continuous compounding — the mathematical limit of the compound interest formula. The formula simplifies to:
A = Pert
Where e is Euler's number (approximately 2.71828). This formula is used in:
- Theoretical finance and options pricing (the Black-Scholes model)
- Some institutional money market instruments
- Academic comparisons of interest rate scenarios
- Population growth modeling and radioactive decay
Example: $10,000 at 7% continuous compounding for 10 years:
A = $10,000 × e^(0.07 × 10) = $10,000 × e^0.7 = $10,000 × 2.01375 = $20,138
In practice, continuous compounding produces only marginally more than daily compounding. Its primary importance is theoretical — it creates cleaner mathematics for financial modeling.
Real-world applications
Savings accounts and CDs
Banks pay compound interest on deposits, typically compounding daily and paying monthly. A high-yield savings account at 4.5% APY on $25,000 earns approximately $1,125 per year — and that amount increases each year as the balance grows.
Credit cards
Credit card debt is one of the most expensive forms of compound interest working against you. A $5,000 balance at 24% APR (compounded daily) grows to $6,356 in one year if no payments are made. The "minimum payment trap" keeps borrowers in debt for decades because minimum payments barely cover the monthly interest charges.
Student loans
Federal student loans typically use simple interest during repayment. However, during periods of deferment or forbearance, unpaid interest can capitalize (be added to the principal) — effectively creating a compounding effect. Understanding when capitalization events occur is critical to managing student loan cost.
Mortgages
Mortgages use a form of compound interest through amortization. While mortgage interest is calculated as simple interest on the remaining balance each month, the amortization schedule means early payments are overwhelmingly interest. On a $300,000 mortgage at 6.5%, the total interest paid over 30 years exceeds $382,000.
Investments and retirement accounts
The stock market has historically returned approximately 7-10% annually (after inflation: 7%). A 401(k) contribution of $500/month starting at age 25, growing at 7% compounded monthly, reaches approximately $1.2 million by age 65. Starting the same contribution at age 35 yields only $567,000 — less than half.
Code examples
JavaScript: Compound interest calculator
function compoundInterest(principal, rate, n, years) {
// principal: initial amount
// rate: annual interest rate (decimal, e.g., 0.07 for 7%)
// n: compounding frequency per year
// years: number of years
const amount = principal * Math.pow((1 + rate / n), n * years);
const interest = amount - principal;
return {
finalAmount: amount.toFixed(2),
interestEarned: interest.toFixed(2)
};
}
// Example: $10,000 at 7% compounded monthly for 30 years
const result = compoundInterest(10000, 0.07, 12, 30);
console.log(`Final amount: $${result.finalAmount}`);
// Output: Final amount: $81164.97
console.log(`Interest earned: $${result.interestEarned}`);
// Output: Interest earned: $71164.97
Python: Compound interest calculator
import math
def compound_interest(principal, rate, n, years):
"""
Calculate compound interest.
Args:
principal: Initial investment amount
rate: Annual interest rate (decimal, e.g., 0.07 for 7%)
n: Compounding frequency per year
years: Number of years
Returns:
Tuple of (final_amount, interest_earned)
"""
amount = principal * (1 + rate / n) ** (n * years)
interest = amount - principal
return round(amount, 2), round(interest, 2)
def continuous_compound(principal, rate, years):
"""Calculate continuous compound interest using A = Pe^(rt)."""
amount = principal * math.exp(rate * years)
return round(amount, 2), round(amount - principal, 2)
# Example: $10,000 at 7% compounded monthly for 30 years
final, earned = compound_interest(10000, 0.07, 12, 30)
print(f"Final amount: ${final:,.2f}")
# Output: Final amount: $81,164.97
print(f"Interest earned: ${earned:,.2f}")
# Output: Interest earned: $71,164.97
# Rule of 72
rate_percent = 7
doubling_years = 72 / rate_percent
print(f"Doubling time at {rate_percent}%: ~{doubling_years:.1f} years")
# Output: Doubling time at 7%: ~10.3 years
Tips for maximizing returns
- Start as early as possible. Time is the single most powerful variable in the compound interest formula. Even small amounts invested early outperform larger amounts invested later.
- Choose higher compounding frequency. All else being equal, monthly compounding beats annual compounding. Look for accounts that compound daily.
- Reinvest earnings. Dividends, interest payments, and capital gains should be reinvested rather than withdrawn. Breaking the compounding chain by withdrawing earnings resets the exponential growth.
- Minimize fees. A 1% annual fee on an investment account does not sound like much, but over 30 years it can consume 25-30% of your total returns. Low-cost index funds preserve compounding.
- Avoid high-interest debt. Compound interest works against you on credit cards and loans. Pay off high-rate debt before investing — a guaranteed 24% "return" (by eliminating credit card interest) beats any investment.
- Use tax-advantaged accounts. 401(k)s, IRAs, and Roth accounts let your money compound without being reduced by annual tax drag. The difference between taxable and tax-deferred compounding over 30 years is substantial.
Run Your Own Scenarios
Compare simple vs. compound interest, test different compounding frequencies, and see how starting early changes your outcome. Free, instant, no account needed.
Try the Interest Calculator →Frequently Asked Questions
Simple interest is calculated only on the original principal — you earn the same dollar amount each period. Compound interest is calculated on the principal plus all previously accumulated interest, so your earnings accelerate over time. For example, $10,000 at 7% simple interest earns a flat $700 per year. With annual compound interest, year one earns $700, year two earns $749, year three earns $801, and so on. Over 30 years, the compound version produces $76,123 versus $31,000 from simple interest.
The Rule of 72 is a quick mental math shortcut: divide 72 by the annual interest rate to estimate how many years it takes for an investment to double. At 6%, money doubles in about 12 years (72/6). At 8%, it doubles in about 9 years (72/8). The rule is most accurate for rates between 4% and 12%. For very low or very high rates, using 69.3 instead of 72 gives a slightly better approximation.
More frequent compounding always produces higher returns, but with diminishing gains. The jump from annual to monthly compounding is significant and worth seeking out. The jump from monthly to daily is modest, and from daily to continuous is negligible. For practical purposes, monthly or daily compounding captures nearly all the benefit. Most high-yield savings accounts compound daily and credit monthly.
APR (Annual Percentage Rate) is the nominal rate that does not include compounding within the year. APY (Annual Percentage Yield) is the effective rate that accounts for compounding — it represents what you actually earn or pay over 12 months. A 24% APR compounded monthly has an APY of 26.82%. Savings accounts show APY (the higher number) and credit cards show APR (the lower number). To convert: APY = (1 + APR/n)^n - 1, where n is compounding periods per year.
With annual compounding, $10,000 at 7% for 30 years grows to approximately $76,123. With monthly compounding, it reaches $81,165. That means your original investment grows to more than 7.6 to 8.1 times its starting value — with $66,123 to $71,165 of that being pure interest. This is why long-term investing is so powerful: most of the final balance comes from compounded returns, not from the original principal.
It depends on which side of the equation you are on. For savers and investors, compound interest is always better — you earn returns on your returns. For borrowers, simple interest is preferable because the total cost of the loan is lower and more predictable. This is why some consumer-friendly loans (many auto loans, some personal loans) use simple interest, while credit cards and most long-term debt use compound interest. When evaluating a loan, always check whether interest is simple or compound.