# CONFIDENCE Function

> Calculate the margin of error of a confidence interval with the normal distribution using CONFIDENCE in TX Sheet Control: alpha, size and #NUM! errors.

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

---

Return the margin of error of a confidence interval for a population mean, using the normal distribution. `alpha` is the significance level, such as 0.05 for a 95% confidence interval, `standard_dev` the standard deviation of the population and `size` the sample size, truncated to an integer. The confidence interval is the sample mean plus or minus the result. An `alpha` that is not greater than 0 and less than 1, a `standard_dev` of 0 or less, or a `size` less than 1 returns `#NUM!`. CONFIDENCE is the compatibility version of [CONFIDENCE.NORM](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/confidence-norm/llms-full.txt).

### Syntax

```text
CONFIDENCE(alpha, standard_dev, size)
```

Category: Statistics. Minimum arguments: 3. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=CONFIDENCE(0.05,2,100)
```

The formula returns 0.392: with a standard deviation of 2 and a sample of 100 values, the 95% confidence interval is the sample mean plus or minus 0.392.

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:** [CONCATENATE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/concatenate/llms-full.txt)
- **Next:** [CONFIDENCE.NORM Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/confidence-norm/llms-full.txt)
