# YIELD Function

> Calculate the annual yield of a security that pays periodic interest with YIELD in TX Sheet Control: dates, rate, price, redemption, frequency, basis, errors.

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

---

Return the annual yield of a security that pays interest periodically. `settlement` and `maturity` are the settlement and maturity dates, `rate` is the annual coupon rate and `yield_or_price` the price of the security per 100 of face value. `redemption` is the redemption value per 100 of face value and `frequency` the number of coupon payments per year: 1, 2 or 4. `basis` selects the day count convention, from 0 (US 30/360, the default) to 4. A settlement date on or after maturity, a price of zero or less, or another frequency or basis returns `#NUM!`.

### Syntax

```text
YIELD(settlement, maturity, rate, yield_or_price, redemption, frequency, basis)
```

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

Available for supported offline calculation.

### Examples

```text
=YIELD(DATE(2026,1,1),DATE(2028,1,1),0.05,98,100,2)
```

The formula returns 0.0607710038, a yield of about 6.08% for a two-year bond with a 5% semiannual coupon bought at 98.

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