How to Calculate Compound Interest in Excel

Excel and Google Sheets can calculate compound interest with a plain formula or with the FV function. Here are the exact formulas, with a result you can check against our calculator.

The plain formula

In a cell, type =A1*(1+B1/C1)^(C1*D1). Put the principal in A1, the annual rate (as 0.05 for 5%) in B1, the compounding periods per year in C1 and the years in D1.

With 10,000, 0.05, 12 and 10, the result is $16,470.09. That matches the standard formula A = P(1 + r/n)^(nt).

Try the free tool: no signup, runs in your browser.

Open the Compound Interest Calculator →

Using the FV function

FV does the same job and also handles regular deposits. The syntax is =FV(rate, nper, pmt, pv, type). Rate is the rate per period, nper is the number of periods, pmt is the payment per period, pv is the present value.

For a lump sum: =FV(0.05/12, 120, 0, -10000) gives $16,470.09. Use a negative present value so the result is positive.

Adding monthly deposits

To add $200 a month, use =FV(0.05/12, 120, -200, -10000). The result is $47,526.55.

Of that, $34,000 is money you put in and the rest is interest.

A year-by-year table

Build a table with columns for year, opening balance, interest and closing balance. In the first row, opening balance is the principal. Interest is the opening balance times the rate. Closing balance is the sum.

Copy the formulas down. Each year's opening balance equals the previous closing balance. The table makes growth visible and lets you test what changes when you alter the rate.

Finding the rate or time

Use RATE to find the rate that turns a present value into a future value: =RATE(nper, 0, -pv, fv). Use NPER to find how many periods it takes: =NPER(rate, 0, -pv, fv).

These are useful for questions like how long it takes to double your money.

Common mistakes

Worked example with a table

To see the growth year by year, set up rows for years 1 to 5 with principal 10,000 and 5% compounded annually. Year 1 closing is 10,500. Year 2 is $11,025. Year 3 is $11,576. Year 4 is $12,155. Year 5 is $12,763.

Each year's interest is larger than the one before, even though the rate is the same. That growth in the interest column is compounding at work.

Add a column for the cumulative interest, which is the closing balance minus the original principal.

Checking against the calculator

Type the same inputs into our compound interest calculator. The final amount should match your sheet to the cent. If it does not, the usual cause is a rate typed as 5 rather than 0.05, or a mix of years and months.

Matching the two gives you confidence that your own spreadsheet is right and can be reused for other cases.

Making the sheet reusable

Put the inputs at the top in labelled cells and refer to them in formulas, instead of typing numbers into the formulas. Then you can change the rate or term and see the result update. Format the rate cell as a percentage so you cannot mix up 5 and 0.05, and lock the formula cells if others will use the sheet.

Frequently asked questions

What is the Excel formula for compound interest?

=P*(1+r/n)^(n*t), or the FV function: =FV(rate/n, n*t, 0, -P).

How do I add regular deposits?

Use the pmt argument in FV, as a negative number, for example =FV(0.05/12,120,-200,-10000).

Does Google Sheets use the same formulas?

Yes. FV, RATE and NPER work the same way.

Can I use the same formula for a loan?

Yes, for growth of a balance with no payments. For a loan with regular payments, use PMT for the payment and a schedule table for the balance.

Why does my result differ from the calculator by a few cents?

Rounding. Spreadsheets keep full precision, while a table that rounds each year will drift slightly. Compare the unrounded values.

Can I make a chart of the growth?

Yes. Select the year and closing balance columns and insert a line chart. The upward curve is compounding made visible.

Sources

General information only, not financial advice. Results are estimates; confirm real figures with your lender or a qualified adviser.

More free tools

Related guides