Confidence Interval Calculator for a Mean
By FindMySum · Last reviewed
A confidence interval calculator turns a sample into a range for the quantity you really care about: the mean of the whole population. A sample mean on its own is a single best guess that will almost never be exactly right. The interval adds an honest margin around it, sized by how much the data vary, how many observations you have and how confident you need to be.
Worked example
You measure 50 items and find a mean of 100 with a standard deviation of 15, and you want 95% confidence.
- Standard error of the mean: SE = σ ÷ √n = 15 ÷ √50 = 2.1213.
- Critical value for 95%: z = 1.96.
- Margin of error: 1.96 × 2.1213 = 4.1577.
- Interval: 100 ± 4.1577, that is 95.8423 to 104.1577.
So the population mean is plausibly anywhere from about 95.8 to 104.2. Report it as "100 (95% CI 95.8 to 104.2)".
Reading and using the interval
An interval that excludes a value is evidence against that value at the matching significance level: this one excludes 105, so a two-sided test of mean = 105 would reject it at 5%. Two intervals that do not overlap point to a real difference, but overlapping intervals do not prove there is none.
The result is only as good as the sample. A confidence interval accounts for random sampling error, not for bias from who was measured or how. To plan how many observations you need before you start, use the sample size calculator; for z-scores and p-values, the z-score calculator.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.