The Compound Interest Formula: A Step-by-Step Guide With Worked Examples

The compound interest formula is the single most useful equation in personal finance. It tells you what a sum of money will grow to when the interest it earns starts earning interest of its own. Once you understand it, savings accounts, CDs, and investment projections all start to make sense — because they all run on this same math.

In this guide, we’ll walk through the formula piece by piece, work through two complete examples with every step shown, cover the version used when you contribute money each month, and flag the mistakes that trip most people up.

The compound interest formula

Here it is:

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

Where:

SymbolNameWhat it meansExample
AFinal amountWhat your money grows toThe answer you’re solving for
PPrincipalThe starting amount you invest$10,000
rAnnual interest rateThe yearly rate, written as a decimal6% becomes 0.06
nCompounding frequencyHow many times per year interest is added12 for monthly, 4 for quarterly
tTimeHow many years the money is invested10

Read the formula in plain English: take your starting amount, multiply it by one plus the interest rate divided by the number of compounding periods, then raise that to the power of the total number of periods.

The magic sits in that exponent. Because the growth factor is raised to a power, the result curves upward over time — the longer the money sits, the faster each additional year adds. That’s compounding in a nutshell.

Worked example 1: $10,000 at 6%, compounded monthly, for 10 years

Let’s put $10,000 to work at a 6% annual rate, compounded monthly, for 10 years. Here’s every step.

Step 1: Convert the rate to a decimal.
6% = 0.06. So r = 0.06.

Step 2: Identify n and t.
Monthly compounding means n = 12. The time horizon is t = 10 years.

Step 3: Compute the per-period rate, r/n.
0.06 ÷ 12 = 0.005. Each month, the balance grows by half of one percent.

Step 4: Compute the total number of periods, nt.
12 × 10 = 120. Interest is added 120 times.

Step 5: Raise the growth factor to the power.
(1.005)^120 = 1.819397. This is the number that does all the heavy lifting — it says each dollar becomes about $1.82.

Step 6: Multiply by the principal.
$10,000 × 1.819397 = $18,193.97.

So the final amount A = $18,193.97. Of that, $8,193.97 is interest earned — nearly doubling the original $10,000 without adding another cent.

Notice something important: a 6% rate over 10 years didn’t produce 60% growth. It produced about 82% growth ($8,193.97 ÷ $10,000). That extra comes from interest earning interest, and it’s exactly what the formula captures.

Year-by-year growth for Example 1

Watching the balance evolve year by year makes the acceleration visible — the dollar gains get bigger every single year, even though the rate never changes:

YearBalanceInterest earned that year
0$10,000.00—
1$10,616.78$616.78
2$11,271.60$654.82
3$11,966.81$695.21
4$12,704.89$738.08
5$13,488.50$783.61
6$14,320.44$831.94
7$15,203.70$883.26
8$16,141.43$937.73
9$17,136.99$995.56
10$18,193.97$1,056.98

Year 1 earned $616.78 of interest; Year 10 earned $1,056.98 — over 70% more — from the same 6% rate. That widening gap is compounding made visible, and it’s why starting early beats starting big.

If you’d rather skip the hand math, our free compound interest calculator runs this same formula instantly — and adds a growth chart, a year-by-year table, and a downloadable PDF report.

Worked example 2: $5,000 at 8%, compounded quarterly, for 5 years

Let’s change the frequency to see how n works. This time: $5,000 at 8% per year, compounded quarterly, for 5 years.

Step 1: r = 8% = 0.08.

Step 2: Quarterly compounding means n = 4. Time t = 5 years.

Step 3: Per-period rate: 0.08 ÷ 4 = 0.02 (2% per quarter).

Step 4: Total periods: 4 × 5 = 20.

Step 5: (1.02)^20 = 1.485947.

Step 6: $5,000 × 1.485947 = $7,429.74.

The interest earned is $2,429.74. Compare this with simple interest (no compounding): $5,000 × 0.08 × 5 = $2,000.00 of interest, for a total of $7,000. Compounding added an extra $429.74 — about 21% more interest — simply because each quarter’s interest started earning its own interest.

To build intuition for how much frequency itself matters, see our guide to compounding frequency.

The formula when you add money every month

The basic formula assumes a single lump sum. But most people invest gradually — a little each month. For that, you need the future value of an annuity:

