Category: FUNCTION | Updated: 2026-11-22
How to Use the NPER Function | Calculate the Time Needed to Pay Off a Loan or Reach a Savings Goal
Syntax
=NPER(rate, payment_amount, present_value, [future_value, end_or_beginning])
- rate: The interest rate per period (divide by
12if using an annual rate). - payment_amount: The repayment or contribution amount per period (negative for outflows).
- present_value: The loan principal (positive) or initial investment (negative).
- future_value (optional): The target final balance (
0to pay off a loan). - end_or_beginning (optional):
0(end of period, default) or1(beginning of period).
Practical Example with a Table
Here is an example of finding how many months (and years) it takes to pay off a ¥5,000,000 loan (at 2.0% annual interest) by paying ¥100,000 per month.
| Item | Cell | Input Value | Notes |
|---|---|---|---|
| Annual Interest Rate | B1 | 2.0% |
Monthly rate is B1/12 |
| Monthly Payment | B2 | -100000 |
Negative because it is an outflow |
| Loan Amount | B3 | 5000000 |
Positive because it is a loan received |
| Months to Pay Off | B4 | =NPER(B1/12, B2, B3) |
52.3 months (approx. 4.4 years) |
Common Errors and Notes
- Handling Fractional Results: The result is returned as a number that may include decimals (e.g.,
52.3). To find the actual whole number of payments, use theROUNDUPfunction to round up to53 payments. - Signs for Savings Simulations: If you want to know how long it takes to save ¥10,000,000 by depositing ¥50,000 per month, set
payment_amountto-50000,present_valueto0, andfuture_valueto10000000.
Frequently Asked Questions
Q. What is the unit of the number calculated by the NPER function?
A. If you specify the interest rate and periodic payment on a "monthly" basis, the result is returned in "months (number of payments)." To find the number of years, divide the result by 12.
Q. What happens in the NPER function if the payment amount is less than the interest?
A. Because the principal will never decrease and the loan cannot be paid off, a "#NUM!" error is returned.