Mean, Median, Variance & Standard Deviation Calculator
Paste any list of numbers to compute mean, median, sample/population variance, standard deviation, and a live histogram.
Input Parameters
ℹ️ Format: 2+ numbers separated by commas, spaces, or new lines · e.g. 12, 15, 18, 21, 24
Numbers Dataset (comma / space / brackets OK)
Sample Std Dev (s)
6.3189
Population Std Dev (σ)
5.9108
Median
19.5
Sample Variance (s²)
39.9286
Min ~ Max
12 ~ 31
Formula & Step-by-Step Calculation
x̄ = (1/n)∑xᵢ, s = √(∑(xᵢ − x̄)² / (n − 1))
-
1
Calculate arithmetic mean
Sum = 166, n = 8 → Mean x̄ = 20.75 -
2
Sum squared deviations from mean
∑(xᵢ − x̄)² = 279.5 -
3
Calculate sample & population std dev
Sample s = √(279.5 / 7) = 6.3189, Population σ = 5.9108
Worked Example
Sample inputs and verified result: Enter or paste numbers = 12, 15, 18, 18, 21, 24, 27, 31
Mean (x̄): 20.75 (n = 8)
Frequently Asked Questions
When should I use sample (s) vs population (σ) standard deviation?
Use sample standard deviation (dividing by n − 1) when your numbers are a sample from a larger group, and population σ (dividing by n) when you have the entire dataset.