Variance is the average squared distance from the mean. For 2, 4, 4, 4, 5, 5, 7 and 9 the mean is 5 and the squared deviations add up to 32. The population variance is 32 ÷ 8 = 4; the sample variance divides by n − 1 instead: 32 ÷ 7 = 4.57. The standard deviation is the square root: 2 or 2.14.
My Construction Calculator
Variance Calculator
Inputs
Results update as you type.
Diagram updates as you type.
Results
Check the working before you order.
Variance (sample)
4.5714
Standard deviation
2.1381
Mean
5
Count
8
Sum of squares Σ(x − mean)²
32
Variance (population), for comparison
4
Price This optional: add your own prices
Your prices are remembered on this device only.
Send Order WhatsApp, SMS or email to your supplier
Scan to open this calculationThe code links to this calculator with your inputs, so anyone can scan it with a phone camera and see the same result. Save it for a report, a site board or WhatsApp.Test copy: this code opens the live site, myconstructioncalculator.com, so it works on a phone once the site is launched.
Results are estimates for planning and material ordering only. They are not a substitute for structural design or approval by a qualified engineer. Read the full disclaimer.
Find the mean, subtract it from each value, square each result and add them up. Divide by n for the population variance or by n − 1 for the sample variance.
What is the difference between sample and population variance?
Population variance divides by n and is used when you have every value. Sample variance divides by n − 1, which corrects for estimating the spread of a larger group from part of it.
How are variance and standard deviation related?
Standard deviation is the square root of the variance. It is in the same units as the data, so it is easier to read: a variance of 4 MPa² is a standard deviation of 2 MPa.
Can variance be negative?
No. It is a sum of squares, so it is zero when all values are equal and positive otherwise.
Why square the deviations?
So that values above and below the mean do not cancel out, and so bigger deviations count for more.
Embed This Calculator on Your Website
Free for any website: contractors, suppliers, blogs and schools. Paste this code where you want the calculator to appear. It works in WordPress (Custom HTML block), Wix, Squarespace and plain HTML.