# SLOPE Function

> Return the slope of the linear regression line through data points with SLOPE in TX Sheet Control: known y and x values, #N/A and #DIV/0! errors.

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

---

Return the slope of the linear regression line through data points. `known_y` and `known_x` are the y-values and x-values of the points and must have the same number of values; otherwise SLOPE returns `#N/A`. X-values that are all equal return `#DIV/0!`. SLOPE takes two arguments; a third argument, the name `x` in the syntax, returns `#VALUE!`.

### Syntax

```text
SLOPE(known_y, known_x, x)
```

Category: Statistics. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=SLOPE({1,2,3},{2,4,6})
```

The formula returns 0.5, because y grows by 1 when x grows by 2.

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:** [SLN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sln/llms-full.txt)
- **Next:** [SMALL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/small/llms-full.txt)
