CalcuDay
  1. Home
  2. Math, Study & Kitchen
  3. 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.

Your numbers

Results

Share
Mean (average)81.5n = 12 values
Sample standard deviation s9.15variance 83.73
Confidence interval for the mean± 5.8175.69 to 87.31
Median82.5range 66 – 95

Results

Every value, with the mean and confidence band
mean 81.56695shaded: 95 % interval · dashed: ±1 SD
Histogram (count per bin)
All statistics
StatisticValue
Count n12
Sum978
Mean81.5
Median82.5
Minimum66
Maximum95
Range29
1st quartile Q175.75
3rd quartile Q388.5
Interquartile range12.75
Sample variance s²83.73
Sample standard deviation s9.15
Population variance σ²76.75
Population standard deviation σ8.76
Standard error of the mean2.64
t critical value2.2
Interval lower bound75.69
Interval upper bound87.31
Coefficient of variation (%)11.23

How to use it

  1. 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.
  2. Choose whether the numbers are a sample (most cases: a survey, a test group, a few measurements) or the entire population you care about.
  3. 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.