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:

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

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:

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:

YearsFinal ValueInterest EarnedGrowth Multiple
5$14,026$4,0261.4x
10$19,672$9,6722.0x
15$27,590$17,5902.8x
20$38,697$28,6973.9x
25$54,274$44,2745.4x
30$76,123$66,1237.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 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.

Frequencyn value$10,000 at 7% for 10 years
Annually1$19,672
Semi-annually2$19,898
Quarterly4$20,016
Monthly12$20,097
Daily365$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:

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

RateRule of 72 estimateActual doubling time
4%18 years17.67 years
6%12 years11.90 years
7%10.3 years10.24 years
8%9 years9.01 years
10%7.2 years7.27 years
12%6 years6.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:

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

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.

⚠️

For educational purposes only. This article is for educational purposes only and does not constitute financial advice. Interest calculations shown are based on standard formulas and simplified assumptions. Actual returns depend on fees, taxes, inflation, and market conditions. Consult a qualified financial advisor before making investment or borrowing decisions.

Related Articles