# NPER Function

> Calculate the number of periods of a loan or investment with NPER in TX Sheet Control: rate, payment, present and future value, payment timing and signs.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > NPER Function
- **279 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/nper/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/nper/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/nper/llms-full.txt

---

Return the number of periods of an investment or loan with constant payments and a constant interest rate. `rate` is the interest rate per period, `periods_or_payment` the payment made each period and `present_value_or_payment` the present value. `future_value` is the value after the last payment (0 when omitted), and `type` is 0 (the default) for payments at the end of each period or 1 for payments at the beginning. Money paid out is negative and money received positive.

### Syntax

```text
NPER(rate, periods_or_payment, present_value_or_payment, future_value, type)
```

Category: Financial. Minimum arguments: 3. Maximum arguments: 5.

Available for supported offline calculation.

### Examples

```text
=NPER(0.01,12,1000)
```

The formula returns -60.92, a negative number of periods, because the payment and the present value have the same sign; `=NPER(0.01,-100,1000)` returns 10.59 periods to pay off a loan of 1,000 with payments of 100 at 1% per period.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [NOW Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/now/llms-full.txt)
- **Next:** [NPV Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/npv/llms-full.txt)
