Back to Home

Standard Deviation Calculator

Calculate standard deviation, variance, and statistical measures

Data Input

Sample: subset of data (uses n-1) | Population: entire dataset (uses n)

Separate values with commas, spaces, or new lines

Formula

Mean: μ = Σx / n

Variance (Sample): s² = Σ(x - x̄)² / (n - 1)

Variance (Population): σ² = Σ(x - μ)² / n

Std Deviation: σ or s = √variance

Results

Standard Deviation (s)

7.5873

Mean (x̄)

23.7

Variance (s²)

57.5667

Additional Statistics

Count (n)

10

Sum

237

Minimum

12

Maximum

35

Range

23

Data Distribution

Data Values (Sorted)

12151820222528303235

Overview

This standard deviation calculator measures how spread out a set of numbers is. Paste in your data and it returns the standard deviation, variance and mean, along with the count, sum, minimum, maximum and range, plus a bar chart of the sorted values with the mean marked. It is useful for statistics coursework, lab results, quality control, test scores and investment returns.

The method follows the textbook definition: find the mean, subtract it from every value, square those deviations, add them up, and divide — by n − 1 for a sample or by n for a whole population — to get the variance. The standard deviation is the square root of the variance, which puts it back in the same units as your data. Dividing by n − 1 (Bessel's correction) compensates for the fact that a sample tends to understate the spread of the population it came from.

Choose Sample when your numbers are a subset drawn from a larger group, and Population only when they include every member of the group you care about. Results are rounded to four decimal places.

How to Use

  1. Select the Data Type: Sample (divides by n − 1) or Population (divides by n). Switching type recalculates the current results.
  2. Type or paste your numbers into the Enter Data Values box, separated by commas, spaces or new lines. A sample data set is preloaded.
  3. Click Calculate. A sample needs at least two values; a population needs at least one.
  4. Read the Standard Deviation, Mean and Variance cards, plus Count (n), Sum, Minimum, Maximum and Range under Additional Statistics.
  5. Review the Data Distribution chart and the sorted value list, then click Clear All to start a new data set.

Frequently Asked Questions

How do you calculate standard deviation step by step?

Take 2, 4, 4, 4, 5, 5, 7, 9. The mean is 40 ÷ 8 = 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which sum to 32. For a population, divide by n: 32 ÷ 8 = 4, so σ = √4 = 2. For a sample, divide by n − 1: 32 ÷ 7 ≈ 4.5714, so s ≈ 2.1381.

What is the difference between sample and population standard deviation?

Population standard deviation (σ) divides the sum of squared deviations by n and is used when you have data for every member of the group. Sample standard deviation (s) divides by n − 1 and is used when your data are a sample meant to represent a larger group. The sample version is always slightly larger; the difference shrinks as n grows.

What is the relationship between variance and standard deviation?

Standard deviation is the square root of variance. Variance is measured in squared units — square dollars or square centimeters — which are hard to interpret, so standard deviation is usually reported instead. For the preloaded data set, the sample variance is 57.5667 and the sample standard deviation is √57.5667 ≈ 7.5873, around a mean of 23.7.

What does a high or low standard deviation mean?

A low standard deviation means values cluster tightly around the mean; a high one means they are widely spread. "High" is relative to the mean and context — a standard deviation of 5 points is large for scores averaging 20 but small for scores averaging 500. Dividing the standard deviation by the mean (the coefficient of variation) helps compare spread across data sets.

What is the 68-95-99.7 rule?

For data that follow a normal (bell-shaped) distribution, about 68% of values fall within one standard deviation of the mean, about 95% within two, and about 99.7% within three. With a mean of 100 and a standard deviation of 15, roughly 95% of values lie between 70 and 130. The rule does not hold for strongly skewed data.

Why does the sample option need at least two numbers?

Sample standard deviation divides by n − 1, which is zero when there is only one value, so the result is undefined — a single observation says nothing about how much a group varies. The Population option accepts a single value and returns a standard deviation of 0, since one number has no spread around itself.