# IRR Function

> Calculate the internal rate of return of periodic cash flows with the IRR formula function of TX Sheet Control: values, the optional guess and the #NUM! error.

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

---

Return the internal rate of return of a series of periodic cash flows. `values` is an array or range of cash flows at regular intervals, with at least one negative value (a payment) and one positive value (an income); `guess` is an optional starting value for the iteration. Cash flows without both a negative and a positive value return `#NUM!`.

### Syntax

```text
IRR(values, guess)
```

Category: Financial. Minimum arguments: 1. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=IRR({-100,110})
```

The formula returns 0.1 (10%): a payment of 100 returns 110 one period later.

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:** [IPMT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ipmt/llms-full.txt)
- **Next:** [ISBLANK Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/isblank/llms-full.txt)
