Skip to main content

Excel Compound Interest Formula: A Comprehensive Guide

Learn to use Excel to calculate compound interest along with practical techniques and real-world applications to enhance your financial analysis skills.
· 9 min read

Explore with AI

Add DataCamp as preferred source on Google

To calculate compound interest in Excel, use =P*(1+r/n)^(n*t), or the built-in FV() function: =FV(r/n, n*t, 0, -P). For $1,000 at 5% compounded monthly for 5 years, both return $1,283.36.

In this guide, I build each calculation step by step: the formula itself, FV() and PMT(), a retirement projection, a loan amortization schedule, variable rates, and how compounding frequency changes the result. For the wider modeling techniques these feed into, see our Financial Modeling in Excel course.

TL;DR

  • The Excel formula for compound interest is =P*(1+r/n)^(n*t).
  • FV() gives the same result and also handles regular contributions.
  • PMT() works backwards from a target to the monthly payment needed.
  • Use EFFECT() to compare rates with different compounding frequencies.
  • FVSCHEDULE() applies a different interest rate to each year in one formula.

What Is Compound Interest?

Compound interest represents the exponential growth of money over time. Unlike simple interest, which grows linearly, compound interest accelerates as the interest earned in each period becomes part of the principal for the next period.

Small rate differences grow large over long periods. $10,000 left for 30 years at 6% compounded annually grows to $57,434.91. At 8%, it grows to $100,626.57, almost twice as much.

Here’s the difference on $10,000 at 6% a year for 5 years:

 Simple interestCompound interest (annual)
Excel formula=10000*(1+0.06*5)=10000*(1+0.06)^5
Final amount$13,000.00$13,382.26
Interest earned$3,000.00$3,382.26

The extra $382.26 is interest earned on earlier interest, and the gap widens every year the money stays invested.

The Compound Interest Formula

Compound interest is calculated using the formula:

Compound interest formula

Compound interest formula. Image by Author.

Where:

  • A = Final amount after interest
  • P = Principal (initial investment)
  • r = Annual interest rate (in decimal form)
  • n = Number of times interest is compounded per year
  • t = Number of years

Now that we’ve understood the concept and the mathematical formula, let’s implement it in Excel.

How to Calculate Compound Interest in Excel

To implement this formula in Excel, set up a basic spreadsheet structure with clearly labeled cells for each variable.

First, organize your spreadsheet with the following labels:

  • Cell A1: “Principal”
  • Cell A2: “Annual Interest Rate”
  • Cell A3: “Compounding Periods per Year”
  • Cell A4: “Time (years)”
  • Cell A5: “Final Amount”

Next, enter your values in column B:

  • Cell B1: Enter your principal amount (e.g., 1000)

  • Cell B2: Enter your interest rate as a decimal (e.g., 0.05 for 5%)

  • Cell B3: Enter the number of compounding periods per year (e.g., 12 for monthly)

  • Cell B4: Enter the time in years (e.g., 5)

After setting up the data, your Excel sheet should look like:

Setting up the Excel table.

Setting up the Excel table. Image by Author.

Finally, in cell B5, enter the compound interest formula:

=B1*(1+B2/B3)^(B3*B4)

Google Sheets cell B5 with compound interest formula =B1*(1+B2/B3)^(B3*B4) enteredCompound interest formula in Excel. Image by Author.

This formula directly applies the mathematical equation above, calculating the final amount after compound interest.

Calculating compound interest

Calculating compound interest. Image by Author.

Using the FV() function

While the manual formula works well, Excel provides built-in financial functions that simplify compound interest calculations. The FV() function (Future Value) is particularly useful for calculating compound interest when making regular payments or investments.

The syntax for the FV() function is:

=FV(rate, nper, pmt, [pv], [type])

Where:

  • rate = Interest rate per period

  • nper = Total number of payment periods

  • pmt = Payment made each period (enter 0 if none)

  • pv = Present value (initial principal). Excel treats money you pay in as negative and money you get back as positive, so entering the principal as a negative number gives a positive result

  • type = When payments are due (0 for end of period, 1 for beginning)

Let’s modify our spreadsheet to use the FV() function:

  • Cell A6: “Using FV() Function”

Type the following in cell B6:

