# RATE Function

> Calculate the interest rate of a loan or annuity by iteration with RATE in TX Sheet Control: periods, payment, present and future value, guess and #NUM!.

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

---

Calculate the interest rate per period of a loan or an annuity by iteration. `nper` is the number of periods, `pmt` the payment per period, `pv` the present value, `fv` the balance after the last payment (0 when omitted), `type` 0 for payments at the end of each period (the default) or 1 for the beginning, and `guess` an estimate of the rate to start from. The payment and the present value must have opposite signs. When no rate is found, or `nper` is 0, RATE returns `#NUM!`.

### Syntax

```text
RATE(nper, pmt, pv, fv, type, guess)
```

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

Available for supported offline calculation.

### Examples

```text
=RATE(12,-100,1000)
```

The formula returns 0.0292, an interest rate of 2.92% a month at which 12 payments of 100 repay a loan of 1,000.

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:** [RANK.EQ Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/rank-eq/llms-full.txt)
- **Next:** [RECEIVED Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/received/llms-full.txt)
