Confidence Interval Calculator

Build a confidence interval for a population mean. Use t when σ is unknown (the usual case) and z when it is known.

Population SD σ is

Confidence interval45.8722 to 54.1278
Margin of error±4.1278
t* (df = 24)2.0639
Standard error2
44464850525456

Step by step

  1. Standard error: SE = s ÷ √n = 10 ÷ √25 = 2
  2. Critical value for 95% confidence: t* with 24 degrees of freedom = 2.0639
  3. Margin of error: 2.0639 × 2 = 4.1278
  4. Interval: 50 ± 4.1278 = (45.8722, 54.1278)

Formula

x̄ ± t* · s ÷ √n   or   x̄ ± z* · σ ÷ √n

Common z* values: 1.645 (90%), 1.960 (95%), 2.576 (99%). t* depends on the degrees of freedom n − 1 — see the t table.

What 95% confidence means

If you repeated the sampling many times, about 95% of intervals built this way would contain the true mean. It does not mean there is a 95% chance the true mean is in this particular interval. Larger samples give narrower intervals.

Frequently asked questions

How do you calculate a confidence interval?

Mean ± critical value × standard error, where SE = s ÷ √n.

When should I use t instead of z?

When the population standard deviation is unknown and estimated by the sample SD.

What is the margin of error?

The ± part: critical value × standard error.

Last reviewed November 2026. Results are rounded to 4 decimal places; all math runs in your browser.