Statistics Calculator

Summarize the center, spread and shape of a data set, with quartiles, an outlier check and a histogram.

Separate numbers with commas, spaces or line breaks. Up to 10,000 values, each within ±10⁵⁰; every entry must be valid.

Treat data as

Mean

26.3

n = 20 · SD 3.628832 · median 26

  • Count · Sum20 · 526
  • Mean · Median · Mode26.3 · 26 · 25
  • Geometric mean · RMS26.06134 · 26.53677
  • Min · Max · Range20 · 33 · 13
  • Q1 · Q3 · IQR23.75 · 29 · 5.25
  • Variance (sample)13.168421
  • Standard deviation (sample)3.628832
  • Standard error of the mean0.811431
  • Coefficient of variation13.798%
  • Skewness · Excess kurtosis0.1314 · -0.8143
  • Outliers (1.5 × IQR rule)none

How this was calculated

Sorted: 20, 21, 22, 23, 23, 24, 25, 25, 25, 26, 26, 27, 27, 28, 29, 29, 30, 31, 32, 33

Variance = Σ(x − mean)² ÷ (n − 1); SD = √variance; SEM = SD ÷ √n.

Quartiles by linear interpolation (type 7); outlier fences at Q1 − 1.5·IQR = 15.875 and Q3 + 1.5·IQR = 36.875.

012345620–22.622.6–25.225.2–27.827.8–30.430.4–33
  • Count

 

Sample and population spread

Variance averages squared deviations from the mean. Population variance divides their sum by n; sample variance divides by n − 1. Standard deviation is the square root of variance and uses the original measurement units.

Choose population when the data is the whole group you want to describe. Choose sample when it is used to estimate a larger group. The displayed standard error is the selected standard deviation divided by √n; interpreting it as uncertainty in a mean also needs appropriate sampling assumptions.

Example: 2, 4, 4, 4, 5, 5, 7, 9

The mean is 5, median 4.5 and mode 4. Squared deviations sum to 32. Population variance is 32 ÷ 8 = 4 and population standard deviation is 2. Sample variance is 32 ÷ 7 ≈ 4.571429 and sample standard deviation is about 2.13809.

Using type-7 linear interpolation, Q1 = 4 and Q3 = 5.5, so IQR = 1.5. The 1.5 × IQR fences are 1.75 and 7.75. The value 9 is flagged; a flag calls for investigation, not automatic deletion.

Quartiles, shape and limits

Quartiles interpolate at positions (n − 1)p in the sorted data, counting positions from zero. Other quartile conventions can give different answers for small data sets. Skewness and excess kurtosis use population central moments; they are undefined when there is no spread.

The geometric mean is shown only when all observations are positive. A coefficient of variation is meaningful for a ratio scale with a meaningful zero; avoid interpreting it for negative means or arbitrary origins such as Celsius temperature.

Enter 2–10,000 valid observations, each within ±10⁵⁰. Commas separate observations rather than thousands. Invalid tokens are rejected. Histogram bins are a visual summary and do not change the underlying statistics.

Frequently asked questions

Why do my quartiles differ from a spreadsheet?

Programs offer several quantile conventions. This calculator uses type-7 linear interpolation with inclusive endpoints. Compare the method as well as the data.

Is an outlier necessarily an error?

No. The 1.5 × IQR rule flags unusual observations. A value may be valid and important; check measurement quality and context before excluding it.

Last updated . Results are estimates for informational purposes only.