Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Compound Interest Equation in Excel: Step-by-Step

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can calculate compound interest in Excel with a single formula: =P*(1+r/n)^(n*t), where P is the principal, r is the annual rate as a decimal, n is the number of compounding periods per year, and t is the number of years. That one line gives you the future value of a lump sum. For regular deposits, use the built-in =FV() function instead. This guide walks through both, plus the common pitfalls that produce wrong answers.

What You'll Need

  • Excel for Windows, Mac, or the web version (the formulas are identical across all three).
  • Google Sheets or LibreOffice Calc also work; the functions and syntax shown here are the same.
  • Your starting principal, annual interest rate, compounding frequency, and time period in years.
  • A blank worksheet. No add-ins are required.

Step-by-Step

  1. Set up labelled input cells. In column A, type labels: A1 Principal, A2 Annual Rate, A3 Compounds per Year, A4 Years. In column B, enter your values: B1 1000, B2 0.05 (5% as a decimal), B3 12 (monthly), B4 10. Keeping inputs separate from the formula makes it easy to change one variable without rewriting anything.
  2. Format the rate cell as a percentage (optional but recommended). Select B2, then use the number format dropdown on the Home tab and choose Percentage. If you format it as a percentage, enter 5% instead of 0.05; Excel stores it as 0.05 either way. Do not enter 5 and format as percentage later without dividing by 100, or your result will be wildly wrong.
  3. Write the compound interest formula. Click an empty cell, say B6, and type:
    =B1*(1+B2/B3)^(B3*B4)
    Press Enter. With the example values, the result is about 1,647.01. This is the future value of the principal after 10 years of monthly compounding at 5%.
  4. Check the order of operations. The parentheses around 1+B2/B3 are essential. Excel evaluates division before addition, so without them you would compute 1 + (B2/B3) incorrectly in some layouts. The caret ^ is Excel's exponent operator; do not use ** as you would in some programming languages.
  5. Calculate total interest earned. In B7, type =B6-B1. This subtracts the original principal from the future value, leaving only the interest. In the example, that is about 647.01.
  6. Use the FV function for regular contributions. If you also deposit a fixed amount each period, the manual formula becomes unwieldy. Use =FV(rate, nper, pmt, [pv], [type]). For monthly deposits, divide the annual rate by 12 and multiply years by 12. Example: =FV(B2/B3, B3*B4, -100, -B1) assumes a 100 deposit each month and an initial 1,000 principal. The negative signs represent money leaving your pocket; Excel's sign convention treats deposits as negative and the result as positive.
  7. Build a year-by-year table (optional). In A10 and A11 enter 0 and 1, then drag the fill handle down to 10. In B10 enter =B$1*(1+B$2/B$3)^(B$3*A10) and copy down. The dollar signs lock the input cells so the formula references stay fixed as you drag. This shows how the balance grows each year and makes the compounding effect visible.
  8. Verify with a known result. A 1,000 principal at 5% compounded annually for one year should give 1,050. Set B3 to 1 and B4 to 1 and confirm B6 reads 1,050. If it does not, check that B2 is 0.05 and not 5.

Common Mistakes

  • Entering the rate as a whole number. Typing 5 instead of 0.05 (or 5%) multiplies your result by roughly 100. Always confirm the rate cell shows 5% or 0.05.
  • Forgetting to divide the rate by the compounding frequency. The formula uses r/n, not r. Monthly compounding at 5% means 0.05/12 per period, not 0.05.
  • Mismatching rate and period units. If you compound monthly, the exponent must be in months (n*t), not years. Mixing annual rates with monthly periods produces nonsense.
  • Omitting parentheses around the base. =B1*1+B2/B3^... computes something entirely different because Excel applies exponentiation before multiplication.
  • Using the wrong sign in FV. If deposits and principal are positive, FV returns a negative result. Either enter them as negatives or wrap the formula in a minus sign, but be consistent.

Tips

  • Name your input cells (Formulas > Define Name) so formulas read like =Principal*(1+Rate/Periods)^(Periods*Years). This makes errors far easier to spot.
  • Use the What-If Analysis > Goal Seek tool (Data tab) to solve for an unknown, such as the rate needed to reach a target balance.
  • Keep the annual rate in one cell and derive the periodic rate in another so you can switch between monthly, quarterly, and daily compounding without editing formulas.
  • For continuous compounding, use =B1*EXP(B2*B4), where EXP raises e to the given power.

Troubleshooting

If you see #VALUE!, one of the referenced cells contains text rather than a number; check for stray spaces or a percent sign typed into a cell formatted as General. If you see #NUM!, the exponent is likely enormous or negative in a way the formula cannot handle; confirm the years and compounding frequency are sensible positive numbers. If the result looks too large, the rate is almost certainly entered as a whole number rather than a decimal. If the result looks too small, check that you divided the rate by the compounding frequency and multiplied the years by it. If the formula returns a negative number when using FV, adjust the signs on the payment or present-value arguments. Finally, if dragging a formula down produces shifting references, add dollar signs to lock the input cells.

Frequently Asked Questions

What is the compound interest formula in Excel?

The standard formula is =P*(1+r/n)^(n*t), where P is principal, r is the annual rate as a decimal, n is compounding periods per year, and t is years.

How do I calculate compound interest with monthly contributions?

Use the FV function: =FV(rate/12, years*12, -monthly_deposit, -principal). Divide the annual rate by 12 and multiply years by 12 to match the monthly period.

Why is my Excel compound interest result wrong?

The most common causes are entering the rate as a whole number instead of a decimal, forgetting to divide the rate by the compounding frequency, or omitting parentheses around the base of the exponent.

Can I calculate continuous compound interest in Excel?

Yes. Use =Principal*EXP(rate*years). The EXP function raises e to the specified power, which is the continuous compounding formula.

Does the formula work in Google Sheets?

Yes. The syntax for arithmetic, the caret exponent operator, and the FV function are the same in Google Sheets and LibreOffice Calc.