About the Variance Calculator
This tool computes variance and related stats entirely in your browser. You paste or type numbers and results update as you type; there is no calculate button. It shows mean, sum of squared differences, count, population and sample variance, and both standard deviations. You can click Show steps to view the per-value work. You can copy results or create a share link that reopens with the same numbers. The page runs client-side after loading so your numbers do not leave your device. Students, teachers and analysts use it for quick checks, homework and class demonstrations. Results show to four decimal places by default but you can copy raw values. The tool accepts commas, spaces or new lines to separate numbers. It does not accept weighted or grouped frequency inputs and it cannot import CSV files directly.
How to use it
- 1Enter or paste your numbers separated by commas, spaces, or new lines.
- 2Choose sample (divide by n - 1) or population (divide by n) mode if needed.
- 3View mean, sum of squared differences, count, variances and standard deviations.
- 4Click Show steps to see the per-value work, or copy the results and the share link.
Worked example
Input: 2, 4, 6. Mean = 4. Sum of squared differences (SS) = 8. Count n = 3. Population variance = 8 / 3 = 2.6667. Sample variance = 8 / (3 - 1) = 4.0000. Population SD = 1.6330. Sample SD = 2.0000.
The formula
Find the mean, subtract it from each number, square each difference and add them up (the sum of squares, SS)Population variance = SS / nSample variance = SS / (n - 1); dividing by n - 1 corrects for a sample tending to sit closer to its own meanThe standard deviation is the square root of the varianceSource: NIST Dataplot: VarianceWikipedia: Variance. Last checked 6 November 2026.
What it is good for
- Runs entirely in your browser; no uploads after the page loads.
- Updates results instantly as you type; no calculate button required.
- Shows mean, SS, count, sample and population variance and both standard deviations.
- Does not accept weighted or grouped frequency input.
- No CSV import or advanced survey variance methods available.
Questions people ask
What is variance?
Variance measures the average squared distance from the mean. Population variance divides SS by N and sample variance divides SS by n minus 1.
Which should I choose: population or sample?
Choose population when your numbers represent the whole group you care about. Choose sample when your numbers are a subset and you want an unbiased estimate.
Why divide by n minus 1 for a sample?
Dividing by n minus 1, called Bessel's correction, reduces bias. It corrects underestimation because the sample mean sits closer to the sample points.
Can variance be negative?
No. Variance is the average of squared differences, so it is always zero or positive.
How many points do I need?
You need at least two values to compute a sample variance. The sample variance is undefined for n equals 1 because the denominator would be zero.
What decimal separator can I use?
The tool accepts a period as the decimal separator by default. If your locale uses commas, replace them with periods or enter values on separate lines.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.