If you have ever stared at the expression A = P(1 + r/n)nt and wondered what those letters actually do, you are in the right place. The compound interest formula is one of the most useful pieces of math in personal finance, and the good news is that it is far friendlier than it looks. Once you understand what each symbol stands for, you can predict how a savings account, an index fund, or even a credit card balance will grow over time.

In this guide we will break the equation down piece by piece, walk through three fully worked examples with real numbers, and show you exactly how to plug your own figures into the formula or into a calculator. No advanced math required, just multiplication and one exponent.

What the compound interest formula actually means

The standard compound interest equation is:

A = P(1 + r/n)nt

Here is what each letter represents:

  • A = the final amount (your principal plus all the interest earned)
  • P = the principal, or the starting amount you deposit or borrow
  • r = the annual interest rate, written as a decimal (5% becomes 0.05)
  • n = the number of times interest is compounded per year
  • t = the time the money is invested or borrowed, in years

The magic of compounding lives inside that exponent. Because interest gets added to your balance and then earns interest of its own, the growth is not a straight line. It curves upward and accelerates the longer you leave it alone. If you want the bigger-picture story behind why that happens, our explainer on how compound interest works is a good companion read.

Why each part matters

The rate must be a decimal

The single most common mistake people make is forgetting to convert the percentage. A 6% rate is 0.06 in the formula, not 6. Divide any percentage by 100 before you plug it in.

The n controls how often interest is added

The value of n depends on the compounding schedule:

  • Annually: n = 1
  • Quarterly: n = 4
  • Monthly: n = 12
  • Daily: n = 365

More frequent compounding produces slightly more growth, though the difference is smaller than most people expect. We cover that nuance in detail in daily vs. monthly vs. annual compounding.

Time is the heavy lifter

Because t sits in the exponent alongside n, adding years has a far bigger effect than adding dollars. That is the whole reason starting early beats investing more later.

Worked example 1: a simple savings deposit

Suppose you deposit $10,000 into an account paying 5% annual interest, compounded monthly, and leave it for 10 years. Let us identify the inputs first:

  • P = 10000
  • r = 0.05
  • n = 12
  • t = 10

Now work through the formula one step at a time:

  1. Divide the rate by n: 0.05 / 12 = 0.0041667
  2. Add 1: 1 + 0.0041667 = 1.0041667
  3. Multiply n by t for the exponent: 12 x 10 = 120
  4. Raise to that power: 1.0041667120 = 1.6470
  5. Multiply by the principal: 10000 x 1.6470 = $16,470

So your $10,000 grows to about $16,470, meaning you earned roughly $6,470 in interest without lifting a finger. That step 4 exponent is the only part you genuinely need a calculator for, since raising a number to the 120th power by hand is not practical.

Worked example 2: comparing compounding frequencies

Let us keep the same $10,000 at 5% for 10 years, but change only how often interest compounds. This shows the real-world impact of n, holding everything else constant.

CompoundingnFinal amount (A)Interest earned
Annually1$16,289$6,289
Quarterly4$16,436$6,436
Monthly12$16,470$6,470
Daily365$16,487$6,487

Notice the pattern: more frequent compounding does help, but the gains shrink quickly. Moving from annual to monthly adds about $181 over a decade, while moving from monthly to daily adds only about $17. This is also why the advertised rate and the rate you actually earn can differ slightly, a distinction explained in APR vs. APY.

Worked example 3: adding regular monthly contributions

The basic formula assumes a single lump sum. In real life, most people add money every month. For that you need an extended version that includes a contributions term:

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

Here PMT is your regular contribution per period. Say you start with $5,000, add $300 every month, earn 7% compounded monthly, for 20 years:

  • The starting $5,000 grows to about $20,150
  • The stream of $300 monthly deposits grows to about $156,200
  • Combined, you end up with roughly $176,350

You contributed $5,000 plus $72,000 in deposits ($77,000 total), yet ended with over $176,000. The extra ~$99,000 is pure compounding at work. If you would rather not do this by hand, our free compound interest calculator handles contributions automatically.

How to calculate compound interest without the headache

If you only want the interest portion rather than the total, just subtract the principal at the end:

Compound interest = A − P

And if you ever need a fast mental estimate of how long money takes to double, skip the full formula entirely and use the Rule of 72: divide 72 by the interest rate. At 6%, money doubles in about 12 years.

A quick checklist before you calculate

  1. Convert the rate to a decimal (divide the percent by 100).
  2. Set n to match the compounding schedule.
  3. Express time in years, even if it is a fraction like 0.5 for six months.
  4. Use the same units throughout, and double-check the exponent is n × t.

How this differs from simple interest

It is worth remembering that this formula only applies to compound interest, where interest earns interest. With simple interest, you would use A = P(1 + rt) instead, and the growth is a flat line. Over short periods the two are nearly identical, but over decades the gap becomes enormous. See our side-by-side breakdown of simple vs. compound interest if you want to see exactly how far apart they drift.

Key takeaways

  • The compound interest formula is A = P(1 + r/n)nt, where A is the final amount, P the principal, r the decimal rate, n the compounding frequency, and t the years.
  • Always convert your interest rate to a decimal before plugging it in.
  • The exponent nt is where the curve comes from, so time matters more than most people realize.
  • More frequent compounding helps, but with steeply diminishing returns.
  • For regular deposits, add the contributions term, or let a calculator do it for you.

Master this one equation and you can sanity-check any savings account, loan offer, or investment projection you come across. The numbers stop being mysterious, and you start seeing exactly where your money is headed.