Standard deviation calculator

Measure how widely your data values spread around their mean. Compare sample and population standard deviation with live visualizations and step-by-step statistics.

⚑ Report error
Sample s
—
n − 1 in the divisor
Population σ
—
n in the divisor
Mean
—
n = —
Sample variance s²
—
sum of squared deviations ÷ (n − 1)
Population variance σ²
—
sum of squared deviations ÷ n
SEM
—
sample s ÷ √n

Values around the mean

Each observation compared with the mean and the selected ±1 standard-deviation band
Live
Observation indexMean ± SD updates live

Distance from the mean

Signed deviations show which values are above or below the center
Live
Positive = above mean · negative = belowLargest deviation: —
LIVE STATISTICS INTELLIGENCE

What the spread says about this dataset

Updates live
Mean—center of the values
±1 SD span—mean ± selected standard deviation
Inside ±1 SD—share of observed values
Coefficient of variation—SD relative to the mean
Change the data to see how the center and spread move together.

Deviation table

0 values
#xᵢxᵢ − mean(xᵢ − mean)²Within ±1 SD

Frequency table

Distinct values
ValueFrequencyPercent
The calculator finds the mean first, then measures each value's deviation, squares those deviations, averages them, and finally takes the square root.

Your data

Paste values from a spreadsheet or document. At least two values are required.
Choose whether the values are a sample or the complete population.
Standard deviation has the same units as your original data. Variance has squared units.
THE CONCEPT

What is standard deviation?

Standard deviation is a measure of how much the values in a dataset tend to spread around their mean. When observations sit close to the mean, the standard deviation is small; when they are more widely dispersed, it becomes larger.

For an educational view, think of the mean as the center and each observation as a point that has a signed distance from that center. Standard deviation turns all of those distances into one scale of typical spread by squaring them, averaging them, and taking the square root.

mean μ xᵢ − μ typical spread is summarized by SD low high
The calculator does not require the data to form a perfect bell curve. Standard deviation can be calculated for any numeric dataset; the bell-curve interpretation introduced later is a separate assumption.
mean center variance squared spread SD original units SEM mean's sampling spread
HOW IT WORKS

How to use this standard deviation calculator

Paste your measurements, choose sample or population, and the calculator recomputes the center, spread, deviations, and frequency table as you edit the data.

01

Paste the data

Use commas, spaces, or new lines. Values such as 12.5 and 1.2e3 are accepted.

02

Choose the dataset

Sample uses n−1; population uses n.

03

Inspect deviations

See each value's distance from the mean and the squared contribution to variance.

04

Read the spread

Compare SD with the mean and units before interpreting how variable the dataset is.

THE MATHEMATICS

Standard deviation formulas

Both formulas follow the same structure: measure each value's distance from the center, square those distances, average them with the appropriate denominator, and take the positive square root.

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

Use this when the dataset contains every member of the population being described.

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

Use this when the observed values are a sample used to estimate population variability.

variance = standard deviation²
SD = √variance
xᵢ
the i-th observation
μ
population mean
x̄
sample mean
N / n
number of observations

Why is the sample divisor n − 1?

When a sample mean is estimated from the same observations, using n in the variance denominator tends to underestimate population variability. Replacing it with n − 1 is Bessel's correction, the standard adjustment used for sample variance and sample standard deviation.

POPULATION ÷ N all observations are included SAMPLE ÷ (n − 1) adjusts the variance estimate same numerator · different denominator
The numerator is the sum of squared deviations from the appropriate mean. The denominator changes according to whether you are describing a population or estimating it from a sample.
FROM VARIANCE TO SPREAD

Standard deviation vs variance

Variance is mathematically useful because squaring makes every deviation non-negative, but the units are squared. Standard deviation takes the square root so the final spread measure returns to the original unit of the data.

Example measurement12 cmIf SD is 2 cm, the spread is expressed in centimeters—the same unit as the measurements.
Variance for the same spread4 cm²The squared unit is why variance and standard deviation should not be read as interchangeable labels.
DISTRIBUTION CONTEXT

The empirical rule: 68–95–99.7

