SimpleToolbox
Personal Finance

Compound Interest Formula Explained with Examples

The compound interest formula broken down with real examples for savings, investments, and loans. See how compounding frequency changes your returns.

9 min read by The Simple Toolbox Team

Compound Interest Formula Explained with Examples

Target keyword: compound interest formula


TL;DR

The compound interest formula is A = P(1 + r/n)^(nt), where P is your starting amount, r is the annual interest rate, n is how many times interest compounds per year, and t is the number of years. Unlike simple interest, compound interest earns interest on your previously earned interest — which is why even small amounts grow dramatically over long time horizons.


What Is Compound Interest?

Compound interest is the process of earning interest on both your original deposit and on the interest that has already accumulated. It is the single most important concept in personal finance because it explains how savings accounts grow, how investments multiply, and why debt spirals when left unchecked.

With simple interest, you earn a fixed amount each period based only on the principal. With compound interest, each period’s interest calculation includes the interest from all previous periods. This creates exponential growth rather than linear growth — and over decades, the difference is staggering.

Albert Einstein reportedly called compound interest the eighth wonder of the world. Whether or not he actually said it, the math backs up the sentiment. A $10,000 investment earning 8% annually grows to $21,589 after 10 years with compounding, compared to just $18,000 with simple interest. After 30 years, the gap widens to $100,627 versus $34,000.


The Compound Interest Formula

The standard compound interest formula is:

A = P(1 + r/n)^(nt)

VariableMeaningExample
AThe final amount (principal + all accumulated interest)What you want to solve for
PPrincipal — the initial amount of money$10,000
rAnnual interest rate (as a decimal)8% = 0.08
nNumber of times interest compounds per year12 (monthly), 4 (quarterly), 1 (annually)
tNumber of years the money is invested or borrowed10 years

To find just the interest earned, subtract the principal from the final amount:

Interest = A - P

This formula works for any scenario involving compounding — savings accounts, CDs, bonds, index funds, student loans, and credit card debt. The only thing that changes is which variable you plug in.


How Compounding Frequency Affects Growth

The variable n in the formula controls how often interest is calculated and added to the balance. More frequent compounding means interest starts earning its own interest sooner, which increases the total return.

Here is a comparison using a $10,000 principal at 8% annual interest over 10 years:

Compounding Frequencyn ValueFinal AmountTotal Interest Earned
Annually1$21,589.25$11,589.25
Semi-annually2$21,911.23$11,911.23
Quarterly4$22,080.40$12,080.40
Monthly12$22,196.40$12,196.40
Daily365$22,253.46$12,253.46

The jump from annual to monthly compounding adds about $607 in extra interest over a decade. Going from monthly to daily adds another $57. The gains from increasing frequency shrink as you compound more often, but they never disappear entirely.

Most savings accounts compound daily. Most bonds compound semi-annually. Most student loans compound daily. Knowing the compounding frequency helps you accurately project what you will owe or earn.


Worked Examples

Example 1: Savings Account

You deposit $5,000 into a high-yield savings account that pays 4.5% APY, compounded daily. You plan to leave it untouched for 3 years.

  • P = $5,000
  • r = 0.045
  • n = 365
  • t = 3

A = 5000 × (1 + 0.045/365)^(365 × 3) A = 5000 × (1.00012329)^(1095) A = 5000 × 1.14410 A = $5,720.50

You earn $720.50 in interest over three years without doing anything after the initial deposit. Every day, the bank calculates interest on the full balance — including yesterday’s interest — and adds it to your account.

Example 2: Retirement Investment

You invest $15,000 in an index fund with an average annual return of 10%, compounded annually. You hold it for 25 years.

  • P = $15,000
  • r = 0.10
  • n = 1
  • t = 25

A = 15000 × (1 + 0.10/1)^(1 × 25) A = 15000 × (1.10)^25 A = 15000 × 10.8347 A = $162,520.50

Your $15,000 grows to over $162,000. The total interest earned is $147,520.50 — nearly ten times your original investment. This is the effect of compounding over long periods. The first few years produce modest gains, but the later years generate enormous returns because the base keeps growing.

Example 3: Credit Card Debt

You owe $8,000 on a credit card with a 22% APR, compounded daily. If you make no payments for 2 years, how much will you owe?

  • P = $8,000
  • r = 0.22
  • n = 365
  • t = 2

A = 8000 × (1 + 0.22/365)^(365 × 2) A = 8000 × (1.000603)^(730) A = 8000 × 1.55268 A = $12,421.44

Without any payments, the balance grows by $4,421.44 in just two years. This example shows why compound interest works against you when you are the borrower. The same math that builds wealth in a savings account destroys it in unpaid debt.

Example 4: Monthly Contributions

The basic formula assumes a single lump-sum deposit. In reality, most people add money regularly. The formula for compound interest with regular contributions is:

A = P(1 + r/n)^(nt) + PMT × [((1 + r/n)^(nt) - 1) / (r/n)]

Where PMT is the regular contribution amount.

You start with $2,000 and add $200 per month to an account earning 7% annually, compounded monthly, for 20 years.

  • P = $2,000
  • PMT = $200
  • r = 0.07
  • n = 12
  • t = 20

Lump sum portion: 2000 × (1 + 0.07/12)^(240) = 2000 × 4.0387 = $8,077.40 Contribution portion: 200 × [((1.005833)^240 - 1) / 0.005833] = 200 × 520.93 = $104,186.00 Total A = $112,263.40

You contributed $2,000 + ($200 × 240 months) = $50,000 out of pocket. The account holds $112,263. Compounding generated over $62,000 in interest — more than your total contributions.


