Standard Deviation Calculator. Enter your dataset as comma-separated numbers, choose Sample or Population, and get back standard deviation, variance, mean, sum, and count. Perfect for statistics homework, data analysis, or quality control — paste numbers from Excel or type them in directly. Also try the Average Calculator.
Use this standard deviation calculator to see how far your numbers sit from their mean. Paste in your values and you get the standard deviation, variance, mean and sum for a sample or a population, one statistical measure that turns a messy list into a figure you can compare. See also our use the Percentile Rank Calculator.
How to Use the Standard Deviation Calculator
Type or paste your data into the box, then choose whether it is a sample or a population. The tool accepts a comma separated list, spaces or one value per line, and it also handles a frequency for each value when you work with grouped data.
Enter at least two values for a sample, since one number has no variation.
Pick sample when your data set is only part of a larger group, or population when it covers every member.
Click the calculate button to see the results: count, sum, mean, variance and standard deviation.
Open the steps to follow the work step by step and check each squared difference.
Whether you need a sample standard deviation calculator, a population standard deviation calculator or a quick SD calculator, the same box does all three. This mean and standard deviation calculator works as a standard deviation online tool for any dataset small enough to paste in. Check the count in the results before you trust them: if it is lower than the number of data points you pasted, a stray letter or symbol was dropped from your dataset, and the variance and mean will shift. This calculator also reports the variance next to the standard deviation, so you can compare both from one calculation, and every calculator result stays on screen while you change an input.
What Standard Deviation Tells You About Spread
Standard deviation, written sigma (σ) for a population and s for a sample, is a measure of variation: it shows the dispersion from the mean. When the data are tightly clustered, the SD is small. When the numbers are spread out over a wider range, it is large. Variability describes the same idea, and the standard deviation of a data set puts a single figure on it. The Greek symbol sigma is just notation, and sigma appears in statistics textbooks everywhere. A calculator reports sigma in the same units as your data, which is why it is easier to read than the variance, whose units are squared.
Standard Deviation Formula
The standard deviation formula, or standard deviation equation, is the positive square root of the variance. The variance is the sum of squared differences between each data value and the mean, divided by a count. Each squared deviation uses the difference from the mean, written as a deviation score, and the summation adds them up. The expected value of the data is the population mean, and for a sample it is the sample mean.
Population Standard Deviation Formula
Use the population standard deviation when you measured every member: \(\sigma = \sqrt{\frac{\sum (x_i - \mu)^2}{N}}\), where \(\mu\) is the population mean and \(N\) is the number of values.
Sample Standard Deviation and Bessel's Correction
A random sample tends to understate the dispersion, so the sample standard deviation divides by n - 1 instead: \(s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n-1}}\). This n-1 change is Bessel's correction, and it removes most of the bias, since the uncorrected version underestimates variability. The corrected sample standard deviation is the usual unbiased estimator in practice, with matching degrees of freedom, though small sample sizes still carry some bias.Sample versus population standard deviation for the same six values.
How to Calculate Standard Deviation by Hand
Learning how to find standard deviation by hand makes every result easier to trust. A standard deviation calculation has four moves, shown here for six delivery times in minutes: 13, 16, 22, 25, 31 and 37.
Doing it by hand is slow beyond a dozen data points, so use the calculator for a larger dataset and keep the manual method for checking one result. A hand check catches a mistyped value quickly because a single bad entry inflates the variance far more than the mean.
Find the Mean and the Squared Differences
The six observations add up to 144, so the arithmetic mean (the average of the data points) is 144 ÷ 6 = 24. Subtract 24 from each value, then square the result.
Value (x)
x − mean
Squared difference
13
−11
121
16
−8
64
22
−2
4
25
1
1
31
7
49
37
13
169
Sum of Squares, Variance and the Square Root
The squares add to 408. Divide by n - 1 = 5 for a sample variance of 81.6, so the sample standard deviation is √81.6 ≈ 9.03 minutes. Divide by 6 for a population variance of 68 and a population standard deviation of √68 ≈ 8.25 minutes.Six squared differences build the sum of squares.
Measuring Variation in Espresso Shot Yield with an SD Calculator
I run a small café and want to know whether my grinder is holding a steady 36 g yield from an 18 g dose, the common 1:2 brew ratio. I weigh eight consecutive shots at the bar: 36.2, 35.7, 36.8, 36.1, 35.4, 36.5, 36.9 and 35.9 grams. I paste them into the standard deviation calculator as a sample, because these eight shots stand in for every shot I will pull this week.
The results come back at once: a mean of 36.19 g, a sum of squares of 1.93, a sample variance of 0.276 and a sample standard deviation of 0.52 g. Switching to population gives 0.49 g, a small gap because eight is enough data points for Bessel's correction to matter only a little. By hand, 1.9287 ÷ 7 = 0.2755, and its square root is 0.525, so the figures agree.
My own tolerance is ±1 g around the target. The empirical rule says about 95% of shots land within two standard deviations, or 35.14 to 37.24 g, so 37.24 g sits just outside my tolerance. That is the number to watch: the mean looks fine, but the spread says roughly one shot in twenty will miss.
Scenario
Mean (g)
Sample SD (g)
Eight regular shots
36.19
0.52
Add one channelled shot at 39.4 g
36.54
1.18
That sensitivity rerun shows how one bad shot more than doubles the SD while barely nudging the mean. The edge case is the sample size: with only two or three shots the estimate is too unstable to trust on its own, so I pull at least eight before adjusting the grind. My next action is a single step finer on the grinder, then another eight shots to see whether the SD drops below 0.4 g.
Reading Spread with the Empirical Rule and Normal Distribution
For data that follow a normal distribution, the bell curve, the empirical rule says about 68% of values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three. Our delivery times sit at 24 ± 9.03, a range of roughly 15 to 33 minutes, and four of six values land inside it. The same spread feeds the margin of error and the confidence interval, where the standard error of the mean (also called the standard error of the estimate) equals s divided by √n. The relative standard deviation divides it by the mean to compare probability-style spreads between datasets. A z score then tells you how many SDs a single value sits from the average.Four of six values fall inside one standard deviation.
Why Variability Matters in Finance, Quality Control and Weather
Every use below starts the same way: paste a list into the SD calculator and read the sample sigma it returns in the units of your data. Enter daily returns and the result is the volatility figure used in finance, where a portfolio's standard deviation measures the risk and uncertainty behind price fluctuations in an asset or investment. Enter part measurements from an industrial line and a widening SD warns that quality control is drifting. Enter monthly temperature readings for two cities and the calculator shows why the same average can hide very different weather and climate. Experimental science tests models against real-world data the same way, and learning statistics starts with reading this one number. As a quick cross-check, compare the calculator's sample result with Excel's STDEV.S. You might also find our Correlation Coefficient Calculator useful.