Statistics Calculator
Calculate mean, median, mode, standard deviation, and variance for a dataset.
Statistics Calculator
Find the mean, median, mode, spread, quartiles, and outliers in a dataset. Choose whether your values are a full population or a sample.
Enter up to 10,000 finite numbers separated by commas, spaces, or newlines. Decimal and scientific notation are supported.
Results · sample
5 observations · values are calculated locally
- Count (n)
- 5
- Sum (Σx)
- 150
- Mean
- 30
- Median
- 30
- Mode
- No mode
- Range
- 40
- Minimum
- 10
- Maximum
- 50
- Variance (s²)
- 250
- Standard deviation (s)
- 15.8113883
- First quartile (Q1)
- 15
- Third quartile (Q3)
- 45
- Interquartile range (IQR)
- 30
- Lower outlier fence
- -30
- Upper outlier fence
- 90
- Outliers
- None
Sample variance divides squared deviations by n − 1. Quartiles use the median of each half, excluding the overall median when the dataset has an odd number of values. Outlier fences are Q1 − 1.5 × IQR and Q3 + 1.5 × IQR.
How these statistics are calculated
The mean is the sum divided by the count. The median is the center value after sorting. Variance is the average squared distance from the mean; population variance divides by N, while sample variance uses n − 1. Standard deviation is the square root of variance. Q1 and Q3 are the medians of the lower and upper halves, and values outside the 1.5 × IQR fences are listed as outliers.
Frequently asked questions
When should I choose sample or population?
Choose population when your data includes every member you want to describe. Choose sample when the observations represent a larger group; its variance divides by n − 1.
How does this calculator find quartiles?
It sorts the observations, then takes the median of each half. For an odd-sized dataset, the overall median is excluded from both halves.
What counts as an outlier here?
A value below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR is listed as an outlier. This rule flags unusual values for review; it does not prove that a value is an error.
Is my data sent or saved?
The statistics are calculated in your browser. The entered values are not saved by this calculator.