Compound Interest vs Simple Interest

Simple interest uses the formula I = P × r × t and only calculates interest on the original principal. Here is a side-by-side comparison:

FeatureSimple InterestCompound Interest
FormulaI = P × r × tA = P(1 + r/n)^(nt)
Interest calculated onPrincipal onlyPrincipal + accumulated interest
Growth patternLinear (straight line)Exponential (curved upward)
Common usesAuto loans, some personal loansSavings accounts, credit cards, investments
Better for borrowers?Yes — you pay less total interestNo — debt grows faster
Better for savers?No — you earn lessYes — your money grows faster

If you have the choice, you want compound interest working for you (savings and investments) and simple interest working against you (loans). In practice, most financial products use compound interest.


The Rule of 72

The Rule of 72 is a mental shortcut for estimating how long it takes your money to double at a given interest rate:

Years to double = 72 / annual interest rate

Interest RateYears to Double
3%24 years
5%14.4 years
7%10.3 years
10%7.2 years
12%6 years

At 7% annual return (a conservative estimate for a diversified stock portfolio), your money doubles roughly every 10 years. Start with $10,000 at age 25, and by age 65 you would have roughly $160,000 from that single deposit — without adding another cent. This is why starting early matters more than starting big.


Common Mistakes When Calculating Compound Interest

Using the percentage directly instead of converting to a decimal. An 8% rate must be entered as 0.08, not 8. Using 8 in the formula will produce absurdly large results.

Forgetting to match compounding frequency to the rate. If your rate is annual but compounding is monthly, you must divide the rate by 12. If you use the annual rate with monthly compounding periods without dividing, your results will be wildly wrong.

Ignoring fees and taxes. The formula gives you a gross return. In real life, investment management fees (even 1%) and capital gains taxes reduce your effective return. A 10% gross return might be 8.5% after fees and taxes.

Assuming past returns continue. The stock market has historically averaged about 10% annually, but individual years range from -40% to +50%. Compound interest calculations assume a steady rate. Real returns are volatile, and the order of returns matters (sequence of returns risk).


How to Use Compound Interest to Build Wealth

Start as early as possible. Time is the most important variable in the compound interest formula. A 25-year-old who invests $5,000 per year for 10 years and then stops will have more at age 65 than a 35-year-old who invests $5,000 per year for 30 years straight — because the first investor had more time for compounding.

Increase your compounding frequency. Choose accounts that compound daily or monthly rather than annually when given the option.

Reinvest your returns. Dividends, interest payments, and capital gains should go back into the investment to maximize the compounding effect. Withdrawing returns breaks the compounding chain.

Minimize fees. A 2% annual management fee does not sound like much, but over 30 years it can consume more than 40% of your potential returns. Choose low-cost index funds with expense ratios under 0.20%.

Pay off high-interest debt first. Compound interest on debt works against you. Credit card debt at 22% grows faster than any realistic investment return. Paying off that debt is the highest guaranteed return you can get.


FAQ

Q: What is the compound interest formula? A: 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. This formula calculates how money grows when interest is earned on both the principal and previously accumulated interest.

Q: What is the difference between APR and APY? A: APR (Annual Percentage Rate) is the stated annual interest rate without accounting for compounding. APY (Annual Percentage Yield) includes the effect of compounding and reflects what you actually earn or owe over a year. A savings account with 4.5% APR compounded daily has an APY of about 4.60%. When comparing financial products, always use APY for an apples-to-apples comparison.

Q: How often does compound interest get calculated? A: It depends on the financial product. Most savings accounts and credit cards compound daily. Bonds typically compound semi-annually. Some CDs compound monthly or quarterly. The compounding frequency is always disclosed in the account terms. More frequent compounding produces slightly higher returns over the same period.

Q: Can compound interest work against you? A: Yes. When you are the borrower, compound interest increases what you owe over time. Credit card balances, student loans, and mortgages all use compound interest. If you carry a credit card balance at 20% APR, you are paying interest on your interest every single day. This is why minimum payments barely reduce the principal — most of the payment goes to the accumulated interest.

Q: Is the compound interest calculator free to use? A: Yes. Our Compound Interest Calculator is completely free, requires no account, and runs entirely in your browser. Your financial data never leaves your device. You can model different scenarios by adjusting the principal, rate, compounding frequency, time period, and monthly contributions.

Q: How much will $10,000 grow in 20 years? A: It depends on the interest rate and compounding frequency. At 5% compounded annually, $10,000 becomes $26,533. At 8%, it becomes $46,610. At 10%, it reaches $67,275. Use the Compound Interest Calculator to model your specific scenario with exact numbers.


Try It Yourself

Run the numbers with our free Compound Interest Calculator

Enter your principal, interest rate, compounding frequency, and time horizon to see exactly how your money grows. Add monthly contributions to model a realistic savings plan.


Additional Resources

References:

  1. U.S. Securities and Exchange Commission. “Compound Interest Calculator.” Investor.gov
  2. Federal Reserve Bank of St. Louis. “The Power of Compound Interest.” https://www.stlouisfed.org/education/the-power-of-compound-interest

Use the Compound Interest Calculator to run your own scenarios and see firsthand how compounding transforms your savings over time.

Try the Free Tool

Put what you learned into practice — runs in your browser, no signup needed.

Open Calculator

Found this helpful?

Share this free utility with your network.

Free Tools Alert

Join 10,000+ creators. Get our newest productivity tools, templates, and calculators directly to your inbox every month.

No spam. One-click unsubscribe.