Sample Standard Deviation Calculator

Sample Standard Deviation Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

s=∑i=1n(xi−x‾)2n−1from Data sets = \sqrt{\dfrac{\displaystyle\sum_{i=1}^{n}\left(x_i - \bar{x}\right)^2}{n - 1}} \qquad \text{from } \text{Data set}
Usage stats

Advertisement

Results

Sample Standard Deviation (s)
13.4907
based on n - 1 denominator
Count (n) 6
Mean 18
Sum of squared deviations 910
Sample Variance (s²) 182

Report an error on this page

What is the Sample Standard Deviation?

The sample standard deviation measures how spread out a set of data values is around their mean, using the Bessel-corrected denominator \(n-1\). It is the most common dispersion statistic when your data is a sample drawn from a larger population rather than the entire population.

Dot plot of data points spread around a central mean line with arrows showing deviations
Standard deviation measures how far data points spread from the mean.

Formula

Given \(n\) values \(x_1, x_2, \dots, x_n\) with mean \(\bar{x}\), the sample standard deviation \(s\) is:

$$s = \sqrt{\frac{1}{n-1}\sum_{i=1}^{n}(x_i-\bar{x})^2}$$

Here \(\bar{x}=\frac{1}{n}\sum x_i\) is the mean and the inner sum is the total sum of squared deviations.

Advertisement
Step diagram showing deviation squared, summed, divided by n minus 1, then square root
The n-1 formula: square the deviations, average using n-1, then take the square root.

How to use it

Enter your numbers separated by commas or spaces, then read off the standard deviation, mean, variance, and sum of squared deviations. Use this version (n-1) for samples; use the population version (n) only when you have every member of the population.

Worked example

Take the data set \(2, 4, 12, 18, 24, 30\). The mean is:

$$\bar{x}=\frac{2+4+12+18+24+30}{6}=\frac{90}{6}=15$$

The squared deviations are \(169, 121, 9, 9, 81, 225\), summing to:

$$\sum(x_i-\bar{x})^2 = 169+121+9+9+81+225 = 614$$

Then the variance and standard deviation are:

$$s^2=\frac{614}{6-1}=122.8,\qquad s=\sqrt{122.8}\approx 11.08$$

Conventions and edge cases

Each case below was run through this calculator; the result column is what it actually returns.

CaseInputResult
Decimals 0.1, 0.2, 0.30.1, 0.2, 0.30.1
Even number of values (1, 2, 3, 4)1, 2, 3, 41.291
Negative values (−3, −1, 4)-3, -1, 43.6056
A zero in the list (0, 4, 9)0, 4, 94.5092
Sample or population (2, 4, 4, 4, 5, 5, 7, 9)2, 4, 4, 4, 5, 5, 7, 92.1381

Checked on 2026-11-08

FAQ

When do I divide by n instead of n-1? Divide by \(n\) only for a population standard deviation. For a sample, \(n-1\) corrects the bias in estimating the population variance.

What if I enter one value? The sample standard deviation is undefined (it divides by n − 1 = 0), so the calculator shows “not defined” and asks for at least 2 values.

Can I mix commas and spaces? Yes — values may be separated by either, e.g. 4, 8 15 16.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators