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])| Argument | What it means | |
|---|---|---|
rate | Required | Interest rate per period. |
pmt | Required | Payment each period (negative for payments you make). |
pv | Required | Present value: amount owed or starting balance. |
fv | Optional | Target balance at the end. Default 0. |
type | Optional | 0 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
| A | B | |
|---|---|---|
| 1 | Balance | 5000 |
| 2 | APR | 19.90% |
| 3 | Monthly payment | 200 |
| 4 | ||
| 5 | 32.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
| A | B | |
|---|---|---|
| 1 | Target | 50000 |
| 2 | Annual rate | 5.00% |
| 3 | Monthly saving | 500 |
| 4 | ||
| 5 | 84 |
Result: 84
NPER returns 83.77 months; ROUNDUP turns that into 84 deposits, i.e. 7 years.
3How long to double your money
| A | B | |
|---|---|---|
| 1 | Annual return | 6.00% |
| 2 | ||
| 3 | 11.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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Czech | POČET.OBDOBÍ |
| Finnish | NJAKSO |
| French | NPM |
| German | ZZR |
| Hungarian | PER.SZÁM |
| Italian | NUM.RATE |
| Norwegian (Bokmål) | PERIODER |
| Russian | КПЕР |
| Swedish | PERIODER |
| Turkish | TAKSİT_SAYISI |