Compound Interest Guide

Compound Interest Formula Explained

Ask most people why their savings seem to grow faster every year, and they will eventually point at a small equation: A = P(1 + r/n)^(nt). It is the workhorse behind every compound interest calculator on the internet, and it is also the formula that decides how much money you earn, month after month, year after year. This article takes the formula apart variable by variable, works through a real example by hand, and explains why the number you see on screen is the same number you would get on paper.

This article is for educational purposes only. It does not provide financial, investment, tax, or legal advice. Read the full Financial Disclaimer.

The formula, one variable at a time

At first glance, A = P(1 + r/n)^(nt) looks like algebra homework, but it is really just a recipe with five ingredients. Every compound interest calculator needs those same five numbers before it can produce a single result. If you understand what each letter means, the formula stops being mysterious and becomes something you can check yourself.

The five variables behind every compound interest calculation

Each letter in A = P(1 + r/n)^(nt) maps to one input you already know from real life.

Variable Stands for In our example What it does
A Final amount after the time period $8,235.05 The answer: principal plus all accumulated interest.
P Principal (starting balance) $5,000 The money you deposit first; every bit of growth builds on it.
r Annual interest rate, written as a decimal 0.05 The advertised yearly rate; 5% becomes 0.05 before any math happens.
n Compounding periods per year 12 How often interest is added to the balance, e.g. monthly, quarterly, daily.
t Time in years 10 How long the money is left alone to compound.

Two pieces of the formula deserve a closer look because they are the heart of compounding. The term r/n is the periodic rate: the share of the annual rate earned during a single compounding period. If a bank compounds monthly, that is the annual rate divided by 12. The exponent nt is the total number of compounding periods: twelve months per year times ten years gives 120 separate interest events. The balance is recalculated 120 times, each time on a slightly larger base than the time before.

Working the formula by hand

Numbers are easier to trust when you have produced them yourself once. Let us use the example from the table above: $5,000 deposited at 5% annual interest, compounded monthly, left alone for 10 years. Grab a calculator and follow along, because each step is just arithmetic.

Step 1 — convert the rate. Percentages are not directly usable in the formula. The 5% annual rate becomes 0.05.

Step 2 — find the periodic rate. Monthly compounding means n = 12, so r/n = 0.05 ÷ 12 = 0.0041667. This is the interest earned in a single month.

Step 3 — count the periods. Ten years, twelve periods per year: nt = 12 × 10 = 120 monthly interest events.

Step 4 — grow the base by the periodic rate, 120 times. That is the meaning of the exponent: (1 + 0.0041667)^120 ≈ 1.64701. In other words, after 120 months of compounding, every dollar of principal has become roughly $1.647.

Step 5 — multiply by the principal. A = 5,000 × 1.64701 ≈ $8,235.05. Of that total, $3,235.05 is interest earned and the original $5,000 is still your money.

To see compounding doing its job, track the balance at a few early checkpoints. The month-by-month numbers reveal that the interest itself grows over time, which is exactly what distinguishes compounding from simple interest.

Milestone balances on $5,000 at 5% compounded monthly

The interest earned in each interval gets slightly larger because it is calculated on a growing balance.

Checkpoint Balance Interest earned in that period Cumulative interest
Start $5,000.00 $0.00
Month 1 $5,020.83 $20.83 $20.83
Month 6 $5,126.31 $21.28 $126.31
Year 1 $5,255.81 $21.87 $255.81
Year 5 $6,416.79 $26.67 $1,416.79
Year 10 $8,235.05 $34.14 $3,235.05

Notice the monthly interest at year 10 ($34.14) is noticeably higher than at month 1 ($20.83), even though the rate never changed. The base just got bigger. That quiet acceleration is the entire story of compounding.

What each variable does to the end result

Once the formula is familiar, it helps to know which lever moves the final number the most.

P (principal) is linear: double the starting deposit and the final amount doubles too, assuming everything else stays the same. It is also the variable you control most directly — a larger first deposit costs nothing in extra risk.

r (rate) works with compound power. A difference of one percentage point barely matters in the first year, but on a ten-year horizon it can mean hundreds or thousands of dollars, because a higher rate compounds on itself. Banks quote the annual rate here, but the effective yearly gain also depends on n.

n (frequency) is the least dramatic lever. Moving from annual to monthly compounding adds a little, and moving from monthly to daily adds a little more, but each jump contributes less than the last. The compounding frequency guide shows the full table.

t (time) sits in the exponent, which makes it the most powerful input of all. Ten years of compounding produces far more than twice the result of five years, because the exponent grows linearly while the balance grows exponentially. If you are deciding whether to start saving now or in a year, the formula is essentially begging you to start now.

Continuous compounding in one breath

Mathematicians have also asked: what happens if n keeps growing without limit, so interest is credited at every instant? Shrinking the compounding interval toward infinity produces the continuous compounding formula, A = Pe^(rt), where e is the constant 2.71828 and the little ^(rt) notation just means "raised to the power of the rate times the time." For our $5,000 example, continuous compounding gives about $8,243.61, only $8.56 more than monthly compounding. You will rarely meet it in everyday banking — it is a theoretical ceiling rather than a practical product — but it explains why chasing ever-finer compounding intervals eventually stops paying off.

Why the formula and the calculator agree

The calculator on this site implements exactly this formula under the hood. Enter $5,000 as the starting amount, 5% as the rate, choose monthly compounding, and set 10 years: the projection should land at $8,235.05. The only differences you might see are rounding conventions — the calculator may display the monthly balance rounded to the nearest cent while the raw formula keeps more decimals in between. That is normal, and the gap never amounts to more than a few cents.

That agreement is worth testing deliberately. Run the same inputs through the calculator, then through a spreadsheet using the formula, and you should get matching numbers. If they ever disagree by a meaningful amount, the usual culprits are a rate entered as a percentage instead of a decimal, a compounding frequency mismatch, or contributions being added where the calculation assumed none. If your situation includes regular deposits, the pure formula above no longer applies directly — the monthly contributions guide explains how the math changes.

Questions people ask about the formula

Can I use the formula for less than a full year, like 9 months?

Yes. Time t is just a number of years, so 9 months becomes 0.75. With $5,000 at 5% compounded monthly for 9 months, you would compute nt = 12 × 0.75 = 9 periods and get A ≈ $5,190.75.

What if the calculator lets me add a monthly deposit?

Then the output combines the lump-sum formula with a series of future deposits, and the math is done in two parts. The tool handles both pieces for you, but it is worth knowing that regular contributions can outweigh the interest rate itself in the first several years.

Does the formula assume I never touch the money?

Effectively, yes. Withdrawals break the chain because the balance drops and later interest is computed on a smaller base. Leaving the money alone is what lets the exponent do its job.

Key takeaways

If you remember nothing else, keep these four points:

1. The formula is five inputs doing one job: growing a starting balance by a periodic rate, repeated across many periods.

2. Time is the most powerful variable because it lives in the exponent.

3. The rate must be converted to a decimal and divided by the compounding frequency before it can be used.

4. Any compound interest calculator worth using is just this formula with nice formatting; the numbers should always match a hand calculation.