UseCalcPro
Home
MathFinanceHealthConstructionAutoPetsGardenCraftsFood & BrewingToolsSportsMarineEducationTravel
Blog
  1. Home
  2. Math

Standard Deviation Calculator

Calculate standard deviation, variance, and spread for any data set

Sample Std Dev (s)

2.1213

Mean

6.2500

Variance

4.5000

Count

8

Need at least 2 values. Separate with commas or spaces.

Use Sample when data is a subset of a larger population (divides by n−1). Use Population when data represents the entire population (divides by N).

Sample Standard Deviation (s)

2.1213

Sample (s)

2.1213

Population (σ)

1.9843

Detailed Statistics

Sample Variance4.5000
Mean (μ)6.2500
Sum50.00
Σ(x−μ)²31.5000
Count (n)8
CV (%)33.94%

Formulas Used

Population Standard Deviation

σ = √[Σ(xᵢ − μ)² / N]

Square root of the average squared deviation from the mean. Used when you have data for every member of the population.

Where:

σ= Population standard deviation
xᵢ= Each individual data value
μ= Population mean (average of all values)
N= Total number of values in the population

Sample Standard Deviation

s = √[Σ(xᵢ − x̄)² / (n − 1)]

Same as population formula but divides by n−1 instead of N. This Bessel’s correction removes bias when estimating population variance from a sample.

Where:

s= Sample standard deviation
xᵢ= Each individual data value
x̄= Sample mean
n= Number of values in the sample

Coefficient of Variation

CV = (σ / |μ|) × 100%

The ratio of standard deviation to the mean, expressed as a percentage. Provides a normalized measure of dispersion.

Where:

CV= Coefficient of variation (percentage)
σ= Standard deviation
μ= Mean (absolute value)

Example Calculations

1Standard Deviation of Test Scores

Inputs

Numbers4, 8, 6, 5, 3, 7, 8, 9
TypeSample

Result

Sample Std Dev (s)2.1213
Population Std Dev (σ)1.9843
Mean6.25
Sample Variance4.5

Mean = (4+8+6+5+3+7+8+9)/8 = 50/8 = 6.25. Squared deviations: 5.0625, 3.0625, 0.0625, 1.5625, 10.5625, 0.5625, 3.0625, 7.5625. Sum = 31.5. Sample variance = 31.5/7 = 4.5. Sample s = √4.5 = 2.1213.

2Population Standard Deviation

Inputs

Numbers2, 4, 6
TypePopulation

Result

Population Std Dev (σ)1.6330
Variance2.6667
Mean4

Mean = (2+4+6)/3 = 4. Deviations: −2, 0, 2. Squared: 4, 0, 4. Sum = 8. Population variance = 8/3 = 2.6667. σ = √2.6667 = 1.6330.

3Comparing Variability with CV

Inputs

Numbers100, 110, 90, 105, 95
TypeSample

Result

Sample Std Dev (s)7.9057
Mean100
CV7.91%

Mean = 500/5 = 100. Deviations: 0, 10, −10, 5, −5. Squared: 0, 100, 100, 25, 25. Sum = 250. Sample variance = 250/4 = 62.5. s = √62.5 = 7.9057. CV = 7.9057/100 × 100% = 7.91%.

Frequently Asked Questions

Q

What is standard deviation and what does it measure?

Standard deviation measures how spread out values are from the mean. A low standard deviation means data points cluster near the mean. A high standard deviation means data is widely spread. For example, {4, 5, 6} has a low σ of 0.82, while {1, 5, 9} has a high σ of 3.27.

  • Low σ: data clusters tightly around the mean
  • High σ: data is widely dispersed
  • σ = 0: all values are identical
  • 68% of data falls within ±1σ of the mean (normal distribution)
  • 95% of data falls within ±2σ of the mean
Data SetMeanStd Dev (σ)Spread
4, 5, 650.82Low
2, 5, 852.45Medium
1, 5, 953.27High
5, 5, 550None
Q

What is the difference between population and sample standard deviation?