=FV(B2/B3, B3*B4, 0, -B1)

Calculating compound interest using FV().

Calculating compound interest using FV(). Image by Author.

Note that we divide the annual interest rate by the number of compounding periods to get the rate per period, and we enter the principal as a negative number as required by the function.

You should be able to see the calculated compound interest as below:

Compound interest using FV()

Compound interest using FV(). Image by Author.

To get the interest earned rather than the final amount, subtract the principal: =FV(B2/B3, B3*B4, 0, -B1)-B1 returns $283.36.

Using the PMT() function

The PMT() function calculates the payment for a loan based on constant payments and a constant interest rate. While it's primarily designed for loan payments, it can be adapted for compound interest scenarios where you want to determine regular contribution amounts to reach a target sum.

The syntax for the PMT() function is:

=PMT(rate, nper, pv, [fv], [type])

Where:

  • rate = Interest rate per period

  • nper = Total number of payment periods

  • pv = Present value (initial principal)

  • fv = Future value (the target amount you want to reach)

  • type = When payments are due (0 for end of period, 1 for beginning)

Let’s add this to our spreadsheet:

  • Cell A7: “Target Amount”

  • Cell B7: Enter your target amount (e.g., 5000)

  • Cell A8: “Required Monthly Payment”

Type the following in cell B8:

=PMT(B2/B3, B4*B3, -B1, B7)

Calculating compound interest using PMT()Calculating compound interest using PMT(). Image by Author.

This formula calculates how much you need to contribute monthly to reach your target amount, given your initial principal and interest rate.

The calculated monthly payment can be seen as below:

Compound interest using PMT().

Compound interest using PMT(). Image by Author.

The PMT() function in Excel returns a negative value by default because it’s designed from a cash flow perspective:

  • Negative values represent money that you pay out (cash outflow)
  • Positive values represent money that you receive (cash inflow)

Excel Compound Interest in Action

The compound interest formula in Excel has numerous real-world applications across personal finance and business contexts. Let’s explore some of these practical scenarios.

Savings and investments

One of the most common applications of compound interest calculations is projecting the growth of savings or investment accounts. Understanding how money grows over time can help us make informed decisions.

Let’s create a retirement savings projection model in a new section of our spreadsheet. After entering “Retirement Savings Projection” in cell D1, set up your parameters in cells D2 through D6:

  • Cell D2: “Initial Investment” with E2: 10000

  • Cell D3: “Monthly Contribution” with E3: 500

  • Cell D4: “Annual Interest Rate” with E4: 0.07

  • Cell D5: “Time Horizon (years)” with E5: 30

  • Cell D6: “Compounding Frequency” with E6: “Monthly”

After entering “Projected Future Value” in cell D7, type the following equation in E7:

=FV(E4/12, E5*12, -E3, -E2)

Calculating projected future value.Calculating projected future value. Image by Author.

This formula projects your retirement savings, accounting for both your initial investment and regular contributions. You can see the future value as below:

Projected future value using FV().

Projected future value using FV(). Image by Author.

We can enhance this model by creating a year-by-year projection table:

  • In cell D9, enter “Year-by-Year Projection”

  • In cell D10, enter “Year” and in cell E10, enter “Balance”

  • In cell D11, enter 0 (starting year)

  • In cell E11, enter your initial investment: =E2

  • In cell D12, enter 1

  • In cell E12, calculate the balance after year 1:

=FV($E$4/12, 1*12, -$E$3, -E11)

Creating a year-by-year projection tableCreating a year-by-year projection table. Image by Author.

  • Select cells D11 and D12, then click and drag the fill handle (small square at the bottom-right corner) down to row 41 to create years 0 through 30
  • Select cell E12, then click and drag the fill handle down to row 41

Excel will automatically adjust the cell references in each row, creating a sequence of calculations where each year builds upon the previous year’s balance.

Year-by-year projection table.

Year-by-year projection table. Image by Author.

The table shows the growth speeding up: the balance takes 9 years to pass $90,000, then more than doubles in the next 10.

How long it takes to reach a goal

To turn the question around and ask how long it takes to reach a target, use NPER(). With the same inputs and a $100,000 goal:

=NPER(E4/12, -E3, -E2, 100000)

