# NPER formula generator

> Describe what you need and get a NPER formula for Excel and Google Sheets, run on real data before you copy it. Plus 4 tested NPER examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/nper · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

NPER calculates how many payment periods it takes to pay off a loan or reach a savings goal, at a fixed payment and interest rate.

Describe the task at [NPER formula generator](https://spreadsheetpractice.com/tools/formula-generator/nper) and get a NPER formula for Excel and Google Sheets, tested on real data.

## Tested NPER examples

### How long will my savings last

`=NPER(B4/12,B3,-B2)/12`

Excel. Result on the sample sheet: 25.1. [See it and try it](https://spreadsheetpractice.com/formulas/how-long-will-savings-last)

### How many months do extra payments save on a loan

`=NPER(B3/12,-B4,B2)-NPER(B3/12,-(B4+B5),B2)`

Excel. Result on the sample sheet: 46.5. [See it and try it](https://spreadsheetpractice.com/formulas/months-saved-by-extra-payments)

### How long does it take to double money

`=NPER(B2,0,-1,2)`

Excel. Result on the sample sheet: 10.2. [See it and try it](https://spreadsheetpractice.com/formulas/how-long-to-double-money)

## Questions

### What does the NPER formula generator do?

You describe the task in plain English, and it writes the formula, using NPER where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does NPER do?

NPER calculates how many payment periods it takes to pay off a loan or reach a savings goal, at a fixed payment and interest rate.

### Can I learn to write NPER formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the NPER function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
