Part of the Maths & Statistics suite · 235 calculators

Confidence Interval Calculator

A confidence interval for a mean from the sample mean, standard deviation and size — with the standard error and margin of error shown.

The interval is x̄ ± z × s ÷ √n.

Results update as you type
Results
Confidence interval
69.7825 to 74.2175
Standard error (s/√n)
Margin of error
z
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the national curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About confidence interval

How the confidence interval calculator works

The interval is x̄ ± z × s ÷ √n. The standard error s ÷ √n shrinks with the square root of the sample size, so four times the data halves the interval. For samples under 30 the t-distribution gives a slightly wider interval; the calculator uses z and says so.

Formula: CI = x̄ ± z · s / √n

Worked examples

InputsConfidence intervalNote
mean 72, s 8, n 50, 95%69.7825 to 74.217569.78 to 74.22
n 20070.8913 to 73.1087half as wide
99%69.0858 to 74.9142wider

Frequently asked questions

What does 95% confidence mean?

If you repeated the sampling many times, 95% of the intervals built this way would contain the true mean.

How do I make the interval narrower?

Collect more data (width falls with √n), accept lower confidence, or reduce variability.

When should I use t instead of z?

For small samples (under about 30) when the population SD is unknown; the difference fades as n grows.

Is this the same as a margin of error in a poll?

The same idea for a proportion: ±z√(p(1−p)/n).

Does a 95% interval contain 95% of the data?

No — it is about where the mean is, not the spread of individual values.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.