Standard Deviation Calculator Formula
Understand the math behind the standard deviation calculator. Each variable explained with a worked example.
Formulas Used
Std Dev
std_dev = sqrt(((a - mean_val)^2 + (b - mean_val)^2 + (c - mean_val)^2) / 3)Std Dev Sample
std_dev_sample = sqrt(((a - mean_val)^2 + (b - mean_val)^2 + (c - mean_val)^2) / 2)Variance Pop
variance_pop = ((a - mean_val)^2 + (b - mean_val)^2 + (c - mean_val)^2) / 3Mean
mean = mean_valVariables
| Variable | Description | Default |
|---|---|---|
a | Value 1 | 10 |
b | Value 2 | 20 |
c | Value 3 | 30 |
mean_val | Derived value= (a + b + c) / 3 | calculated |
How It Works
How to Calculate Standard Deviation
Formula (Population)
σ = √[ Σ(xᵢ - μ)² / N ]
Steps
1. Find the mean (μ) of the data set 2. Subtract the mean from each value and square the result 3. Find the average of those squared differences 4. Take the square root
For a sample standard deviation, divide by (N-1) instead of N.
Worked Example
Find the standard deviation of 10, 20, and 30.
a = 10b = 20c = 30
- 01Mean = (10 + 20 + 30) / 3 = 20
- 02Squared differences: (10-20)² = 100, (20-20)² = 0, (30-20)² = 100
- 03Variance (population) = (100 + 0 + 100) / 3 = 66.6667
- 04Standard Deviation = √66.6667 ≈ 8.1650
Ready to run the numbers?
Open Standard Deviation Calculator