Calculated
Standard Deviation Calculator
Sign up to favourite this calculatorCalculate standard deviation, variance and mean for a set of values, as a sample or population. Enter values separated by commas, spaces, tabs or new lines.
Sign in to keep your calculationsSaved · View in My dashboard
Saving…Saved to My dashboardCouldn't save. We'll try again.That saved calculation isn't available.
Share result
Compare scenarios
Keep this calculation as a scenario, change any input above, and the Now column shows how the result moves. Keep up to three, A to C; Open puts one back in the calculator.
Explain my result
Assumptions and limits
- An estimate from the numbers you entered, for guidance only. It is not financial, tax or medical advice.
- Calculator version 1, last updated 25 October 2026.
Was this calculator useful?
Report a problem
Saved to your account. Go to My dashboard to view your calculations.Link copied. Paste it wherever you want to share it.Your link is ready: open Share result and choose Copy link.
How to use this calculator
- Enter your values in the box, separated by commas, spaces or new lines.
- Choose Sample if your data is part of a wider group, or Population if it includes every value in the group.
- Choose the number of decimal places you want to display.
- The calculator shows the standard deviation, variance, mean and other summary statistics automatically as you type.
The calculation runs in the page — nothing is sent to a server.
What do I need to enter?
- Enter your values — your numbers separated by commas, semicolons, spaces, tabs or new lines. Negatives, decimals and scientific notation such as 1.5e3 are accepted; anything that is not a number is reported rather than ignored.
- Calculate for — Sample divides by n − 1 and needs at least 2 values; Population divides by N and needs at least 1.
- Decimal places — 2, 4, 6 or Max. It sets how the answers are displayed, not how they are calculated.
What do the results show?
- Standard deviation — the main figure, labelled Sample or Population: how far values typically sit from the mean, in the same units as your data.
- Variance — the standard deviation squared, for the same sample or population choice.
- Mean, Values and Sum — the average, how many numbers were read, and their total.
- Range, Minimum and Maximum — the smallest and largest values and the gap between them.
What does standard deviation mean?
Standard deviation measures how spread out a group of values is around its average. A small standard deviation means the values are generally close to the mean. A larger standard deviation means the values are more widely spread out.
- A standard deviation of 0 means every value is the same.
- A smaller standard deviation means less variation in the data.
- A larger standard deviation means more variation in the data.
- Standard deviation is shown in the same units as the original values.
How is standard deviation calculated?
Find the mean, take the difference between each value and the mean, square those differences and add them up, divide by the number of values (population) or one less (sample), then take the square root.
- xᵢ is each entered value.
- μ (population) and x̄ (sample) are the mean of the values.
- N is the number of values; n − 1 is used for a sample.
- Variance is the same expression without the square root.
This calculator uses Welford’s online algorithm, a single-pass method that stays accurate even when the values are large and close together.
Sample vs population standard deviation
| Type | Use it when | Divide by |
|---|---|---|
| Sample | Your values are part of a larger group | n − 1 (s) |
| Population | Your values are the complete group | N (σ) |
Sample standard deviation uses n − 1 instead of n because it estimates variation in a larger population from a smaller sample of data.
Standard deviation vs variance
Both variance and standard deviation describe how spread out values are. Variance is the average squared distance from the mean. Standard deviation is the square root of variance, which makes it easier to interpret because it uses the same units as the original data.
Worked example
For the values 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5. The squared differences from the mean add up to 32.
| Step | Value |
|---|---|
| Mean | 40 ÷ 8 = 5 |
| Squared differences | 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32 |
| Variance | 32 ÷ 8 = 4 |
| Standard deviation | √4 = 2 |
Treating the same values as a sample divides by 7 rather than 8:
| Step | Value |
|---|---|
| Squared differences | 32 (as above) |
| Variance | 32 ÷ 7 = 4.5714 |
| Standard deviation | √4.5714 = 2.1381 |
What values can I enter?
Enter positive numbers, negative numbers, whole numbers and decimals, separated by commas, spaces, tabs, semicolons or new lines — so a column of numbers pasted from a spreadsheet works as well as a comma-separated list. Commas are treated as separators, not decimal points, in line with UK number formatting.
Entries that are not numbers, such as five or 2kg, are reported rather than silently ignored, and the result is held back until they are corrected.
Related averages
Want the mean, median and mode from the same data set, or just the simplest measure of spread — highest minus lowest? See the Mean Median Mode Calculator or the Range Calculator.
Frequently asked questions
What is standard deviation?
What is the difference between sample and population standard deviation?
Why does sample standard deviation use n − 1?
What is variance?
Can standard deviation be negative?
What does a standard deviation of zero mean?
How many values do I need?
Last updated 25 October 2026.