# YIELDMAT Function

> Calculate the annual yield of a security that pays interest at maturity with YIELDMAT in TX Sheet Control: settlement, maturity and issue dates, rate and price.

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

---

Return the annual yield of a security that pays interest at maturity. `settlement`, `maturity` and `issue` are the settlement, maturity and issue dates, `rate` is the interest rate at the issue date and `yield_or_price` the price of the security per 100 of face value. `basis` selects the day count convention, from 0 (US 30/360, the default) to 4. A settlement date on or after maturity, a negative rate or a price of zero or less returns `#NUM!`.

### Syntax

```text
YIELDMAT(settlement, maturity, issue, rate, yield_or_price, basis)
```

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

Available for supported offline calculation.

### Examples

```text
=YIELDMAT(DATE(2026,6,1),DATE(2027,1,1),DATE(2026,1,1),0.05,99)
```

The formula returns 0.0664232717, a yield of about 6.64% for a security bought at 99 that pays 5% interest at maturity.

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:** [YIELDDISC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/yielddisc/llms-full.txt)
- **Next:** [Z.TEST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/z-test/llms-full.txt)