The familiar 68–95–99.7 rule applies to data that are approximately normally distributed. It does not mean that any dataset automatically has 68% of its observations within one standard deviation of the mean.

μ −1σ +1σ −2σ +2σ ≈68% within 1σ ≈95% within 2σ ≈99.7% within 3σ
This visual describes the normal-distribution rule of thumb. It should not be applied mechanically to skewed, heavy-tailed, multimodal, or very small datasets.
WORKED EXAMPLE

Standard deviation example: 2, 4, 5, 6, 6, 9, 10

Suppose these seven observations are a sample. The mean is 6, so the deviations are −4, −2, −1, 0, 0, +3, +4. Squaring them gives 16, 4, 1, 0, 0, 9, 16.

Step 01 · Mean

Find the center

x̄ = (2+4+5+6+6+9+10) / 7 = 6
Mean = 6
Step 02 · Squared deviations

Measure spread from the mean

(−4)² + (−2)² + (−1)² + 0² + 0² + 3² + 4² = 46
SS = 46
Step 03 · Sample variance

Use n − 1

s² = 46 / (7−1) = 7.6667
s² ≈ 7.6667
Step 04 · Sample SD

Take the square root

s = √7.6667
s ≈ 2.7689

This example matches the conventional sample calculation shown by standard deviation references: a mean of 6, sample variance about 7.6667, and sample standard deviation about 2.7689.

INTERPRETATION

How to interpret standard deviation

Same units matter

Compare SD with the original measurement and its context. A 5 cm SD and a 5 kg SD are not the same practical quantity.

Compare within context

For repeated measurements in the same unit, a smaller SD indicates a tighter cluster around the mean; a larger SD indicates a wider spread.

Look at the mean too

An SD of 2 may be large when the mean is 5 and small when the mean is 500. The coefficient of variation can help for positive values when a relative measure makes sense.

Outliers can pull it upward

Because deviations are squared, an extreme observation can have a large effect on variance and standard deviation.

REAL-WORLD USE

Where standard deviation is used

Standard deviation turns a long list of measurements into a compact description of variability. It appears in measurement science, laboratory work, quality control, data analysis, and many inferential procedures.

Researchers reviewing scientific data in a laboratory

Laboratory and scientific measurements

Repeated measurements can be summarized by a mean and standard deviation to communicate how consistent the observations are.

Public-domain image · National Cancer Institute / NIH
Engineers discussing manufacturing measurement and quality

Manufacturing and quality control

Process measurements can be compared across batches or time periods to understand consistency and variation.

Public-domain image · NIST Digital Collections
COMMON MISTAKES

Common standard deviation mistakes

MistakeWhy it mattersBetter habit
Using n for every datasetSample and population calculations use different denominators.Decide what the dataset represents before calculating.
Calling variance and SD the same thingVariance is in squared units; SD returns to the original units.Check the units beside the result.
Assuming every dataset is normalThe 68–95–99.7 rule is a normal-distribution result.Inspect the data shape before using the empirical rule.
Ignoring an extreme valueSquared deviations give outliers substantial influence.Inspect the raw values and the deviation chart.
QUESTIONS STUDENTS ASK

Standard deviation calculator FAQ

What does standard deviation tell me?

It summarizes the spread of the observations around their mean. A larger SD means greater dispersion in the same measurement context.

Should I use sample or population standard deviation?

Use population standard deviation when your values contain the entire population of interest. Use sample standard deviation when they are a sample used to estimate a larger population.

Why does sample standard deviation use n − 1?

The n − 1 denominator is the standard Bessel correction used when the sample mean is estimated from the observations and the goal is to estimate population variance.

Can standard deviation be zero?

Yes. If every observation is identical, every deviation from the mean is zero, so the variance and standard deviation are both zero.

Is a large standard deviation always bad?

No. Standard deviation is descriptive. Whether more or less variation is desirable depends on the measurement and the purpose of the analysis.

Does 68% always fall within one standard deviation?

No. About 68% within ±1 SD is the empirical rule for an approximately normal distribution. It is not a universal rule for arbitrary datasets.