- Home
- Statistics
- Statistics calculator
Statistics calculator
Paste or type a list of numbers to see its descriptive statistics at once: center, spread, quartiles, outliers and a box plot.
Your favorites show up first on the home page and under the star at the top (on this browser).
What each number means
- Mean: the sum divided by the count.
- Median: the middle value once sorted (with an even count, the mean of the two middle ones).
- Mode: the value or values that repeat most; if nothing repeats, there is none.
- Quartiles: Q1 leaves a quarter of the data below it and Q3 three quarters; the interquartile range (IQR) is Q3 − Q1.
- Variance and standard deviation: how spread out the data are around the mean (sample: divided by n − 1; population: by n).
- Standard error of the mean: the sample standard deviation divided by √n.
- Coefficient of variation: the sample standard deviation as a percentage of the mean.
How the quartiles are calculated
There are several ways to calculate quartiles, and they can give slightly different results with small data sets. This calculator uses the inclusive method: the value at position (n − 1) × p in the sorted list, interpolating between neighbours. It's the one used by Excel's QUARTILE.INC and by default in R and NumPy. With 2, 4, 4, 4, 5, 5, 7, 9: Q1 = 4 and Q3 = 5.5.
Outliers and the box plot
A value counts as an outlier when it's more than 1.5 × IQR below Q1 or above Q3: these limits are called the inner fences. In the example data (12, 15, 11, 18, 14, 15, 21, 13, 16, 45), Q1 = 13.25, Q3 = 17.5 and the IQR is 4.25, so the fences are 6.875 and 23.875: 45 is an outlier.
Accuracy
The sums are compensated and the variance is calculated in two corrected passes, so long or nearly equal values don't lose digits. The results are checked against the certified values of the NIST Statistical Reference Datasets.
Frequently asked questions
What's the difference between sample and population standard deviation?
The sample one divides the sum of squares by n − 1 and the population one by n. Use the sample one when your data are a sample of something larger, and the population one when you have every value.
Why don't my quartiles match my textbook?
Because there are several methods. This one is the inclusive method (Excel QUARTILE.INC); some books use the median of each half, which can give a different Q1 and Q3 with few data.
Can I paste a column from Excel or Google Sheets?
Yes: each line is read as a value. Anything that isn't a number is listed so you can fix it.
Is there a limit on how many numbers?
No fixed limit: it runs in your browser and handles thousands of values without trouble.