Excel function

NPERfunction

Returns how many periods it takes to pay off a loan or reach a savings goal with equal payments.

All versions
=NPER(0.005, -100000, 1000000)
A
B
C
D
E
1
2
3
4
5
6
7
8
9
10
11

Set the payment to -50000 and the term gets longer. Pay less than the first month's interest (5000), such as -4000, and it never pays off: #NUM!. Try breaking it on purpose to see the errors.

Result

10.28428421

rate

The interest rate per period. For 6% a year paid monthly, enter 0.06/12 = 0.005.

pmt

The amount paid (-) or received (+) each period. It must be the same every period.

pv

The amount now. Money borrowed is +; money put into savings is -.

fv

The amount left after the last payment. If omitted, 0 (fully paid off).

type

0 (or omitted) pays at the end of each period; 1 pays at the start.

What is the NPER function?

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

NPER returns how many periods it takes to pay off a loan or reach a savings goal when you pay the same amount each period at a fixed rate.

The result is often a decimal such as 10.28. In the schedule, a small balance remains after period 10, so the 11th payment is only partial.

Arguments

rate
The interest rate per period. For 6% a year paid monthly, 0.06/12.
pmt
The amount paid each period. It is money paid, so enter it as -.
pv
The amount now. Money borrowed is +; an initial deposit is -.
fv
The amount to have after the last payment. If omitted, 0.
type
0 (or omitted) is the end of each period; 1 is the start.

NPER examples

  1. Example 1. Example from Microsoft

    =NPER(12%/12, -100, -1000, 10000, 1)

    Starting with 1000 and adding 100 at the start of each month, reaching 10000 takes about 59.67 months.

  2. Example 2. Paying at the end of the period

    =NPER(12%/12, -100, -1000, 10000)

    About 60.08. Less interest builds up, so it takes a little longer.

  3. Example 3. Round up to whole periods

    =ROUNDUP(NPER(0.5%, -100000, 1000000), 0)

    Rounds 10.28 up to 11, the actual number of payments.

Common mistakes

FAQ

How do I turn the result into years?
If you calculated monthly, divide NPER by 12.
How do I find the payment?
If the term is fixed, use PMT.