Compound Interest Formula Explained
The compound interest formula has four variables and one exponent. Once you can name each part, you can work out any savings question by hand or in a spreadsheet.
The formula and its parts
A = P(1 + r/n)nt. A is the final amount, P is the principal, r is the annual interest rate written as a decimal, n is how many times a year interest is added, and t is the number of years.
If interest is added once a year, n = 1 and the formula simplifies to A = P(1 + r)t. That is the version most people use for quick estimates.
Put your own numbers into the calculator.
Open the Compound Interest Calculator →A worked example
$10,000 at 4.5% for 8 years, compounded monthly. P = 10,000, r = 0.045, n = 12, t = 8. The monthly rate is 0.045/12 = 0.00375, and the number of periods is 96.
1.00375 raised to the power of 96 is about 1.432365. Multiply by 10,000 and the balance is $14,323.65. Interest earned is $4,323.65.
Adding regular deposits
For monthly deposits, use the future value of an annuity formula and add it to the lump sum: A = P(1+i)N + D((1+i)N − 1)/i, where i is the monthly rate, N is the number of months and D is the deposit.
$10,000 at 4.5% monthly for 8 years, plus $200 a month, gives $37,383.09. The deposits add $19,200 of contributions and the growth on them does the rest.
Doing it in a spreadsheet
In Excel or Google Sheets, put the rate per period in one cell, the number of periods in another, and write =P*(1+i)^N. For deposits, =FV(i, N, -D, -P). Keep the signs consistent or the result comes out negative.
The advantage of a spreadsheet is that you can change one input and watch the whole projection move, which is hard to do with a calculator.
Common mistakes
- Using the annual rate in place of the monthly rate.
- Forgetting to multiply the years by the compounding frequency.
- Mixing percentages and decimals. 4.5% is 0.045, not 4.5.
- Assuming the quoted rate is what you get. Fees and taxes come out of the balance.
- Using APR when the account quotes APY, or the reverse.
What the formula cannot tell you
It assumes a constant rate for the whole period. Real returns vary, and a single average rate hides the bad years. It also ignores inflation, tax on interest and any fees, all of which reduce what the balance actually buys.
For planning, run the formula at a lower rate than you hope for. If the plan still works, it is more likely to survive contact with reality.
Rearranging it to answer other questions
The same formula answers three more questions once you solve for a different variable. To find the starting amount needed for a target, divide the target by (1 + r/n)^(nt). To find the rate, take the nth root of the ratio and multiply back. To find the time, use logarithms: t = ln(A/P) / (n ln(1 + r/n)).
That last one is the doubling-time question in disguise, and it is why the rule of 72 works: for small r, ln(1 + r) is close to r, and ln 2 divided by r gives roughly 0.693/r, which is near 72/(100r) in percentage terms.
A sanity check for any projection
Take the ending balance a projection shows, divide by the starting balance, and take the root for the number of years. If the implied rate is far above what the asset has historically returned, the projection is optimistic regardless of how detailed it looks.
Do the same in reverse for a target: divide the target by the start, take the root, and see what rate the goal requires. That single number tells you whether the plan needs a different savings amount, a longer horizon or a different asset.
Frequently asked questions
What is the difference between compound and simple interest formulas?
Simple interest is P x r x t added to P. Compound interest applies the rate to the growing balance, which is what the exponent does.
Can I use the formula for a loan?
The growth formula describes a balance that is left alone. A loan also has payments, so use the amortization formula instead.
Why does my bank balance differ from my calculation?
Interest may be calculated daily but paid monthly, and the balance may change during the month.
Sources
General information only, not financial advice. Results are estimates; confirm real figures with your lender or a qualified adviser.