Standard Deviation

Calculate mean, variance, and standard deviation.

Enter values above to see results ✦

📖 How Standard Deviation Works

Standard deviation is a statistic that measures how spread out a dataset is relative to its mean (average). It's calculated as the square root of the variance, and it's one of the most widely used measures in statistics, finance, quality control, and scientific research for describing how consistent or variable a set of numbers is.

The Standard Deviation Formula

σ = √[ Σ(xᵢ − mean)² ÷ N ]

For each number in the dataset, subtract the mean, square the result (to eliminate negative signs), average those squared differences (this is the variance), then take the square root to return to the original units. For example, the dataset [10, 25, 40, 15, 30] has a mean of 24, and a population standard deviation of about 10.75 — meaning most values sit within roughly 11 units of the average.

Population vs. Sample Standard Deviation

  • Population Standard Deviation (σ): Used when you have data for every member of the group you're studying — for example, test scores for every student in a specific class.
  • Sample Standard Deviation (s): Used when your data is only a subset drawn from a larger population. It uses "Bessel's correction" (dividing by n−1 instead of n) to provide an unbiased estimate of the true population variance, since samples tend to slightly understate true variability.

How to Interpret Standard Deviation

In a normal distribution (the classic "bell curve"), standard deviation follows a predictable pattern known as the empirical rule:

  • Approximately 68% of data falls within 1 standard deviation of the mean.
  • Approximately 95% of data falls within 2 standard deviations.
  • Approximately 99.7% of data falls within 3 standard deviations.

A small standard deviation means data points cluster tightly around the mean (consistent, predictable); a large one means data is spread widely (variable, less predictable).

Real-World Applications

  • Finance: Standard deviation of returns is a standard measure of investment volatility and risk.
  • Quality control: Manufacturers track standard deviation to ensure products stay within acceptable tolerances.
  • Education: Standardized test scores are often reported relative to the mean and standard deviation of all test-takers.
  • Science: Experimental results report standard deviation to communicate measurement consistency and reliability.
❓ What is variance, and how does it differ from standard deviation?

Variance is the average of the squared differences from the mean. While standard deviation is expressed in the same units as the original data (making it easier to interpret intuitively), variance is expressed in squared units, which is why standard deviation is more commonly reported.

❓ Why square the differences instead of just averaging them directly?

Squaring ensures that negative differences (values below the mean) don't cancel out positive differences (values above the mean) when averaged — without squaring, the differences would always sum to exactly zero, making the measure useless.

❓ Should I use population or sample standard deviation for my data?

Use population standard deviation only if your dataset represents every single member of the group you care about. In almost all practical research, surveys, or experiments, you're working with a sample — so sample standard deviation (with Bessel's correction) is the more commonly appropriate choice.