Sumfinder All calculators

Math & Everyday

Confidence Interval Calculator

The margin of error around a sample mean, from the sample’s spread.

A survey gives an average, but the average from a sample is never exactly the group’s average. A confidence interval puts a margin around it, using the sample’s spread and size, so the answer reads as “about this, give or take that” instead of one over-precise number.

How this is worked out

The margin of error is z × the standard deviation ÷ √n. For a mean of 100, a standard deviation of 15 and 25 measurements at 95%, that is 1.96 × 15 ÷ 5 = 5.88, so the interval runs from 94.12 to 105.88. A larger sample shrinks the margin, because the margin divides by the square root of n.

Good to know

  • Say the confidence level as well as the interval — “95%, give or take 5.9” — or the number means less.
  • Fewer than about 30 measurements need a t value rather than these z values. The page says so rather than pretending.
  • A wider interval is more cautious, not worse. 99% is wider than 95% for the same data.

What this assumes

  • The sample is a random sample of a larger group, and the sample average is the best estimate of the group’s average.
  • The sample is large enough (roughly 30 or more) for the usual z values to be the right ones.
  • The z values used are the common table ones: 1.645 for 90%, 1.96 for 95% and 2.576 for 99%.

Common questions

What does a 95% confidence interval mean?

If the same sample were taken many times, about 95% of the intervals built this way would contain the true average. It is a statement about the method, not a 95% chance for this one interval.

Why does a bigger sample make the interval narrower?

The margin divides by the square root of the sample size. Four times as many measurements halve the margin, so a bigger sample gives a tighter estimate.

Estimate only. Figures come from the numbers you enter and the standard rates shown on the page. Check anything that matters against the official figure before you rely on it.