How-to recipes · Analysis
How to calculate compound interest in Excel
Calculate how savings grow with compound interest using the formula P*(1+r/n)^(n*t) or the FV function, with regular deposits and different compounding.
Compound interest means you earn interest on your interest. A deposit of 10,000 at 5% a year earns 500 in the first year; in the second year it earns 5% on 10,500, and so on, so the balance grows faster and faster. How often the interest is added (yearly, monthly, daily) also matters. Whether you are comparing savings accounts, planning a pension contribution or checking a bank's projection, Excel answers it with a single formula.
The example data
A deposit of 10,000 in B1, an annual rate of 5% in B2, monthly compounding (12 periods per year) in B3 and a term of 10 years in B4.
The compound interest formula
The textbook formula is P × (1 + r/n)^(n × t): the principal times one plus the rate per period, raised to the number of periods. In Excel the caret ^ means to the power of:
| A | B | |
|---|---|---|
| 1 | Deposit | 10000 |
| 2 | Annual rate | 5% |
| 3 | Periods per year | 12 |
| 4 | Years | 10 |
| 5 | ||
| 6 | 16,470.09 |
Formatted with two decimals. 120 monthly periods at 5%/12 each.
Result: 16,470.09
The balance after 10 years is 16,470.09, so the interest earned is 6,470.09. With yearly compounding (B3 = 1) the result would be 16,288.95; monthly compounding adds 181.15 because interest starts earning interest sooner.
The FV function
FV (future value) gives the same result and also handles regular deposits:
=FV(B2/B3,B3*B4,0,-B1)B2/B3: the rate per period (5%/12).B3*B4: the number of periods (120).0: the regular payment per period; none here.-B1: the starting amount, negative because you pay it in. FV then returns a positive balance.
Both formulas return 16,470.09. FV works in every version of Excel; Microsoft 365 adds nothing new here, but you can calculate several scenarios at once, for example =FV(B2/B3,B3*{5,10,20},0,-B1) spills the balance after 5, 10 and 20 years.
With a monthly deposit
Saving 200 every month on top of the initial 10,000: =FV(B2/12,B4*12,-200,-B1) returns 47,526.55. The payment is negative for the same reason as the deposit. By default FV assumes payments at the end of each month; add a fifth argument of 1 for payments at the start of the month, which gives a slightly higher result.
Comparing offers: the effective annual rate
Two banks offering 5% compounded monthly and 5.1% compounded yearly are not directly comparable. EFFECT converts a nominal rate into the rate you really earn in a year: =EFFECT(5%,12) returns 5.1162% (about 5.12%). The bank with the higher effective rate pays more.
Continuous compounding
In theory interest can be added continuously. The formula uses the constant e, available as EXP: =B1*EXP(B2*B4) returns 16,487.21, only slightly more than monthly compounding. This is mostly used in finance courses and option pricing.
Working backwards
- How long to double?
=NPER(B2/12,0,-10000,20000)returns the number of months needed; divide by 12 for years (NPER). - What rate do I need?
=RATE(120,0,-10000,20000)*12gives the annual rate that doubles the money in 10 years (RATE). - How much to deposit today to reach 20,000 in 10 years:
=PV(B2/12,120,0,20000)(PV).
A year-by-year table
To show growth over time, list the years 0 to 10 in column A and put =$B$1*(1+$B$2/$B$3)^($B$3*A8) next to each year, or in Microsoft 365 =B1*(1+B2/B3)^(B3*SEQUENCE(B4)) spills the balance at the end of each year. A line chart of the result makes the accelerating curve visible (Charts: choosing the right chart, combo charts and sparklines).
Pitfalls
- Rate per period. Using the annual rate with monthly periods (
(1+B2)^(12*10)) wildly overstates growth. Divide the rate by the number of periods per year. - Percent entry. Type 5% or 0.05, not 5.
=B1*(1+5/12)^120is a very large number. - Taxes, fees and inflation are not included. Real growth is lower; to see the inflation-adjusted value divide by
(1+inflation)^years. - Rounding. Banks round interest each period to cents, so statements may differ by a few cents.