Financial cluster · engine-measured

NPER in Excel

NPER returns how many payments it takes to reach a target balance at a fixed rate. Saving $500 a month at 5% to reach $35,000 takes 61.55 months — measured, and note it is not a whole number.

By LookupLab Editorial · Published and last verified 2026-11-24 · every figure below computed with HyperFormula 3.5

Syntax

NPER(rate, pmt, pv, [fv], [type])
ArgumentWhat it means
rateRate per period.
pmtPayment per period, negative for money paid out.
pvStarting balance / loan principal (positive when you receive the loan).
fvOptional target balance. Defaults to 0 (loan fully repaid).
type0 = period end, 1 = period start.

Measured examples

Each result was returned by the engine, not written by hand. Loan fixture: $250,000, 6.5% a year, 360 monthly payments.

FormulaResultReading
=NPER(0.065/12,-1580.17,250000)360Recovers the 360-month term (tiny drift from rounded PMT)
=NPER(0.07/12,-500,0,609985.5)360.00000052Months to save $609,985.50 at 7%
=NPER(0.05/12,-500,0,35000)61.55Fractional answer: 61 full payments plus a partial one
=NPER(0,-500,0,30000)60Zero interest: 30000/500 = 60 exactly
=NPER(0.065/12,-100,250000)#NUM!Payment too small to ever repay — see below

Why #NUM! is the correct answer, not a failure

On this $250,000 loan at 6.5%, the first month's interest alone is $1,354.17 (measured with IPMT). A $100 payment does not cover it, so the balance grows every month and no finite number of payments ever clears the loan. NPER returns #NUM! because the equation has no solution. If you hit this, the fix is a larger payment or a lower rate — not a different formula.

The most brutal sensitivity in loan maths

Keep the payment fixed at $1,580.17 on $250,000 and raise the rate one point from 6.5% to 7.5%: the term goes from 360 months to 721.19 months — thirty years becomes sixty. Drop one point to 5.5% and it clears in 282.42 months. This is why a small rate change matters more than a small payment change.

Annual rateFormulaMeasured result
5.5%=NPER(0.055/12,-1580.17,250000)282.42
6.5%=NPER(0.065/12,-1580.17,250000)360.00
7.5%=NPER(0.075/12,-1580.17,250000)721.19

All other inputs held constant. Measured, not modelled.

Where NPER sits in the financial cluster

NPER is the term-solving sibling of PMT (payment), RATE (interest) and PV (principal). Given any three, the fourth is determined.

Common questions

Why does NPER return a decimal?

Because the target is reached part-way through a period. Measured: 61.55 months to save $35,000. Round up with ROUNDUP if you need a count of whole payments.

What causes NPER #NUM!?

A payment that cannot cover the period's interest, so the balance never falls. On a $250,000 loan at 6.5% monthly, interest alone is $1,354.17, so =NPER(0.065/12,-100,250000) has no solution.

Does NPER work with zero interest?

Yes. =NPER(0,-500,0,30000) returns 60 — simple division.

How do I get a whole number of payments?

Wrap it in ROUNDUP. The measured 61.55 months becomes 62 scheduled payments, with the last one smaller than the rest.

Used in practice: Excel for finance & accounting