Population std dev (σ) divides by N (total count) and is used when you have every member of the group. Sample std dev (s) divides by n−1 (Bessel’s correction) and is used when your data is a subset of a larger population. Sample gives a slightly larger value to correct for estimation bias.

  • Population (σ): divide by N, used for complete data sets
  • Sample (s): divide by n−1, used for subsets of data
  • Bessel’s correction: n−1 removes bias in estimation
  • For large n, the difference becomes negligible
  • When in doubt, use sample (s) — it is the safer choice
TypeDivisorSymbolWhen to Use
PopulationNσAll members measured (census, full class)
Samplen−1sSubset of population (survey, experiment)
Q

How do I calculate standard deviation step by step?

Step 1: Find the mean (μ = sum/n). Step 2: Subtract the mean from each value (xᵢ − μ). Step 3: Square each deviation. Step 4: Sum the squared deviations. Step 5: Divide by N (population) or n−1 (sample). Step 6: Take the square root.

  • Step 1: Mean = sum of values / count
  • Step 2: Deviations = each value minus the mean
  • Step 3: Square each deviation (removes negatives)
  • Step 4: Sum of squared deviations = Σ(xᵢ−μ)²
  • Step 5: Divide by N or n−1, then take square root
StepData: {2, 4, 6}Values
Mean(2+4+6)/34
Deviations2−4, 4−4, 6−4−2, 0, 2
Squared4, 0, 4Sum = 8
σ√(8/3)1.633
s√(8/2)2
Q

What is variance and how does it relate to standard deviation?

Variance is the square of standard deviation: σ² = variance, σ = √(variance). Variance measures spread in squared units, which makes it harder to interpret but mathematically convenient. Standard deviation returns to the original units by taking the square root.

  • Variance = σ² (squared standard deviation)
  • Standard deviation = √(variance)
  • Variance is always ≥ 0
  • Variance uses squared units (e.g., dollars²)
  • Std dev uses original units (e.g., dollars)
Data SetVariance (σ²)Std Dev (σ)Units Example
4, 5, 60.6670.816±$0.82
10, 20, 3066.678.165±8.17 cm
100, 200, 3006666.781.65±$81.65
Q

What is the coefficient of variation (CV)?

The coefficient of variation (CV) is the standard deviation divided by the mean, expressed as a percentage: CV = (σ/μ) × 100%. It allows comparison of variability between data sets with different units or scales. A CV below 15% indicates low variability.

  • Formula: CV = (σ / |μ|) × 100%
  • Unitless: allows cross-dataset comparison
  • CV < 15%: low variability
  • CV 15–30%: moderate variability
  • CV > 30%: high variability
Data SetMeanStd DevCV
Heights (cm)1706.53.8%
Weights (kg)701217.1%
Test Scores8589.4%

Understanding Standard Deviation and Variance

1

What Standard Deviation Measures

The data sets {4,5,6} and {1,5,9} both have a mean of 5, but their standard deviations are 0.82 and 3.27 respectively. Standard deviation quantifies this difference: how far, on average, values deviate from the mean. A σ of 0 means all values are identical, while a high σ means data is widely dispersed.

In a normal distribution, the 68-95-99.7 rule maps standard deviations to data coverage: 68.27% of values fall within ±1σ of the mean, 95.45% within ±2σ, and 99.73% within ±3σ. An exam with mean 75 and σ = 10 means approximately 68% of students scored between 65 and 85. Values beyond 3σ (below 45 or above 105) are statistical outliers occurring in only 0.27% of cases.

Standard deviation uses the original units of measurement (dollars, centimeters, points), unlike variance which uses squared units. This makes σ directly interpretable: "±$8.50" is immediately meaningful whereas "72.25 dollars²" requires mental conversion. The Z-Score Calculator standardizes values using exactly this relationship: z = (x − μ) / σ.

Identical means but different dispersions produce different standard deviations
Data SetMeanPop. σSample sCV
4, 5, 650.8161.00016.3%
2, 5, 852.4493.00049.0%
1, 5, 953.2664.00065.3%
5, 5, 55000%
2

Population vs. Sample Standard Deviation

