📈 Statistics Calculator
Enter numbers to instantly compute mean, median, mode, quartiles, IQR, standard deviation, variance, and more — separated by commas, spaces, or new lines.
Commas, spaces, or new lines. Decimals (3.14) and negatives (−5) are supported.
invalid values skipped:
Ctrl+Enter to calculate
Box Plot (Five-Number Summary)
IQR:Q1
Med
Q3
Max
📐
Mean
Sum of all values divided by count
📍
Median
Middle value when data is sorted
🔁
Mode
Most frequently occurring value(s)
📏
Std Dev
Spread of data around the mean
⬇️
Min / Max
Smallest and largest values
📊
Quartiles
Q1, Q2, Q3 and IQR (box plot)
📉
Variance
Square of the standard deviation
↔️
Range & IQR
max−min and Q3−Q1 spread
〰️
Skewness
Symmetry of the distribution
📈
CV %
Relative variability as a percentage
Related Calculators
The formulas behind each statistic
Spread is reported using the sample formulas. Sample variance is s squared = sum of (x - x-bar) squared, divided by (n - 1), and sample standard deviation is the square root of that. The (n - 1) divisor, known as Bessel's correction, keeps the estimate unbiased when your numbers are a sample drawn from a larger population.
Quartiles use linear interpolation at position p x (n - 1) in the sorted list, the same method as the spreadsheet function PERCENTILE.INC and the default in NumPy. The interquartile range is simply Q3 minus Q1, and range is maximum minus minimum.
Worked example with six values
For the quartiles, Q1 sits at position 0.25 x (6 - 1) = 1.25 in the zero-indexed sorted list, which is a quarter of the way from 8 to 15: 8 + 0.25 x 7 = 9.75. Q3 sits at 0.75 x 5 = 3.75, three quarters of the way from 16 to 23: 16 + 0.75 x 7 = 21.25. The interquartile range is 21.25 - 9.75 = 11.5.
For variance, the squared deviations from the mean of 18 are 196, 100, 9, 4, 25 and 576, summing to 910. Sample variance is 910 / 5 = 182, and sample standard deviation is the square root of 182, about 13.49. No value repeats, so there is no mode.
Reading the results and avoiding common errors
Use the interquartile range to test for outliers. The standard fences are Q1 - 1.5 x IQR and Q3 + 1.5 x IQR, which here give -7.5 and 38.5. The value 42 falls outside the upper fence, so it qualifies as an outlier by that convention and is worth investigating before you report the mean.
The most frequent mistake is mixing up sample and population statistics. This tool divides by (n - 1), which is correct when your numbers are a sample. If your list is the entire population, multiply the variance by (n - 1) / n to convert it. Also check for a mode of none: with continuous measurements, no value repeating is normal and does not signal a problem.