This tool draws a confidence interval for one sample mean and shows the numbers behind the picture. You enter the sample mean, the standard deviation, and the sample size, choose a confidence level, and the tool computes the standard error, the margin of error, and the interval, then draws it as an error bar with the mean marked in red. A 95 percent confidence interval is often misread as “there is a 95 percent chance the true mean is inside this interval.” The correct reading is about the procedure: if you repeated the study many times, about 95 percent of the intervals built this way would contain the true mean. This interval is one of them; whether it is one of the lucky 95 percent is unknown.
How to use it
- Enter the sample mean, standard deviation, and sample size.
- Choose the confidence level: 90, 95, or 99 percent.
- Click Draw interval.
- Read the interval and the margin of error.
- Compare intervals by widening or narrowing with different n values.
Worked example
A class of 25 students scores a mean of 100 with a standard deviation of 15. The standard error is 15 divided by the square root of 25, which is 3, and the 95 percent margin is 1.96 times 3, or 5.88. The interval is 94.12 to 105.88. Notice what quadrupling the sample to 100 would do: the standard error halves to 1.5, the margin halves to 2.94, and the interval tightens to 97.06–102.94. Precision is bought with sample size, and the price is quadratic: halving the interval width always costs four times the participants.
Honest limits
The tool uses the normal (z) approximation, which is fine for large samples but slightly narrow for small ones, where a t-based interval is wider and more honest. It also assumes a roughly normal sampling distribution: with strongly skewed data and a small sample, bootstrap intervals are safer. The interval inherits every flaw of the sample — a biased sample produces a confidently wrong interval, because the math assumes random sampling and never checks it. Always report n, the standard deviation, and the interval together; a mean without its interval hides how much you actually know.
Who it is for
This tool is for students learning what intervals mean, researchers drafting a results figure, and readers who want to see precision instead of just a point estimate. Use the graph in teaching and the numbers in writing: the picture teaches, the interval convinces.
Going further
Two intervals that overlap do not automatically mean “no significant difference,” and two that do not overlap do not automatically prove one — overlapping rules of thumb mislead in both directions, because the correct comparison needs the standard error of the difference, not two separate intervals eyeballed side by side. When you compare groups, compute the difference and its own interval instead. Also remember that a 99 percent interval is wider than a 95 percent one by design: more confidence costs width, and there is no free lunch in choosing 99 percent to sound more certain. The honest choice is to pre-specify 95 percent, report it, and let readers judge the width for themselves. A confidence interval also disciplines how you talk about results. Instead of “the treatment works,” an interval lets you say “the improvement is plausibly between 2 and 9 points” — a sentence a clinician or policymaker can actually use. When an interval includes both meaningful benefits and negligible ones, the honest conclusion is uncertainty, not failure: the study was too small to distinguish them, and the next study should be larger. Intervals turn binary thinking into graded judgment, which is precisely what decision-makers need and what p-values alone never give.
Related tools
Versión en español · ANOVA Table Helper · All free online tools.
Embed this tool on your website — free
Copy the code below to add this working tool to your own page. A small credit link stays with it — that’s all we ask.
