Standard Deviation Calculator

MATH · STATISTICS

Enter your numeric dataset

Calculated on this device
Enter finite numbers separated by commas, spaces, or line breaks. Sample mode requires at least 2 numbers.
Margin of error confidence level (90%, 95%, 99%)
Confidence level used to compute the normal-approximation margin of error.

SAMPLE STANDARD DEVIATION (s)

5.237229

Computed across 8 values with mean 18 and variance 27.428571.

Formula:s = √[ Σ(xᵢ − x̄)² ÷ (n − 1) ]

Sample Variance (s²)27.428571Pop. SD: 4.898979
Mean (x̄)18Range: 13 (10 to 23)
Count (n) & Sum8 valuesSum: 144
Margin of Error (95%)±3.629148SE: 1.85164

Confidence intervals & margin of error (mean ± z × SE)

Confidence levelz-scoreMargin of errorInterval
90%1.645±3.045677[14.954323, 21.045677]
95% (Selected)1.96±3.629148[14.370852, 21.629148]
99%2.576±4.769509[13.230491, 22.769509]

HOW IT WORKS

Sample vs. population standard deviation formulas

Standard deviation measures how spread out a dataset is around its arithmetic mean, expressed in the same units as the original data.

01

Sample Standard Deviation (s)

Used when your values represent a sample drawn from a larger population. Dividing the sum of squared deviations by n − 1 (Bessel's correction) produces an unbiased variance estimate:

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

Population Standard Deviation (σ)

Used when your dataset includes every member of the entire group of interest, dividing by n:

σ = √[ Σ(xᵢ − μ)² ÷ n ]
03

Standard Error & Margin of Error

Standard error of the mean (SE = SD ÷ √n) quantifies how precisely the sample mean estimates the population mean. Margin of error multiplies SE by the normal z-score for 90%, 95%, or 99% confidence:

SE = SD ÷ √n · Margin of Error = z × SE

STATISTICS GUIDE

Interpreting standard deviation, variance, and confidence intervals

When to choose Sample (n − 1) vs. Population (n)

In most real-world experiments, surveys, and quality-control checks, you only observe a subset of all possible measurements—so Sample mode (n − 1) is the default. Switch to Population mode (n) only when you truly have every observation in the defined group, such as all 50 US state totals or every student's score in one specific classroom.

Standard deviation vs. variance and related math tools

Variance is the average squared deviation from the mean, so its units are squared (for example, dollars² or cm²). Taking the square root returns standard deviation in the original units, making it much easier to compare directly against the mean. For general arithmetic, powers, or roots, use our Scientific Calculator, or compare relative spreads with the Percentage Calculator.

Frequently asked questions

Can standard deviation ever be negative?

No. Because squared deviations are always zero or positive and we take the principal square root, standard deviation is always 0 or greater. A value of 0 means every number in the dataset is identical.

Why is sample standard deviation larger than population SD?

Dividing by n − 1 instead of n produces a slightly larger result to correct for the tendency of small samples to underestimate true population spread. As n grows large, the two converge.

What is the difference between standard deviation and standard error?

Standard deviation describes the spread of individual data points around the mean. Standard error of the mean (SD ÷ √n) describes how tightly the sample mean itself is estimated.

How can I format numbers in the Data values box?

Paste or type numbers separated by commas, spaces, tabs, or new lines—for example directly from a spreadsheet column or CSV line.

Your dataset is calculated locally in this browser and is never sent to a server.