It returns about 114 months, or 9.5 years. Divide by 12 to get years. For goals that don’t fit a built-in function, Goal Seek finds the input that produces a target result.

Loan calculations

Compound interest also applies to loans, where interest compounds on the remaining balance. Excel’s functions can help you understand various aspects of loans, from monthly payments to total interest paid.

To create a loan amortization schedule, set up your loan parameters as shown below:

Calculating the loan's monthly payment.Calculating the loan's monthly payment. Image by Author.

In cell H5, type the following to calculate the monthly payment:

=PMT(H3/12, H4*12, H2)

Calculating loan monthly payment using PMT().Calculating loan monthly payment using PMT(). Image by Author.

You’d see the monthly payment as:

Loan monthly payment.

Loan monthly payment. Image by Author.

Next, set up the amortization schedule table with a header as below:

Creating amortization schedule table.Creating amortization schedule table. Image by Author.

Enter the initial values for the first payment (row 8):

  • Cell G8: 1 (first payment)

  • Cell H8: =H2 (initial loan amount)

  • Cell I8: =ABS(H5) (payment amount, using ABS() to convert negative PMT() result to positive)

  • Cell J8: =H8*($H$3/12) (interest portion: beginning balance × monthly rate)

  • Cell K8: =I8-J8 (principal portion: payment amount − interest portion)

  • Cell L8: =H8-K8 (ending balance: beginning balance − principal portion)

Amortization schedule table calculations.Amortization schedule table calculations. Image by Author.

For the second payment (row 9), create the following formulas:

  • Cell G9: =G8+1 (payment number)

  • Cell H9: =L8 (beginning balance equals previous payment’s ending balance)

  • Cell I9: =I8 (payment amount stays the same)

  • Cell J9: =H9*($H$3/12) (interest portion based on new beginning balance)

  • Cell K9: =I9-J9 (principal portion)

  • Cell L9: =H9-K9 (ending balance)

Amortization schedule table calculations.Amortization schedule table calculations. Image by Author.

Then select cells G9 to L9 and drag down to row 367 (for all 360 payments).

In cell H6, we can calculate the total interest paid: 

=SUM(J8:J367)

The final schedule should look like:

Amortization schedule table.Amortization schedule table. Image by Author.

The schedule shows how slowly the balance falls at first. Of the first $1,266.71 payment, $937.50 is interest and only $329.21 repays the loan. Principal doesn’t overtake interest until payment 176, in year 15. By payment 180 the split is $623.36 interest to $643.36 principal, and the last payment is $4.73 interest and $1,261.98 principal.

On a 30-year loan, interest takes most of each payment until year 15

Advanced Compound Interest Techniques

Let’s explore scenarios in which some advanced techniques are used, such as handling irregular compounding periods and varying interest rates.

Variable interest rates

Real-world scenarios often involve variable interest rates, such as adjustable-rate mortgages or market-linked investments. Excel can handle these complex scenarios with some additional setup.

We can create a model with different interest rates for different time periods. Let’s set up a variable interest rate table assuming that interest rates are to increase by 0.5% every 5 years:

Setting up a table for varying interest rates.Setting up a table for varying interest rates. Image by Author.

To calculate the ending balance of Year 1 and the beginning balance of Year 2, type the following:

  • Cell Q4: =P4*(1+O4)

  • Cell P5: =Q4

Varying interest rates calculations.Varying interest rates calculations. Image by Author.

We can now select the rows of Years 1–2 and drag down to extend the table to our desired number of years, modifying interest rates as needed, as shown in the image below:

Varying interest rate calculator.Varying interest rate calculator. Image by Author.

This model lets you visualize how changing interest rates affect your investment or loan over time. 

If you only need the final balance, Excel has a function for this: FVSCHEDULE(principal, schedule) applies each rate in a range in turn. On the table above:

=FVSCHEDULE(P4, O4:O9)

It returns $123,519.38, the same as the table’s last ending balance, without the year-by-year rows.

Compounding frequency

Real-world financial products often use non-standard compounding periods. Some investments compound quarterly, others monthly, and some even daily. These differences in compounding frequency can significantly impact your returns over time.

