Standard Deviation Calculator — Sample & Population
Paste any list of numbers and get the sample or population standard deviation instantly, along with the variance, the mean and every step of the arithmetic written out in plain language. The tool runs entirely in your browser — nothing you paste is uploaded anywhere.
Separate numbers with commas, spaces or new lines, or paste a column straight from a spreadsheet. Decimals and negatives are fine; write 10:3 for a value that occurs three times.
8 values
Not sure which mode to use? See the guides on sample vs population standard deviation.
Standard deviation (sample)
—
—
Your results will appear here: the standard deviation first, then the full summary and the worked steps.
What is standard deviation?
Standard deviation is a single number that summarises how spread out a set of values is around their average. A small standard deviation tells you the values crowd closely together near the mean; a large one tells you they fan out widely. It is expressed in the same units as the data itself, which is exactly why it is easier to reason about than the variance, whose units are squared.
Think of two classes that both averaged 70 on a test. If everyone in one class scored between 66 and 74, the standard deviation is tiny and the average describes every student well. In the other class scores run from 40 to 98, so the same average hides enormous differences. The standard deviation is what separates those two situations.
What is the formula for standard deviation?
The standard deviation is the square root of the variance. For a sample of n values it is:
s = √[ Σ(xᵢ − x̄)² / (n − 1) ]
For a whole population, replace (n − 1) with n and write σ instead of s. The calculator above applies whichever formula you pick and shows the intermediate sums, so you can verify every number by hand if you want to.
Sample vs population standard deviation: what is the difference?
Use the sample version (dividing by n − 1) whenever your data is a subset of something larger — a poll of voters, a batch of widgets, a sample of lab measurements. Dividing by the slightly smaller denominator corrects the natural tendency of a sample to look less spread out than the population it came from. Use the population version (dividing by n) only when your data genuinely is everything: all students in the class, all transactions in the month.
If you are unsure, choose sample. It is the default in every statistics course and in software like Excel's STDEV.S, and for large datasets the difference between the two becomes negligible anyway.
How do you calculate standard deviation by hand?
- Add up all the values and divide by how many there are. That is the mean, x̄.
- Subtract the mean from every value. These deviations always sum to zero — that is a useful check.
- Square each deviation, then add the squares together.
- Divide by n − 1 for a sample (or n for a population). That is the variance.
- Take the square root. That is the standard deviation.
The worked-steps panel in the calculator above carries out exactly these five lines with your own numbers.
How do you round a standard deviation?
Report one more decimal place than your raw data. If measurements were recorded to the nearest whole number, quote the SD to one decimal place; if data has one decimal, quote two. Use the rounding selector in the results panel to match whichever convention your assignment or report requires, but keep the full-precision value for any further calculations.
What does a high or low standard deviation mean?
There is no universal threshold: "high" depends entirely on context and units. A standard deviation of 2 cm is huge for machined parts and trivial for human heights. Two useful anchors: the coefficient of variation (SD ÷ mean × 100) lets you compare spread between datasets with different units, and for roughly bell-shaped data about two thirds of values fall within one SD of the mean, which the results panel checks against your actual data.
Common mistakes
- Dividing by n when the data is a sample — the result is biased low.
- Forgetting to square the deviations, which makes them sum to zero.
- Comparing SDs of datasets with different units or wildly different means.
- Reporting variance (s²) as if it were the standard deviation.
If your data is not a plain list
The calculator accepts comma, space, tab, semicolon and newline separators, so a column copied from Excel, Google Sheets or a CSV file pastes straight in. If a value repeats many times, write it as value:count — for example 10:25 counts 10 twenty-five times — rather than pasting it out longhand.
Related calculators
Common questions
Is this standard deviation calculator free?
Yes, and it always runs locally in your browser. There is no sign-up, no limit on data size and no upload of what you paste.
Which mode should I choose, sample or population?
Sample (n − 1) unless your data really is the complete population. Most textbook and exam questions about collected data are samples.
Can I paste data from Excel?
Yes — select the column, copy, and paste directly into the box. Any separator style works.
What does it mean if the SD is zero?
Every value is identical. There is no spread at all.
Why does one outlier change the SD so much?
The formula squares every deviation, so a single far-away value contributes an enormous squared term. This sensitivity is a known property of the standard deviation; see our article on outliers and SD.