Skip to main content

Calcu.fit

Standard Deviation Calculator: Sample & Population SD with Steps

Use this free standard deviation calculator to measure how spread out your data is. Paste or type your numbers, separated by commas, spaces, or new lines. The calculator shows the mean, variance, and standard deviation, for both sample and population data, along with the count, sum, range, and median, and the step-by-step working. No signup needed, and nothing you enter is stored.

Standard deviation calculator

Your data

Use sample if your data is a subset of a larger group, and population if it includes every member of the group. When in doubt, use sample.

How to Use This Standard Deviation Calculator

  1. Enter your data, separated by commas, spaces, or line breaks.
  2. Choose sample or population. Use sample if your data is a subset of a larger group, and population if it includes every member of the group.
  3. Click Calculate to see the results and the steps.

What You’ll See in Your Results

  • Count (n), sum, and mean
  • Standard deviation (sample and population)
  • Variance (sample and population)
  • Range, minimum, maximum, and median
  • Step-by-step table of each value’s deviation from the mean

What Is Standard Deviation?

Standard deviation measures how far data values typically sit from the mean (the average).

  • A small standard deviation means the values are clustered close to the mean.
  • A large standard deviation means the values are spread out over a wider range.

It’s in the same units as your data, which makes it easier to interpret than variance.

Sample vs. Population Standard Deviation

 Population (σ)Sample (s)
Use whenYou have every value in the groupYour data is a sample from a larger group
Divide bynn − 1
Symbolσ (sigma)s

Dividing by n − 1 (called Bessel’s correction) corrects for the fact that a sample tends to underestimate the spread of the full population. The correction matters most for small samples:

Sample size (n)Sample SD is larger than population SD by a factor of
31.2247
51.1180
101.0541
301.0171
1001.0050

For large samples, the two results are almost the same. When in doubt, use sample standard deviation. Most real data sets are samples.

The Standard Deviation Formulas

Mean: x̄ = Σx ÷ n

Population variance: σ² = Σ(x − x̄)² ÷ n

Population standard deviation: σ = √[ Σ(x − x̄)² ÷ n ]

Sample variance: s² = Σ(x − x̄)² ÷ (n − 1)

Sample standard deviation: s = √[ Σ(x − x̄)² ÷ (n − 1) ]

How to Calculate Standard Deviation by Hand

  1. Find the mean of the data.
  2. Subtract the mean from each value to get its deviation.
  3. Square each deviation.
  4. Add the squared deviations.
  5. Divide by n (population) or n − 1 (sample) to get the variance.
  6. Take the square root of the variance.

Standard Deviation Examples

Example 1: A Small Data Set

Data: 4, 8, 6, 5, 3, 7

  • Sum = 33, n = 6, mean = 5.5
ValueDeviation (x − 5.5)Squared
4−1.52.25
82.56.25
60.50.25
5−0.50.25
3−2.56.25
71.52.25
Total 17.5
MeasurePopulationSample
Variance17.5 ÷ 6 = 2.916717.5 ÷ 5 = 3.5
Standard deviation1.70781.8708

Example 2: Test Scores

Ten test scores: 72, 85, 90, 68, 95, 80, 88, 76, 82, 79

MeasureResult
Count10
Sum815
Mean81.5
Median81
Range27 (68 to 95)
Sum of squared deviations620.5
Population variance62.05
Population standard deviation7.88
Sample variance68.94
Sample standard deviation8.30

A typical score is about 8 points away from the class average of 81.5.

Example 3: Same Average, Different Spread

Two data sets, each with a mean of 50:

Data setValuesSample standard deviation
A48, 49, 50, 51, 521.58
B30, 40, 50, 60, 7015.81

The averages are identical, but set B is about 10 times more spread out. The mean alone can’t tell you this, which is why standard deviation matters.

Example 4: The Effect of an Outlier

DataMeanSample standard deviation
10, 12, 11, 13, 12, 1111.51.05
10, 12, 11, 13, 12, 11, 10024.1433.46

One extreme value raised the standard deviation from about 1 to more than 33. Standard deviation is sensitive to outliers, so check your data for errors or unusual values.

The 68-95-99.7 Rule (Empirical Rule)

For data that follows a normal (bell-shaped) distribution:

RangeShare of data
Mean ± 1 standard deviationabout 68.3%
Mean ± 2 standard deviationsabout 95.4%
Mean ± 3 standard deviationsabout 99.7%

Example: a test has a mean of 100 and a standard deviation of 15.

RangeValues
Within 1 SD (about 68%)85 to 115
Within 2 SD (about 95%)70 to 130
Within 3 SD (about 99.7%)55 to 145

This rule applies only when the data is roughly normal, not to every data set.

Z-Scores: How Many Standard Deviations From the Mean?

z = (value − mean) ÷ standard deviation

Example: the mean is 70, the standard deviation is 10, and your score is 85.

  • z = (85 − 70) ÷ 10 = 1.5

Your score is 1.5 standard deviations above the mean, which in a normal distribution is about the 93rd percentile. Use our Z-Score Calculator for more.

Standard Deviation vs. Variance

 VarianceStandard deviation
DefinitionThe average squared deviationThe square root of the variance
UnitsSquared units (for example, points²)Same units as the data (points)
Easier to interpretNoYes
Used inStatistical formulas and modelsReporting and everyday interpretation

Standard Error vs. Standard Deviation

  • Standard deviation describes how spread out the data values are.
  • Standard error of the mean (SEM) describes how precisely the sample mean estimates the true mean: SEM = s ÷ √n.

For the test scores in Example 2, s = 8.30 and n = 10, so the standard error is about 2.63.

Coefficient of Variation

The coefficient of variation (CV) expresses the standard deviation as a percentage of the mean, which lets you compare variability across data sets with different units or scales.

CV = (Standard deviation ÷ Mean) × 100

For the test scores: 8.30 ÷ 81.5 × 100 = about 10.2%.

Where Standard Deviation Is Used

  • Education: how spread out test scores are
  • Finance: volatility of returns (a higher standard deviation means a riskier investment). See our Average Return Calculator.
  • Science and engineering: measurement variability and error
  • Quality control: how consistent a product or process is
  • Health and research: variation in measurements and results
  • Sports: consistency of performance
  • Weather: how much temperatures vary

Common Mistakes

  1. Using the population formula for a sample, which underestimates the spread.
  2. Forgetting to take the square root (that gives variance, not standard deviation).
  3. Misreading it as a range. Standard deviation isn’t the maximum minus the minimum.
  4. Applying the 68-95-99.7 rule to data that isn’t normal.
  5. Ignoring outliers that distort the result.
  6. Rounding too early in multi-step calculations.
  7. Using too few data points. Small samples give unreliable estimates.

Standard Deviation Calculator vs. Other Tools

  • Averages calculator: arithmetic mean, median, and mode.
  • Z-score calculator: standardizing a value within a normal distribution.
  • Sample size calculator: determining how many responses you need.
  • Percentage calculator: calculating the percentage of a number and percentage change.
  • Probability calculator: the likelihood of events.
  • Scientific calculator: advanced mathematical functions.

Frequently Asked Questions (FAQ)

How do I calculate standard deviation?

 Find the mean, subtract it from each value, square the results, add them up, divide by n (population) or n − 1 (sample), and take the square root.

Population standard deviation divides by n and is used when you have all the data. Sample standard deviation divides by n − 1 and is used when your data is a sample from a larger group.

Use sample unless you have every member of the group you’re studying. Most real data sets are samples.

That the data values are spread out widely from the mean. A low standard deviation means they’re clustered near the mean.

There’s no universal good or bad value. It depends on the context and the scale of the data. Compare it with the mean, using the coefficient of variation, or with other similar data sets.

No. It’s a square root, so it’s always zero or positive. It’s zero only if all values are identical.

The average of the squared deviations from the mean. The standard deviation is its square root.

 For normally distributed data, about 68% of values fall within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3.

 They increase it a lot, because deviations are squared. A single extreme value can change the result dramatically.

The number of standard deviations a value is from the mean. A z-score of 1.5 means 1.5 standard deviations above the mean.

Yes. It’s free, with no registration and no limits.

It uses the standard formulas and the numbers you enter. Results are rounded for display, so use more decimal places when you need more precision.

Disclaimer

This calculator is for general informational and educational purposes. Results depend on the data you enter and the choice of sample or population formula. Check important calculations independently, especially for research, financial, or safety-related decisions.