3tej home
← Math

What is Standard Deviation?

Standard deviation measures how spread out a set of numbers is around their mean. A small value means the data clusters tightly; a large value means it is widely dispersed. This tool computes the mean, sample and population standard deviation, variance, and range for any list you enter, instantly and entirely in your browser.

Interactive calculator

Standard deviation calculator

Sample and population standard deviation.

Mean-
Sample standard deviation-
Population standard deviation-
Variance (sample)-
Min / Max / Count-

Standard Deviation

Mean, median, variance, SD (sample & population) for any list of numbers.

About this tool

The Standard Deviation Calculator computes mean, median, variance, and standard deviation for any data set. Shows both population (σ) and sample (s) standard deviation. Enter comma or space-separated numbers.

How standard deviation is calculated

Standard deviation is the square root of the variance, and variance is the average of the squared distances from the mean. Squaring keeps negative and positive deviations from cancelling and weights large departures more heavily; taking the square root at the end returns the answer to the original units (rupees, kilograms, marks) so it is directly comparable to the data.

Mean (x-bar) = (sum of all values) / n
Variance     = sum of (xi - x-bar)^2 / N        (population, divides by N)
             = sum of (xi - x-bar)^2 / (N - 1)  (sample, Bessel's correction)
Std deviation = square root of variance

The only real choice is whether to divide by N or by N minus 1. Divide by N when your numbers are the entire population you care about. Divide by N minus 1 when they are a sample drawn from a larger group and you want an unbiased estimate of the population spread; the smaller denominator makes the sample value slightly larger to correct for the fact that a sample tends to underestimate true variability.

Worked example

Take the nine numbers loaded in the calculator: 12, 17, 22, 14, 18, 19, 16, 21, 15.

  1. Sum: 12 + 17 + 22 + 14 + 18 + 19 + 16 + 21 + 15 = 154.
  2. Mean: 154 / 9 = 17.111.
  3. Squared deviations: for example (12 - 17.111)^2 = 26.12; repeat for all nine and add them to get a sum of squares of about 92.89.
  4. Population variance: 92.89 / 9 = 10.32, so population SD = square root of 10.32 = 3.21.
  5. Sample variance: 92.89 / 8 = 11.61, so sample SD = square root of 11.61 = 3.41.
Result: The mean is 17.11. The population standard deviation is about 3.21 and the sample standard deviation about 3.41. The sample value is the larger of the two because it divides by 8 instead of 9, the Bessel correction in action.

Descriptive statistics quick reference

MeasureFormulaBest when
Mean (arithmetic average)sum / nSymmetric data, no outliers
MedianMiddle value when sortedSkewed data (income, house prices)
ModeMost frequent valueCategorical data
Rangemax - minQuick spread; sensitive to outliers
VarianceΣ(xi - mean)² / nSpread; in squared units
Standard deviation (σ)√VarianceSpread in original units
IQR (interquartile range)Q3 - Q1Robust spread, ignores outliers

The normal distribution

The bell curve. Most natural measurements (heights, IQ, exam scores) approximate normal. Key properties:

  • ~68% of values fall within 1 σ of mean
  • ~95% within 2 σ
  • ~99.7% within 3 σ

A z-score expresses how many σ a value is from the mean: z = (x - mean) / σ. z = 1.96 corresponds to the 97.5 percentile (95% confidence interval bound).

Hypothesis testing decoder

TestUse whenTells you
t-test (one sample)Compare one mean to a known valueIs sample mean different from this number?
t-test (independent)Compare means of two groupsAre these two groups different?
t-test (paired)Compare same subjects before/afterDid treatment change the outcome?
ANOVACompare means of 3+ groupsIs at least one group different?
Chi-squareCategorical data (e.g., 2x2 tables)Is there association between categories?
Pearson correlationLinear relationship between 2 continuous variablesStrength and direction (-1 to +1)
Linear regressionPredict one variable from anotherSlope, intercept, R^2 fit

P-value interpretation

The p-value is the probability of seeing data this extreme (or more) IF the null hypothesis were true. Common misuses:

  • p < 0.05 does NOT mean 'effect is real'. With many tests, ~5% will be false positives.
  • p > 0.05 does NOT mean 'no effect'. Could be underpowered.
  • Effect size matters more than p. A statistically significant 0.1% difference is rarely practically important.

Sample size for confidence intervals

For estimating a proportion within ±3 percentage points (e.g., a poll):

  • 95% confidence: n ≈ 1,067
  • 99% confidence: n ≈ 1,843
  • For ±5%: n ≈ 384 (95%) or 664 (99%)

This is why political polls cluster around n=1,000.

Related tools

Frequently asked questions

What is the difference between population and sample standard deviation?

Population standard deviation divides the sum of squared deviations by N, the total count, and is used when your numbers are the entire group you care about. Sample standard deviation divides by N minus 1, known as Bessel's correction, and is used when your numbers are a sample from a larger population. The sample value is always slightly larger, which corrects for a sample's tendency to underestimate true spread.

Should I use standard deviation or variance?

They contain the same information; standard deviation is just the square root of variance. Variance is in squared units (squared rupees, squared marks), which is hard to interpret, while standard deviation is in the original units and is directly comparable to the data and the mean. Report standard deviation for readers and use variance mainly inside further calculations.

What does the 68-95-99.7 rule mean?

For data that follows a normal bell curve, about 68 percent of values lie within one standard deviation of the mean, about 95 percent within two, and about 99.7 percent within three. It is a fast way to judge whether a value is typical or unusual: a point more than two standard deviations from the mean sits in the outer 5 percent of a normal distribution.

Why is standard deviation never negative?

It is built from squared deviations, which are always zero or positive, and the square root of a non-negative number is non-negative. The smallest possible value is zero, which happens only when every data point is identical, meaning there is no spread at all. If a tool ever shows a negative standard deviation, it is a bug.

How do outliers affect standard deviation?

Strongly. Because deviations are squared, a single far-away value can inflate the standard deviation out of proportion to the rest of the data. For data with extreme values or heavy skew, the interquartile range is a more robust measure of spread, and the median is a more robust centre than the mean.

IT
India Tools Editorial
Calculators & explainers maintained by the India Tools team.