Chart & Visualization Issues

Create an Excel Line Chart of Total Interest by Rate

Algirdas JasaitisAlgirdas Jasaitis Nov 20, 2026 870 views

Question details

Create a line chart showing total interest paid over 15 years at interest rates from 0% through 10%.

Create an Excel Line Chart of Total Interest by Rate
Product
Microsoft Excel
Device & OS
not provided
Scenario
Compare total interest across a range of annual interest rates for a loan with a fixed principal and term.
Observed behavior
The desired chart uses the interest rate on the horizontal axis and total interest paid on the vertical axis.
Before you start

Choose a loan principal and confirm that the rates are annual rates. The example assumes monthly payments, a 15-year term, and payments made at the end of each month.

Solution 1Recommended

Use an Excel data table and line chart

Use a one-variable data table to calculate total interest for each rate and plot the results.

1
Set up the loan inputs

Enter the loan principal in B1, a starting annual interest rate such as 5% in B2, and 15 in B3 for the term in years.

2
Calculate total interest

Enter =IF(B2=0,0,-CUMIPMT(B2/12,B3*12,B1,1,B3*12,0)) in B4. This returns zero interest at a 0% rate and calculates interest over all monthly payments at other rates.

3
Create the rate table

Enter Rate in D1 and =B4 in E1. Enter rates from 0% through 10% in D2:D12, using 1% increments.

4
Run the data table

Select D1:E12, then choose Data > What-If Analysis > Data Table. Leave Row input cell blank, set Column input cell to B2, and select OK.

5
Insert and label the chart

Select D2:E12 and choose Insert > Line Chart. If needed, use Chart Design > Select Data to set D2:D12 as the horizontal axis labels and E2:E12 as the interest series. Add axis titles for Interest Rate and Total Interest Paid.

Rate spacing: A line chart treats rates as category labels. Equal 1% increments make the horizontal spacing consistent; use an XY scatter chart if rates are unevenly spaced.
Calculate and chart in WPS

Plot total interest by rate in WPS Spreadsheets

Use a PMT formula to calculate total interest at each annual rate, then create a line chart from the results in WPS Spreadsheets.

  1. 1. Enter the principal: Open WPS Spreadsheets, create a workbook, and enter the loan principal in B1.
  2. 2. List the rates: Enter Rate in A3 and Total Interest in B3. Enter annual rates from 0% to 10% in A4:A14, using 1% increments.
  3. 3. Calculate the interest: In B4, enter =IF(A4=0,0,-PMT(A4/12,15*12,$B$1)*15*12-$B$1), then drag the fill handle down through B14.
  4. 4. Create the line chart: Select A3:B14 and choose Insert > Chart > Line. Check that Rate appears on the horizontal axis and Total Interest is the plotted series.
Compare 15-year interest totals across rates in a line chartOpen and save Microsoft Excel XLSX filesUse a familiar spreadsheet interface with formulas and chartsGet started with WPS Office for free
microsoft office alternative - wps office

Frequently Asked Questions

Why does the interest calculation need a principal amount?

Total interest depends on the amount borrowed as well as the rate, term, and payment schedule. Enter the principal in B1 before calculating the results.

Why does the formula handle a 0% rate separately?

CUMIPMT can return an error when the rate is zero. The IF(B2=0,0,...) formula returns zero interest for that rate.

How do I put interest rates on the horizontal axis in Excel?

Select the chart, choose Chart Design > Select Data, and set the horizontal axis labels to the cells containing the rates, such as D2:D12.

Should I use a line chart or a scatter chart?

A line chart works well for evenly spaced rates such as 0%, 1%, and 2%. For unevenly spaced rates, choose Insert > Scatter so the horizontal positions reflect their numeric values.