FV = PMT × [((1 + r/n)^(nt) − 1) / (r/n)]

PMT is the amount you contribute each period. The rest of the variables work the same way.

Worked example: You contribute $200 at the end of every month into an account earning 6% per year, compounded monthly, for 10 years.

Step 1: PMT = $200, r = 0.06, n = 12, t = 10.

Step 2: Per-period rate: 0.06 ÷ 12 = 0.005. Total periods: 12 × 10 = 120.

Step 3: Compute (1.005)^120 = 1.819397 (same growth factor as Example 1 — no coincidence; the rate and periods match).

Step 4: Subtract 1: 1.819397 − 1 = 0.819397.

Step 5: Divide by the per-period rate: 0.819397 ÷ 0.005 = 163.8794. This figure is sometimes called the annuity factor — it converts your monthly payment into its future value.

Step 6: Multiply by PMT: $200 × 163.8794 = $32,775.87.

You contributed $24,000 out of pocket ($200 × 120 months), and compounding turned it into $32,775.87. The $8,775.87 difference is interest — earned not just on your money, but on earlier months’ interest too. For a deeper look at this scenario, see our guide to compound interest with monthly contributions.

If you want to combine a starting lump sum and monthly contributions, just add the two results together: run the basic formula on the lump sum, run the annuity formula on the contributions, and add them. For instance, $10,000 starting plus $200/month at 6% for 10 years gives $18,193.97 + $32,775.87 = $50,969.84.

Common mistakes to avoid

1. Forgetting to convert the percent to a decimal.
This is the number-one error. A 6% rate goes into the formula as 0.06, not 6. If you type 6, the formula thinks you mean 600% per year, and your answer will be absurdly large. Always divide the percentage by 100 first.

2. Using the wrong n.
Match n to how often interest is actually added: 1 for annually, 2 for semiannually, 4 for quarterly, 12 for monthly, 365 for daily. Using n = 1 when your account compounds monthly understates the result. For our Example 1, annual compounding would give $10,000 × (1.06)^10 = $17,908.48 — about $285 less than the correct monthly figure of $18,193.97.

3. Mixing up contribution frequency and compounding frequency.
In the annuity formula, n is how often interest compounds, and PMT must match that same period. If interest compounds monthly but you contribute quarterly, you can’t plug the quarterly amount straight in — convert it to a monthly equivalent first.

4. Rounding too early.
Carry at least 4–6 decimal places through the middle steps and round only the final dollar figure to cents. Rounding (1.005)^120 to 1.82 early, for example, would shift your answer by a few dollars.

5. Treating the answer as a promise.
The formula is exact math applied to an assumed rate. Real returns bounce around, fees bite, and inflation erodes purchasing power. Treat every result as an estimate for illustration — which is exactly how our compound interest calculator labels its outputs.

Frequently asked questions

What is the compound interest formula?
The compound interest formula is A = P(1 + r/n)^(nt), where A is the final amount, P is the starting principal, r is the annual rate as a decimal, n is the number of compounding periods per year, and t is the number of years. It calculates how money grows when earned interest is reinvested.

How do you calculate compound interest step by step?
Convert the rate to a decimal, divide it by the compounding frequency to get the per-period rate, multiply frequency by years for the total periods, raise the growth factor to that power, and multiply by the principal. Our worked examples above show each step with real numbers.

What is the formula for compound interest with monthly contributions?
Use the future value of an annuity: FV = PMT × [((1 + r/n)^(nt) − 1) / (r/n)], where PMT is the monthly contribution. Add the result to the lump-sum formula’s result if you also start with an initial deposit.

What does “n” mean in the compound interest formula?
The letter n is the compounding frequency — how many times per year interest is calculated and added to the balance. Common values are 1 (annually), 4 (quarterly), 12 (monthly), and 365 (daily). A higher n means slightly faster growth, all else equal.

Why is the rate written as a decimal instead of a percent?
The formula needs the rate in the same units as the “1 +” it’s added to, and 1 represents 100%. So 6% becomes 0.06. Forgetting this conversion is the most common mistake and produces wildly wrong answers.

These examples are illustrations only and do not predict actual returns. Real investments can gain or lose value, and results do not account for taxes, fees, or inflation.

Similar Posts

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *