The Compound Interest Formula, Explained Step by Step
The Compound Interest Formula
Behind every compound interest calculation sits one compact formula: A = P(1 + r/n)^(nt). It looks intimidating at first glance, but each symbol stands for a plain-English idea you already understand. Once you know what the letters mean, you can work out exactly how much any deposit will grow to, or use the free compound interest calculator on calcunova.online to do the arithmetic for you in seconds.
What Each Variable Means
- A: the future value. The total amount you will have when the time is up, including your original deposit and all the interest earned.
- P: the principal. The amount you start with, your initial deposit or investment.
- r: the annual interest rate, written as a decimal. A 7% rate becomes 0.07; a 4.5% rate becomes 0.045.
- n: the number of times interest compounds per year. Use 1 for annually, 4 for quarterly, 12 for monthly, and 365 for daily.
- t: the number of years the money stays invested.
The exponent, n x t, is simply the total number of compounding periods. The expression inside the parentheses, 1 + r/n, is the growth factor for a single period.
Worked Example 1: $10,000 at 7%, Compounded Annually for 10 Years
Let us plug real numbers into the formula. You invest $10,000 at a 7% annual rate, compounded once per year, for 10 years:
- Identify the variables: P = 10,000, r = 0.07, n = 1, t = 10.
- Compute the per-period rate: r/n = 0.07/1 = 0.07, so the growth factor is 1 + 0.07 = 1.07.
- Compute the number of periods: n x t = 1 x 10 = 10.
- Raise and multiply: A = 10,000 x 1.07^10. Since 1.07^10 is about 1.96715, the final balance is about $19,671.51.
You earned $9,671.51 in interest, nearly as much as your original deposit, without adding another dollar.
Worked Example 2: The Same Investment, Compounded Monthly
Now change only the compounding frequency to monthly (n = 12). Everything else stays the same:
- Per-period rate: 0.07/12 is about 0.0058333, so each month your balance is multiplied by about 1.0058333.
- Number of periods: 12 x 10 = 120 months.
- A = 10,000 x 1.0058333^120, which is about 10,000 x 2.00966, or $20,096.61.
Monthly compounding earns you about $425 more than annual compounding: $10,096.61 in interest instead of $9,671.51. Same rate, same time, same deposit. The only difference is how often interest joins the balance.
Worked Example 3: Adding $200 Every Month
Real savers rarely make a single deposit and stop. Suppose that on top of your initial $10,000, you contribute $200 at the end of every month for the full 10 years at the same 7% rate. The original $10,000 still grows to $20,096.61. The monthly contributions form their own growing stream: each $200 deposit compounds for however many months remain. Using the future-value-of-annuity calculation, those 120 deposits of $200 grow to about $34,617. Add the two parts together and your final balance is roughly $54,714. You contributed $34,000 in total ($10,000 plus $24,000), so compounding and time turned $20,714 of pure growth out of money you set aside month by month. This is the pattern behind most retirement accounts: a starting balance plus steady contributions, all compounding together.
Common Mistakes to Avoid
- Forgetting to convert the rate to a decimal: 7% must enter the formula as 0.07, not 7.
- Mixing up the time units: if n is monthly (12), then t must be in years and contributions must be monthly too. Keep every input in matching units.
- Using the nominal rate where the effective rate belongs: a "7% compounded monthly" account actually yields slightly more than 7% per year. Our article on compounding frequency explains why.
- Ignoring contributions, taxes, and fees: the basic formula covers a single lump sum. For monthly deposits, use a calculator that supports contributions.
What does the 'n' in the compound interest formula stand for?
It is the number of compounding periods per year: 1 for annually, 4 for quarterly, 12 for monthly, 365 for daily. It appears twice in the formula: once to shrink the annual rate into a per-period rate (r/n), and once in the exponent to count the total number of periods (n x t).
How do I convert a percentage to use in the formula?
Divide by 100. A 7% annual rate becomes 0.07, and 4.5% becomes 0.045. Forgetting this step is the single most common error: using 7 instead of 0.07 will produce an absurdly large answer.
Does the formula include monthly contributions?
The basic A = P(1+r/n)^(nt) formula covers a single lump sum only. To include regular deposits you need the future-value-of-annuity formula added on top, which is exactly what a compound interest calculator with a contributions field handles for you.
Why is my result slightly different from my bank's?
Banks may compound daily, round interest at each step, or quote an APY (annual percentage yield) rather than the nominal rate. Small differences in timing and rounding explain most discrepancies of a few dollars.
Try it with your own numbers
Run this article's ideas through our free compound interest calculator with charts, inflation and shareable scenarios.
Open the calculator