Statistics Calculator
Enter numbers separated by commas, spaces or new lines to see their mean, median, mode and spread.
Result
- Median
- 4.5
- Mode
- 4
- Count
- 8
- Sum
- 40
- Minimum
- 2
- Maximum
- 9
- Range
- 7
- Sample standard deviation (s)
- 2.13809
- Population standard deviation (σ)
- 2
- Sample variance (s²)
- 4.571429
- Population variance (σ²)
- 4
How to use the statistics calculator
Type or paste your numbers, separated by commas, spaces, semicolons or new lines. The results update as you type and include the mean, median, mode, count, sum, minimum, maximum, range, variance and standard deviation.
Formulas
- Mean = sum ÷ n
- Median = middle value of the sorted list (average of the two middle values when n is even)
- Population variance σ² = Σ(x − mean)² ÷ n
- Sample variance s² = Σ(x − mean)² ÷ (n − 1)
- Standard deviation = square root of the variance
Worked example
For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 40 ÷ 8 = 5. The squared deviations add up to 32, so the population variance is 4 and σ = 2. The sample variance is 32 ÷ 7 = 4.571 and s = 2.138.
Limits
- Numbers must use a dot as the decimal mark, and thousands separators are not accepted.
- The sample standard deviation needs at least two values.
- Very large or tiny values are limited by normal floating-point precision.
Frequently asked questions
Should I use the sample or the population standard deviation?
Use the population formula when your numbers are the whole group you care about. Use the sample formula when they are a sample from a larger group. The sample version divides by n − 1, which corrects for the bias of estimating the mean from the same data.
What if there are two or more modes?
All values that share the highest count are listed. If every value appears once, the data set has no mode.
How is the median found with an even number of values?
The values are sorted and the two middle ones are averaged. For 4, 5, 7, 9 the median is (5 + 7) ÷ 2 = 6.
Sources and methodology
Last reviewed 2026-12-04