# SLN Function

> Calculate the straight-line depreciation of an asset per period with SLN in TX Sheet Control: cost, salvage, life, the #NUM! error and an example.

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

---

Return the straight-line depreciation of an asset for one period. `cost` is the initial cost of the asset, `salvage` its value at the end of the depreciation and `life` the number of periods; the depreciation is the same in every period. A `life` of zero or less returns `#NUM!`. TX Sheet Control accepts a fourth and fifth argument but ignores them.

### Syntax

```text
SLN(cost, salvage, life, period, factor_or_month)
```

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

Available for supported offline calculation.

### Examples

```text
=SLN(1000,100,5)
```

The formula returns 180, the depreciation per year of an asset that costs 1,000 and is worth 100 after five years.

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:** [SKEW.P Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/skew-p/llms-full.txt)
- **Next:** [SLOPE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/slope/llms-full.txt)
