Standard Deviation Calculator

Paste any list of numbers — separated by commas, spaces, or new lines — and instantly get sample and population standard deviation, variance, mean, median, and range. No formulas to look up, no spreadsheet needed.

Sample & Population Mean & Median Variance Range & Mode Up to 10,000 values
Share this tool

Your Numbers

Numbers separated by commas, spaces, or new lines — up to 10,000 values

Quick Load:

Computing statistics...

Enter a list of numbers and click Calculate to see standard deviation, variance, mean, and median.

How This Calculator Works

Your Data n numbers Sort & Describe mean · median · mode min · max · range Statistics s · σ · s² · σ² variance · std dev
Sample (use when data is a sample)
s² = Σ(xᵢ − μ)² / (n−1) s  = √s²
Population (use when you have all data)
σ² = Σ(xᵢ − μ)² / n σ  = √σ²
Common descriptors
Mean   μ = Σxᵢ / n Median   middle value of sorted data Range  = max − min

What Is Standard Deviation?

Standard deviation is a single number that tells you how spread out a set of values is around their average. A low standard deviation means the values cluster tightly near the mean. A high standard deviation means they are scattered far apart. It is the most widely used measure of variability in statistics, appearing in everything from school grade reports and clinical trial summaries to financial risk models and manufacturing quality control.

The word deviation refers to how far each value sits from the mean. Standard deviation averages those individual deviations — after squaring them to remove negative signs — then takes the square root to bring the result back to the original units. If your data is measured in kilograms, the standard deviation is also in kilograms, making it directly interpretable alongside the mean.

Sample vs Population Standard Deviation

There are two versions of the formula, and choosing the wrong one gives a biased result. The difference comes down to one question: do you have every member of the group, or only a subset drawn from a larger group?

Population standard deviation (σ) divides by n — the total count of values. Use it when your list contains every data point in the group you care about. Measuring the height of every player on a specific basketball team is a population, because you have all of them.

Sample standard deviation (s) divides by n−1, a correction known as Bessel's correction. Use it when your list is a random sample drawn from a larger population you could not measure in full. Surveying 200 students from a university of 20,000 is a sample. Dividing by n−1 instead of n slightly increases the result, which compensates for the tendency of a sample to underestimate the true spread of the full population. In most real-world situations — surveys, experiments, A/B tests — you are working with a sample, so s is the right choice.

How to Calculate Standard Deviation Step by Step

Using the class test scores preset as a worked example: 85, 92, 78, 95, 88, 76, 91, 83, 89, 74 — 10 values.

  1. Find the mean: add all values and divide by 10. 85+92+78+95+88+76+91+83+89+74 = 851. Mean μ = 851 / 10 = 85.1.
  2. Subtract the mean from each value and square: (85−85.1)² = 0.01, (92−85.1)² = 47.61, (78−85.1)² = 50.41, and so on for all 10 values.
  3. Sum the squared differences: the total is 463.9.
  4. Divide by n−1 (sample): 463.9 / 9 ≈ 51.54. This is the sample variance s².
  5. Take the square root: √51.54 ≈ 7.19. This is the sample standard deviation s.

The result tells you that individual test scores in this class deviate from the mean by about 7 points on average. A score of 92 is roughly one standard deviation above the mean.

What Is Variance?

Variance is the square of standard deviation. It represents the average squared distance between each value and the mean. Squaring the deviations before averaging removes negative signs and also amplifies large deviations, making variance sensitive to outliers. While variance has important mathematical properties — particularly when combining independent random variables — its units are squared (e.g., points², kg², dollars²), which makes it harder to interpret directly. Taking the square root to get standard deviation brings the measure back to the same scale as the original data.

In statistics and machine learning, variance appears frequently in formulas: the bias-variance tradeoff, analysis of variance (ANOVA), and principal component analysis (PCA) all operate on variance rather than standard deviation.

Mean, Median, and Mode — Why They All Matter

