# CONFIDENCE.T Function

> Calculate a confidence interval for a mean with Student's t-distribution using CONFIDENCE.T in TX Sheet Control: when to use it, arguments and errors.

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

---

Return the margin of error of a confidence interval for a population mean, using Student's t-distribution. Use it when the standard deviation of the population is unknown and is estimated from the sample. `alpha` is the significance level, such as 0.05 for a 95% confidence interval, `standard_dev` the standard deviation 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 2 returns `#NUM!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

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

The formula returns 0.397, slightly more than the 0.392 of [CONFIDENCE.NORM](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/confidence-norm/llms-full.txt) for the same values.

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