- Home
- Math, Study & Kitchen
- Standard Deviation & Confidence Interval
Standard Deviation & Confidence Interval Calculator
Two classes can share the same average and still look nothing alike. Paste your numbers to see how far they spread, and how precisely they pin down the true mean.
Results
Your current result is saved as scenario A. Change any input to see scenario B next to it.
Results
All statistics
| Statistic | Value |
|---|---|
| Count n | 12 |
| Sum | 978 |
| Mean | 81.5 |
| Median | 82.5 |
| Minimum | 66 |
| Maximum | 95 |
| Range | 29 |
| 1st quartile Q1 | 75.75 |
| 3rd quartile Q3 | 88.5 |
| Interquartile range | 12.75 |
| Sample variance s² | 83.73 |
| Sample standard deviation s | 9.15 |
| Population variance σ² | 76.75 |
| Population standard deviation σ | 8.76 |
| Standard error of the mean | 2.64 |
| t critical value | 2.2 |
| Interval lower bound | 75.69 |
| Interval upper bound | 87.31 |
| Coefficient of variation (%) | 11.23 |
How to use it
- Paste or type your values into the box. Spaces, line breaks and semicolons all work as separators, so a column copied from a spreadsheet is fine.
- Choose whether the numbers are a sample (most cases: a survey, a test group, a few measurements) or the entire population you care about.
- Pick a confidence level. The cards show mean, standard deviation, the interval and the median; the dot plot, histogram and full table sit below.
The math behind it
The interval uses Student's t distribution, which widens the margin for small samples:
mean x̄ = Σx ÷ n sample SD s = √( Σ(x − x̄)² ÷ (n − 1) ) population SD σ = √( Σ(x − x̄)² ÷ n ) standard error SE = s ÷ √n interval x̄ ± t(1 − α/2, n − 1) × SE
Quartiles use linear interpolation between sorted values, the method Excel's QUARTILE.INC and most textbooks use.
Example: one class, twelve test scores
A teacher enters 72, 85, 90, 66, 78, 88, 95, 70, 81, 84, 77, 92. The mean is 81.5 and the median 82.5, so the scores lean only slightly to the low side.
The sample standard deviation is 9.15 points, which means a typical score sits about nine points from the average. Dividing by √12 gives a standard error of 2.64.
With 11 degrees of freedom the 95 % t value is 2.201, so the margin is ± 5.81 and the interval runs from 75.7 to 87.3. At 99 % it widens to 73.3–89.7; at 90 % it narrows to 76.8–86.2. The histogram shows most scores between 70 and 90 with no outliers.
Tips
- Use the sample setting unless you really measured every member of the group. Dividing by n − 1 corrects the small bias that comes from estimating the mean from the same data.
- To halve the margin of error you need roughly four times as many values, because it shrinks with √n.
- Check the dot plot for a single extreme value before you trust the mean. When one point drags it away, report the median and IQR instead.
FAQ
What does a 95 % confidence interval actually mean?
If you repeated the sampling many times, about 95 % of the intervals built this way would contain the true mean. It is not a 95 % chance for this one interval.
Why does the interval use t instead of 1.96?
The true spread is unknown and estimated from the data. The t distribution accounts for that extra uncertainty; with 30+ values it is close to 1.96 anyway.
Can I paste numbers with decimal commas?
Yes. "1,5" is read as 1.5. Separate values with spaces or semicolons, not commas, when they have decimals.
Results are estimates for planning only and are not financial, legal or engineering advice.