Free online variance calculator
Variance measures how far a set of numbers spreads out from their mean. This calculator gives population or sample variance, standard deviation, median, mode, and range.
Saved to favorites
Your favorites live on the home page, under Your favorites. They're saved only on this device & browser — open the site on your phone or in another browser and you won't see them there. No account, no server.
How to use
- Type or paste your numbers into the text box — commas, spaces, semicolons, and line breaks all work.
- Choose Sample (the default) or Population depending on your data.
- Variance, standard deviation, mean, median, mode, and range update instantly.
- Click “Share with my numbers” to copy a URL that restores your data.
Formulas
Population variance:
σ² = Σ(xᵢ − μ)² / n
Sample variance:
s² = Σ(xᵢ − x̄)² / (n − 1)
Standard deviation: square root of the variance.
Where:
- μ (or x̄) = mean
- n = count of values
- Σ(xᵢ − μ)² = sum of squared deviations from the mean
Worked example
Data: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8)
- Mean = 40 / 8 = 5
- Squared deviations: (2−5)²=9, (4−5)²=1 × 3, (5−5)²=0 × 2, (7−5)²=4, (9−5)²=16
- Sum of squared deviations = 9 + 3 + 0 + 4 + 16 = 32
- Population variance σ² = 32 / 8 = 4 → σ = 2
- Sample variance s² = 32 / 7 ≈ 4.5714 → s ≈ 2.138
Notes
- Sample variance requires at least 2 values; population variance works with 1 or more.
- Mode shows all values tied for the highest frequency. If no value repeats, mode is listed as “None.”
- Results are rounded to 8 significant figures.
Frequently asked
What is variance?
What is the difference between population and sample variance?
When should I use population vs. sample variance?
What is standard deviation?
Why does sample variance use n − 1?
How do I enter my numbers?
Related calculators
- Standard deviation calculator
Population σ and sample s standard deviation, variance, and mean from a list of numbers.
- Average calculator
Mean, median, mode, range, min, max, and sum for any list of numbers.
- Range and IQR calculator
Min, max, range, quartiles Q1–Q3, IQR, and outliers for any data set.
- Percentage calculator
Find a percentage of a number, or work backwards to the whole.