Financial function

NPER function

Returns how many periods it takes to pay off a loan or reach a savings target with fixed payments and a constant rate.

Available in All versions of Excel (Windows and Mac), Excel for Microsoft 365, Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

NPER(rate, pmt, pv, [fv], [type])
ArgumentWhat it means
rateRequiredInterest rate per period.
pmtRequiredPayment each period (negative for payments you make).
pvRequiredPresent value: amount owed or starting balance.
fvOptionalTarget balance at the end. Default 0.
typeOptional0 or omitted = end of period; 1 = start of period.

Returns: The number of periods, usually with decimals (the last payment is a partial one).

How NPER works

NPER answers "how long?". How many months until this credit card is paid off at $200 a month? How many years until savings reach $50,000? How long does it take money to double? You give the rate, the payment and the amounts, and NPER returns the number of periods.

The answer usually has decimals because the last payment is smaller than the others. Round it up with ROUNDUP to count actual payments. Excel's cash-flow sign convention: money you pay out is negative, money you receive is positive. If the payment is too small to cover the interest, the debt never shrinks and NPER returns #NUM! — a useful warning in itself.

Examples

1Months to pay off a credit card

B5fx=NPER(B2/12,-B3,B1)
AB
1Balance5000
2APR19.90%
3Monthly payment200
4
532.55

Result: 32.55

It takes 32.55 months, i.e. 33 payments with the last one smaller (Number format, 2 decimals).

2Months to reach a savings target

B5fx=ROUNDUP(NPER(B2/12,-B3,0,B1),0)
AB
1Target50000
2Annual rate5.00%
3Monthly saving500
4
584

Result: 84

NPER returns 83.77 months; ROUNDUP turns that into 84 deposits, i.e. 7 years.

3How long to double your money

B3fx=NPER(B1,0,-1,2)
AB
1Annual return6.00%
2
311.90

Result: 11.90

Invest 1 (pv −1) and wait until it becomes 2 (fv). At 6% that takes 11.90 years — close to the 'rule of 72' estimate 72/6 = 12. PDURATION does the same more directly.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!The payment does not even cover the interest, so the target is never reached; or the signs are wrong.Increase the payment or check that pmt and pv have opposite signs.

Tips

  • Use the same time unit for rate and the answer: a monthly rate gives months.
  • To show years and months: =INT(n/12)&" yrs "&ROUND(MOD(n,12),0)&" mths".

Questions

Why does NPER return #NUM!?

Your payment is smaller than the interest charged each period (or the signs are the same), so the balance never reaches the target.

Why does NPER return a decimal?

The final payment is a partial one. Round up to get the number of payments.

Google Sheets

NPER also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

NPER in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechPOČET.OBDOBÍ
FinnishNJAKSO
FrenchNPM
GermanZZR
HungarianPER.SZÁM
ItalianNUM.RATE
Norwegian (Bokmål)PERIODER
RussianКПЕР
SwedishPERIODER
TurkishTAKSİT_SAYISI

Recipes that use NPER