Standard Deviation Calculator
Paste or type your numbers (separated by spaces, commas or new lines) to get the mean, variance and standard deviation.
Reviewed by the ToolNestr Editorial Team — July 2026
How standard deviation is calculated
Standard deviation measures how spread out numbers are from the mean. The process starts by finding the mean (average) of the data set. Each value's deviation from the mean is squared, and the average of these squared deviations is the variance. The standard deviation is the square root of the variance.
For a population, variance = Σ(xi − μ)2 / N. For a sample, the formula divides by N−1 instead of N to correct for bias (Bessel's correction). The calculator shows both values so you can choose the appropriate measure for your data.
Worked example
Calculate the population standard deviation for the data set [4, 8, 15, 16, 23, 42].
What different standard deviations mean
The size of the standard deviation tells you how tightly your data clusters around the mean. Here is how to interpret different ranges.
Student
Analyse test score distributions, complete statistics assignments, and understand how your data varies from the average.
Quality Control Engineer
Monitor manufacturing consistency by checking that product measurements stay within tolerance limits using standard deviation.
Financial Analyst
Measure investment risk by calculating the volatility of stock returns and comparing the variability of different assets.
Researcher
Determine whether experimental results are statistically significant or just random noise by analysing data spread.
| Measure | Formula | When to Use |
|---|---|---|
| Mean | Sum ÷ Count | Central value of your data |
| Population SD | √(Sum(xᵢ − μ)² ÷ N) | Data covers the entire group |
| Sample SD | √(Sum(xᵢ − x̄)² ÷ (n − 1)) | Data is a subset of a larger group |
| Variance | (Standard deviation)² | When squared units are preferred |
| Sum | Add all values | Quick total of your dataset |
| Count | Number of entries | Understanding sample size |
| Coefficient of Variation | (SD ÷ Mean) × 100% | Comparing spread across different units |
How to use the standard deviation calculator
Enter your data
Type or paste your numbers separated by spaces, commas or new lines into the text area.
Review the statistics
The count, sum, mean, sample SD, population SD and variance all update in real time as you type.
Choose the right SD
Use the population SD for complete datasets and the sample SD when working with a subset of a larger group.
Tips for accuracy
Choose the right SD for your data
Population SD divides by N (all members). Sample SD divides by n−1 to correct for bias. Using the wrong one can misrepresent your data.
Remove outliers before calculating
A single extreme value inflates the standard deviation. Check your data for data-entry errors or genuine outliers and decide whether to exclude them.
Use the empirical rule as a guide
About 68% of values fall within 1 SD of the mean in a normal distribution. Use this to quickly assess whether your data is normally distributed.
When to use standard deviation in real-world analysis
Standard deviation is one of the most widely used statistical measures across virtually every field that works with numerical data. In finance and investing, standard deviation measures the volatility of asset returns and is a core component of the Sharpe ratio, which evaluates risk-adjusted returns. Portfolio managers use standard deviation to quantify investment risk and to ensure that the assets in a portfolio do not all move in the same direction.
In manufacturing and quality control, standard deviation is used to monitor process consistency. Control charts plot measurements over time and flag when the standard deviation exceeds acceptable limits. A low standard deviation in product dimensions indicates a consistent manufacturing process, while a sudden increase signals that the process may be drifting out of specification and requires intervention.
In academic research, standard deviation is essential for reporting experimental results. When researchers publish findings, they typically report the mean and standard deviation to describe their data. A small standard deviation relative to the mean indicates that the experimental measurements were precise and reproducible, which strengthens the validity of the conclusions. The standard deviation also forms the basis for calculating effect sizes and confidence intervals.
In education, teachers use standard deviation to understand grade distributions. A small standard deviation in test scores suggests that most students performed at a similar level, while a large standard deviation indicates wide variation in performance. This information helps educators identify whether their assessment was appropriately calibrated and whether certain students need additional support.
Frequently asked questions
What is standard deviation?
Standard deviation measures how spread out a set of numbers is. A low value means the numbers are close to the average; a high value means they're more spread out.
Population vs sample — which should I use?
Use population standard deviation when your data is the entire group. Use sample standard deviation when your data is a sample drawn from a larger group.
How do I enter my numbers?
Type or paste them separated by spaces, commas or new lines — the calculator figures it out.
What is variance?
Variance is the square of the standard deviation. It's another measure of spread and is shown as "Variance (sample)" in the results.
Can standard deviation be negative?
No. Standard deviation is always zero or a positive number. Zero means all values are identical.
What does a large standard deviation tell me?
A large standard deviation means your data points are widely spread from the mean — for example, salaries in a company with both entry-level and executive roles.
What does the empirical rule say?
In a normal distribution, about 68% of values fall within 1 SD of the mean, 95% within 2 SD, and 99.7% within 3 SD.
How many numbers do I need for sample SD?
You need at least 2 data points to calculate sample standard deviation. With 1 value, only the population SD is valid.
Can I compare standard deviations across different datasets?
Yes, but only if the data uses the same units. SD is unit-specific, so comparing SD of metres to kilograms is meaningless.
What is the coefficient of variation?
It's the standard deviation divided by the mean, expressed as a percentage. It lets you compare relative variability across datasets with different units.