To change the compounding frequency, change n in the formula: 1 for annual, 4 for quarterly, 12 for monthly, 365 for daily. For $10,000 at 6% compounded daily for 5 years:

=10000*(1+0.06/365)^(365*5)

A sample irregular compounding calculator will look like:

Irregular compounding calculator. Image by Author.Irregular compounding calculator. Image by Author.

Each row uses the same formula with a different n: =Principal*(1+Rate/n)^(n*Years). For the custom row, n is the number of periods in a year, so every 30 days is 365/30.

The gains shrink as compounding gets more frequent. Annual compounding gives $13,382.26, quarterly $13,468.55, monthly $13,488.50 and daily $13,498.26. Even continuous compounding, the mathematical limit, only reaches $13,498.59 (=10000*EXP(0.06*5)).

Compounding more often adds less and less: daily beats annual by $116 on $10,000

To compare products that compound at different frequencies, convert each rate to an effective annual rate with EFFECT(nominal_rate, periods_per_year). =EFFECT(0.06, 12) returns 6.17%, and =EFFECT(0.06, 365) returns 6.18%, so 6% compounded daily is only slightly better than 6% compounded monthly.

Final Thoughts

For a single amount, =P*(1+r/n)^(n*t) or FV() gives the future value. Add PMT() and NPER() to plan savings and loans, FVSCHEDULE() when the rate changes, and EFFECT() to compare compounding frequencies on equal terms.

To deepen your Excel skills beyond this tutorial, consider enrolling in our Financial Modeling in Excel course. This course builds upon the fundamental concepts discussed in the tutorial with advanced financial modeling techniques.

Arunn Thevapalan

Author

Arunn Thevapalan

As a senior data scientist, I design, develop, and deploy large-scale machine-learning solutions to help businesses make better data-driven decisions. As a data science writer, I share learnings, career advice, and in-depth hands-on tutorials.

FAQs

What is the basic Excel formula for calculating compound interest?

The basic formula is

=Principal*(1+Rate/Periods)^(Periods*Years)

Applying this to $1000 at 5% compounded monthly for 5 years:

=1000*(1+0.05/12)^(12*5).
How do I use the FV() function for compound interest in Excel?

Use

=FV(rate_per_period, total_periods, payment, -principal)

For example:

=FV(0.05/12, 5*12, 0, -1000)

for $1000 at 5% monthly compounding for 5 years.

Can Excel calculate how much I need to save monthly to reach a specific goal?

Yes, use the PMT() function:

=PMT(rate_per_period, total_periods, -starting_amount, target_amount)

This calculates the regular payment needed to reach your financial goal.

How do I create a loan amortization schedule in Excel?

Create a table with columns for payment number, beginning balance, payment, interest, principal, and ending balance. Calculate the payment once with PMT(), then each row's interest is the beginning balance times the monthly rate, and the principal is the payment minus the interest. Our guide to creating an amortization schedule in Excel walks through it in full.

How can I handle variable interest rates in Excel?

For the final balance only, use FVSCHEDULE() with a range of rates: =FVSCHEDULE(100000, {0.035, 0.035, 0.035, 0.035, 0.035, 0.04}) returns $123,519.38. To see each year's balance, build a table where each row multiplies the previous balance by (1+rate) for that year.

What is the difference between simple and compound interest in Excel?

Simple interest is paid on the principal only: =P*(1+r*t). Compound interest is also paid on earlier interest: =P*(1+r/n)^(n*t). $10,000 at 6% for 5 years grows to $13,000 with simple interest and $13,382.26 compounded annually.

How do I calculate the effective annual rate in Excel?

Use =EFFECT(nominal_rate, periods_per_year). For example, =EFFECT(0.06, 12) returns 6.17%, the annual rate that 6% compounded monthly is equivalent to. NOMINAL() converts back the other way.

How do I calculate how long it takes to reach a savings goal in Excel?

Use NPER(). =NPER(0.07/12, -500, -10000, 100000) returns about 114 months (9.5 years) for $10,000 plus $500 a month at 7% to reach $100,000. Enter money you pay in as negative numbers.

Topics

Related

Excel Cheat Sheet.png

cheat sheet

Excel Formulas Cheat Sheet

Tutorial

CAGR Excel Formula: A Comprehensive Guide

⌂ 换网址