Confidence Interval Calculator
Calculators · Added
A single sample average is a point estimate and almost certainly not the true figure. A confidence interval says how much room to leave around it. Enter your sample and this works out the interval, the margin of error, and the critical value behind both.
How to use the confidence interval calculator
- 1Choose whether you are estimating a mean or a proportion.
- 2For a mean, enter the sample mean, the sample standard deviation and the sample size — or paste the raw values and let them be worked out.
- 3For a proportion, enter how many in the sample had the characteristic, and how many were sampled.
- 4Pick a confidence level, and add the population size if you sampled a large share of a small population.
Examples
A mean from 40 measurements
- Input
- Mean 68.4, standard deviation 5.2, n = 40, at 95%
- Result
- 68.4 ± 1.66, giving 66.74 to 70.06. Standard error 0.822, critical t 2.023 on 39 degrees of freedom.
The t distribution is used rather than z, because the population standard deviation was estimated from the sample.
A proportion from a survey
- Input
- 520 of 1,000 respondents said yes, at 95%
- Result
- 52.0% ± 3.10 points, giving 48.9% to 55.1%. Critical z 1.960 — an interval that straddles half, so the survey does not establish a majority.
About the confidence interval calculator
The interval is about the method
The single most common misreading of a confidence interval is treating it as a probability statement about the true value. Under the frequentist framework these intervals come from, the true value is a fixed number rather than a random one, so it makes no sense to say there is a 95% chance it sits in a particular range. What varies between repetitions is the interval, not the target.
The reading that does work is about the recipe: a procedure that captures the truth 95% of the time was applied here. If you want a statement of the form 'given this data, there is a 95% probability the value lies between these bounds', you want a Bayesian credible interval, which is a different calculation resting on different assumptions.
What the interval does not cover
Everything on this page addresses sampling error alone — the variation you would see from drawing a different random sample of the same size from the same population. That is the only source of uncertainty the arithmetic knows about.
It says nothing about a sampling frame that missed part of the population, a question worded so that people answer a different one, respondents who declined in a pattern related to the answer, or a measuring instrument reading consistently high. Those are biases, not noise: they shift the centre of the interval rather than widening it, and no sample size fixes them. A tight interval around a biased estimate is a precise wrong answer.
Frequently asked questions
What does 95% confidence actually mean?
Why does it use t for a mean and z for a proportion?
When is a proportion interval not trustworthy?
What is the finite population correction for?
How do I make the interval narrower?
Related tools
Sample Size Calculator
Calculators
How many people to survey for a given margin of error and confidence level.
Standard Deviation Calculator
Calculators
Calculate sample or population standard deviation with the full working shown.
Z-Score Calculator
Calculators
Convert between a value, its z-score, its percentile and the tail probabilities, in either direction.