Standard deviation describes spread, but you need at least one measure of centre to interpret it. The three most common are mean, median, and mode.

The mean is the arithmetic average — the sum of all values divided by the count. It is sensitive to outliers: one extremely large value can pull the mean far from where most data sits.

The median is the middle value when the data is sorted. Half the values fall below it, half above. The median is resistant to outliers, which makes it the preferred measure of central tendency for skewed distributions such as household income or house prices.

The mode is the value that appears most frequently. Data with two modes is bimodal — a common signal that the dataset contains two distinct subgroups. When all values appear exactly once, there is no mode.

Standard Deviation in Real Life

Understanding standard deviation helps in any field that deals with data variability:

  • Finance: the annualised standard deviation of daily returns is the most common measure of investment volatility. A portfolio with σ = 5% is far less risky than one with σ = 25%, even if both have the same average return.
  • Quality control: manufacturers use standard deviation to monitor process consistency. A machine producing bolts with mean diameter 10 mm and σ = 0.01 mm is far more consistent than one with σ = 0.5 mm.
  • Education: grade curves are set based on mean and standard deviation. Standardised test scores like SAT and IQ are expressed as standard deviations from the population mean (z-scores).
  • Weather: climate scientists compare the standard deviation of temperature records across decades to detect increasing variability — a key signal of climate change.
  • Sports analytics: a player with a high standard deviation of performance is inconsistent. A low standard deviation means reliable output game after game.

Statistics Formula Reference

StatisticFormulaNotes
Meanμ = Σxᵢ / nSensitive to outliers
Medianmiddle value (sorted)Robust to outliers
Sample variances² = Σ(xᵢ−μ)² / (n−1)Use for sample data
Pop. varianceσ² = Σ(xᵢ−μ)² / nUse when you have all data
Sample std devs = √s²Same units as original data
Pop. std devσ = √σ²Divides by n, not n−1
Rangemax − minSensitive to extreme outliers

Standard Deviation Calculator FAQ

What is the difference between sample and population standard deviation?
Sample standard deviation (s) divides the sum of squared deviations by n−1. Population standard deviation (σ) divides by n. Use sample std dev when your data is a subset drawn from a larger group; use population std dev when your list contains every member of the group you are studying.
When should I use sample vs population standard deviation?
In practice, use sample standard deviation for almost all real-world analyses — surveys, experiments, A/B tests, research studies — because you are rarely measuring an entire population. Use population standard deviation only when you have genuinely collected data on every single member, such as measuring every bolt a machine produced in one specific batch.
What does a standard deviation of 0 mean?
A standard deviation of 0 means every value in your dataset is identical. There is no spread at all — every number is exactly equal to the mean. This is rare in real data but can happen in simulations, sensor readings during a flat period, or test datasets with all identical values.
What is a good or bad standard deviation?
There is no universal answer — it depends entirely on the context and the scale of your data. For test scores out of 100, a standard deviation of 10 indicates moderate variability. For a chemical process where precision is critical, a standard deviation of 0.001 might still be unacceptably high. Compare standard deviation relative to the mean using the coefficient of variation (CV = σ/μ × 100%) for a scale-independent measure.
How is variance related to standard deviation?
Variance is the square of standard deviation. Standard deviation is the square root of variance. They measure the same thing — spread — but in different units. Variance is in squared units (e.g., dollars²), which is mathematically convenient for many formulas but hard to interpret. Standard deviation is in the same units as the original data, making it far more practical for reporting and comparison.
Why does sample standard deviation divide by n−1 instead of n?
Dividing by n−1 is called Bessel's correction. When you take a sample, the sample mean is slightly pulled toward the data you happened to collect, making the deviations from that mean appear slightly smaller than they would be from the true population mean. Dividing by n−1 instead of n compensates for this by increasing the result slightly, producing an unbiased estimate of the population variance. This matters most for small samples; for very large n, the difference between n and n−1 becomes negligible.