top of page

MS Excel: NPER function to pay off a loan

  • Writer: Fakhriddinbek
    Fakhriddinbek
  • Apr 28
  • 2 min read

NPER stands for Number of Periods. The NPER function in Excel calculates how many payment periods are needed to pay off a loan or reach an investment goal, based on constant payments and a constant interest rate.


In simple words: NPER tells you "how long will it take" to finish paying or saving.


Spreadsheet software showing a function arguments window for NPER with fields for rate, payment, and interest. Toolbar and grid visible.

NPER Function Syntax


NPER(rate, pmt, pv, [fv], [type])


Argument

Description

rate

Required. Interest rate per period.

pmt

Required. Payment made each period (must be the same each time).

pv

Required. Present value (current loan amount or investment).

fv

Optional. Future value (desired balance after last payment). Default is 0.

type

Optional. 0 = Payment at end of period (default), 1 = Payment at beginning.


Payments (PMT) and Present Value (PV) usually have opposite signs (example: loan is positive, payment is negative).


Simple Example


Suppose:

  • You take a loan of $10,000.

  • You pay $250 every month.

  • The annual interest rate is 6%.


Find how many months it takes to pay off the loan.


Step 1: Find monthly interest rate:


6% / 12 = 0.5% = 0.005


Step 2: Formula:


=NPER(0.005, -250, 10000)


Result: 44.955 periods ≈ 45 months


You’ll need about 45 months to pay off the loan.


Tabular Example


Loan Amount (PV)

Payment (PMT)

Annual Interest Rate

Formula

Result (Months)

$5,000

$150

5%

=NPER(5%/12, -150, 5000)

35.45

$20,000

$500

7%

=NPER(7%/12, -500, 20000)

43.77

$12,000

$350

4%

=NPER(4%/12, -350, 12000)

36.09


How to Use NPER in Real Life

  • 📚 Loans — How long it takes to pay off car loans, mortgages, student loans.

  • 💰 Investments — How long it will take to reach a savings goal.

  • 🏦 Retirement Planning — How many years to grow an investment to a target amount.


Common Mistakes and Tips


Tip or Mistake

Description

Correct rate per period

If payments are monthly, divide annual interest by 12.

Sign convention

Cash outflows (payments) should be negative, inflows (loan/investment) positive.

Consistent periods

Make sure payments and rate match (monthly with monthly, yearly with yearly).

NPER can return decimal

It gives exact periods; you can round it if needed.


Optional FV and Type


Argument

Effect

FV

If you want a future target (not just 0), like saving $100,000.

Type

If payments are made at the beginning of the period, use 1; otherwise use 0 (default).


Example: Saving $50,000 with $400 per month, earning 5% annual interest:


=NPER(5%/12, -400, 0, 50000)


Final Thoughts


The NPER function is a fantastic tool for financial planning, helping you estimate how long it will take to repay a loan, save for a goal, or reach investment targets.Whether for personal finance or business forecasting, mastering NPER can help you make smarter money decisions!

Yorumlar


bottom of page