Population standard deviation (σ) divides by N, the total count. Sample standard deviation (s) divides by n−1, known as Bessel’s correction. For {2, 4, 6}: mean = 4, squared deviations = {4, 0, 4}, sum = 8. Population: σ = √(8/3) = 1.633. Sample: s = √(8/2) = 2.000. The sample value is 22.5% larger.

Bessel’s correction compensates for a systematic bias. When you estimate the population mean from a sample, the sample mean is closer to the data points than the true population mean, making the squared deviations systematically too small. Dividing by n−1 instead of n corrects for this underestimation. For large n, the difference becomes negligible: at n = 30, the correction is 3.4%; at n = 100, it is 1.0%.

When to use which: use σ when you have measured every member of the population (all students in a class, all widgets in a batch). Use s when your data is a subset of a larger group (a survey of 500 voters from millions, a sample of 50 products from a production run). When in doubt, use s — it is the conservative choice. The Statistics Calculator can compute additional measures like median, mode, and percentiles alongside standard deviation.

Population (σ) vs. Sample (s) ComparisonPopulation (σ)Divide by Nσ = √[Σ(xᵢ−μ)² / N]Use for: entire populationSample (s)Divide by n−1s = √[Σ(xᵢ−x̄)² / (n−1)]Use for: subset/sampleExample: Data = {2, 4, 6}σ = √(8/3) = 1.633s = √(8/2) = 2.000Difference: s is 22.5% larger than σPopulation (N)Sample (n−1)
3

Coefficient of Variation: Comparing Across Scales

The coefficient of variation CV = (σ/μ) × 100% normalizes dispersion by the mean, enabling comparison across different units and scales. Heights (mean 170 cm, σ = 6.5 cm, CV = 3.8%) are far less variable than incomes (mean $60,000, σ = $25,000, CV = 41.7%) despite income having a much larger absolute standard deviation.

Quality control uses CV thresholds: CV below 15% indicates acceptable consistency in manufacturing, 15–30% signals moderate variability worth investigating, and above 30% typically triggers process improvement. Pharmaceutical regulations often specify CV limits: USP standards for tablet content uniformity require CV below 6% for the first 10 tablets tested.

In finance, CV measures risk per unit of return. An investment with 12% expected return and 8% σ (CV = 66.7%) carries more relative risk than one with 5% return and 2% σ (CV = 40%). Portfolio theory uses standard deviation and covariance matrices to optimize risk-return tradeoffs — the foundation of modern asset allocation. The Percentage Calculator converts between absolute and relative variation measures.

68-95-99.7 Rule (Normal Distribution)μ−1σ+1σ−2σ+2σ68.27%95.45%±1σ = 68.27%±2σ = 95.45%
CV enables comparison of variability across different measurement scales
ApplicationMeanσCVInterpretation
Human heights170 cm6.5 cm3.8%Very consistent
Test scores751216%Moderate spread
Stock returns8%15%187.5%Highly volatile
Machine parts10.00 mm0.02 mm0.2%Precision mfg

Related Calculators

Average Calculator

Calculate arithmetic, geometric, harmonic means and more

Statistics Calculator

Complete descriptive statistics and data analysis

Percent Calculator

Calculate percentages, increases, and decreases

Probability Calculator

Calculate odds and probability distributions

Z-Score Calculator

Calculate z-scores, percentiles, and probabilities from the standard normal distribution. Enter a value, mean, and standard deviation for instant results.

Confidence Interval Calculator

Calculate confidence intervals for means and proportions at 90%, 95%, or 99% confidence levels. Find margin of error, z-critical values, and standard error.

Related Resources

Average Calculator

Calculate mean, median, mode, and weighted averages

Statistics Calculator

Full descriptive statistics analysis

Percentage Calculator

Calculate percentages and conversions

Probability Calculator

Calculate odds and probability distributions

Last Updated: Mar 26, 2026

This calculator is provided for informational and educational purposes only. Results are estimates and should not be considered professional financial, medical, legal, or other advice. Always consult a qualified professional before making important decisions. UseCalcPro is not responsible for any actions taken based on calculator results.

UseCalcPro
FinanceHealthMath

© 2026 UseCalcPro