Standard Deviation & Variance Calculator
Paste a list of numbers and calculate population or sample standard deviation with transparent steps. See the mean, variance, range, denominator, sum of squared deviations, and the contribution made by each value.
Your dataset
Separate values with commas, spaces, semicolons, or new lines. Decimals and negative values are supported.
Choose population when the entered values are the complete group you want to describe. Choose sample when they are being used to estimate a larger population.
Population standard deviation
Describes the spread of the complete group entered, using n.
Count
Mean
Population variance
Range
Standard deviation uses the same unit as your input. Variance uses that unit squared. Neither result determines whether the data are normally distributed.
Show calculation details
Sample standard deviation
Selected denominator
Population variance
Sample variance
Sum
Sum of squared deviations
Often written as SS.
Minimum to maximum
Mean ± 1 selected SD
A descriptive interval, not a confidence interval or guaranteed coverage range.
Population variance = 32 ÷ 8 = 4. Standard deviation is the square root, giving 2.
Deviations from the mean
Each deviation is the value minus the mean. Squaring removes its sign and gives larger departures more influence.
| # | Value | Value − mean | Squared deviation |
|---|---|---|---|
| 1 | 2 | -3 | 9 |
| 2 | 4 | -1 | 1 |
| 3 | 4 | -1 | 1 |
| 4 | 4 | -1 | 1 |
| 5 | 5 | 0 | 0 |
| 6 | 5 | 0 | 0 |
| 7 | 7 | 2 | 4 |
| 8 | 9 | 4 | 16 |
Calculate the Result and Inspect Every Step
Paste your values, then choose the result that matches your purpose. The calculator reports population and sample standard deviation, both variances, the mean, sum, range, minimum, maximum, and sum of squared deviations.
Open the calculation details to see each value, its deviation from the mean, and its squared deviation. Those squared values add to SS, the quantity divided by n or n − 1 before taking the square root.
Showing the work matters because two calculators can display different answers simply because one used the population denominator and the other used the sample denominator. The arithmetic should make that difference visible rather than leaving you to guess.
Worked population example: 2, 4, 4, 4, 5, 5, 7, 9
The mean is 5. The squared deviations add to 32.
Swipe horizontally to view the full table.
Population or Sample Depends on Your Question
The choice is not determined by how many values you entered, and it is not determined merely by whether more observations could exist. It depends on what you intend the result to describe.
Use the population calculation when the entered values are the complete group you care about. All scores in one completed class can be treated as a population when the goal is only to describe that class, even though other classes exist.
Use the sample calculation when the observations are being used to estimate variation in a broader process or population. Ten measurements from an ongoing manufacturing process are normally a sample when the conclusion is meant to extend beyond those ten measurements.
Choosing population or sample standard deviation
Swipe horizontally to view the full table.
What n − 1 Corrects—and What It Does Not
The sample mean is calculated from the same observations whose spread is being measured. Once the sample mean is fixed, only n − 1 deviations can vary independently because all deviations must add to zero.
Dividing the squared-deviation total by n − 1 is Bessel’s correction. Under the standard assumptions of independent observations from the same population with finite variance, it makes sample variance an unbiased estimator of population variance.
That statement applies to variance. Taking the square root is nonlinear, so the conventional sample standard deviation remains slightly biased, especially for small samples. The n − 1 result is still the standard practical estimator, but it should not be described as perfectly unbiased standard deviation.
Variance Squares the Unit; Standard Deviation Restores It
If the data are measured in seconds, the standard deviation is also measured in seconds. Variance is measured in seconds squared because each deviation is squared before averaging.
This is why standard deviation is generally easier to interpret beside the mean. A mean of 20 seconds with a standard deviation of 2 seconds remains on one understandable scale. A variance of 4 seconds squared contains the same spread information but is less direct.
Standard deviation is scale-dependent. Converting metres to centimetres multiplies the standard deviation by 100 and the variance by 10,000. Values calculated in different units should not be compared without first putting them on a common scale.
A Large Standard Deviation May Be Telling You About the Tails
Squaring gives distant values disproportionate influence. A value two units from the mean contributes four squared units, while a value ten units away contributes 100.
That sensitivity is useful when large departures matter, but a single extreme observation can dominate the result. Standard deviation does not decide whether the value is an error, a legitimate rare event, or evidence that the distribution has a long tail.
When the data are strongly skewed or contain important extreme values, inspect the distribution and consider a robust measure such as the interquartile range or median absolute deviation. The appropriate measure depends on which part of the spread matters for the decision.
Different measures answer different spread questions
Swipe horizontally to view the full table.
Mean ± Standard Deviation Is Not Automatically a Coverage Rule
The calculator shows mean ± one selected standard deviation as a descriptive interval. It is not a confidence interval and does not guarantee that a particular percentage of the entered values falls inside it.
The familiar 68–95–99.7 rule describes an approximately normal distribution: about 68% within one standard deviation, 95% within two, and 99.7% within three. It should not be applied automatically to skewed, multi-peaked, bounded, seasonal, or heavy-tailed data.
A dataset can have a perfectly valid standard deviation without being normal. Standard deviation measures spread around the mean; it does not test the shape of the distribution.
Why the Calculator Avoids the Tempting Shortcut Formula
A common shortcut calculates variance from the average of the squared values minus the square of the average. Although mathematically equivalent in exact arithmetic, it can lose substantial precision when the values share a large offset and their actual spread is small.
This calculator updates the running mean and corrected sum of squares as each value is read. That approach is commonly associated with Welford’s method and is more reliable for datasets such as 1,000,000,001; 1,000,000,002; and 1,000,000,003.
The final formulas shown on the page remain the ordinary statistical definitions. The running update changes how the computer reaches the result, not which population or sample statistic is being calculated.
Input and Interpretation Boundaries
Enter finite numerical values separated by commas, spaces, semicolons, or line breaks. Decimals and negative values are accepted. The numbers are treated as one unweighted dataset in the order entered.
A single value has population variance and population standard deviation equal to zero because there is no spread within that one-value group. Sample variance and sample standard deviation are unavailable because n − 1 equals zero.
The calculator does not know the units, sampling design, data source, measurement quality, or intended population. It calculates the statistics accurately from the entered numbers, but the meaning and appropriateness of those statistics still depend on the data context.
Standard deviation and variance formulas
Both calculations use the same sum of squared deviations. Population variance divides by n. Sample variance divides by n − 1. The calculator evaluates these definitions with a numerically stable running update.
Formula variables
- Each entered value
- Arithmetic mean of the entered values
- Number of entered values
- Sum of squared deviations from the mean
- Population variance and population standard deviation
- Sample variance and conventional sample standard deviation
Examples
Canonical population dataset
1Input
2, 4, 4, 4, 5, 5, 7, 9
Show result
Result
Count = 8; sum = 40; mean = 5; SS = 32; population variance = 4; population standard deviation = 2.
Use the population result when these eight values are the complete group you intend to describe.
The same values used as a sample
2Input
2, 4, 4, 4, 5, 5, 7, 9, used to estimate a larger population.
Show result
Result
Sample variance = 32 ÷ 7 ≈ 4.571428571; sample standard deviation ≈ 2.138089935.
The mean and SS do not change. Only the denominator changes.
A large offset with a small spread
3Input
1,000,000,001; 1,000,000,002; 1,000,000,003
Show result
Result
Mean = 1,000,000,002; population variance ≈ 0.6666666667; population standard deviation ≈ 0.8164965809.
Adding one billion to every value changes the mean but does not change the variance or standard deviation.
One extreme value changes the spread
4Input
10, 10, 10, 10, 50
Show result
Result
Mean = 18; population variance = 256; population standard deviation = 16.
The value 50 contributes 1,024 of the total 1,280 squared-deviation units.
A single entered value
5Input
42
Show result
Result
Population variance and standard deviation are 0. Sample results are unavailable.
The sample denominator n − 1 would equal zero.
Frequently Asked Questions
Should I use sample or population standard deviation?
Use population standard deviation when the entered values are the complete group you want to describe. Use sample standard deviation when the entered observations are intended to estimate variability in a larger population or ongoing process.
Does having more possible observations automatically make my data a sample?
No. The choice depends on your target. You may use the population result to describe only the observations entered, even when additional observations could theoretically be collected. Use the sample result when you intend to generalize beyond them.
Why is sample standard deviation larger?
For the same nonconstant dataset, sample variance divides SS by n − 1 rather than n. The smaller denominator produces a larger variance and therefore a larger standard deviation.
Does n − 1 make sample standard deviation unbiased?
Not exactly. It makes sample variance unbiased under standard independent-sampling assumptions. Taking the square root introduces some bias into sample standard deviation, although the n − 1 formula remains the conventional practical estimator.
What is the sum of squared deviations?
It is the total obtained after subtracting the mean from every value, squaring each difference, and adding those squares. It is commonly written as SS and forms the numerator of both variance formulas.
What is the difference between variance and standard deviation?
Variance is the average or corrected average of squared deviations. Standard deviation is the square root of variance, returning the result to the original data unit.
Can standard deviation be negative?
No. Squared deviations are non-negative, so variance cannot be negative. Standard deviation is defined as the non-negative square root of variance.
Why is sample standard deviation unavailable for one value?
Sample variance divides by n − 1. With one observation, that denominator is zero. Population spread is still zero because there is no variation within the one-value group.
Does a low standard deviation mean the data are accurate?
No. It means the values are relatively concentrated around their mean. They can still all be systematically wrong, biased, poorly measured, or centered on an incorrect target.
Do outliers affect standard deviation?
Yes. Squaring deviations gives distant observations substantial influence. Investigate the data and its context before removing anything; a distant value may be an error or an important genuine observation.
Does one standard deviation always contain 68% of values?
No. Approximately 68% within one standard deviation is part of the empirical rule for an approximately normal distribution. It is not a universal property of every dataset.
Why does the calculator sometimes use scientific notation?
Scientific notation prevents very small nonzero results from being displayed as zero and keeps extremely large values readable.
What separators can I use?
Separate values with commas, spaces, semicolons, or line breaks. The calculator supports finite decimal and negative values.
Are my dataset values uploaded?
No account or spreadsheet upload is required. The entered values are parsed and calculated in your browser.
References
You might also like
Mean, Median, Mode & Range Calculator
Calculate mean, median, mode, range, sum, count, minimum, maximum, and exact-value frequencies from a list of numbers.
Scientific Calculator
Evaluate real-number expressions with trigonometry, logarithms, powers, roots, factorials, percentages, DEG/RAD modes, scientific notation, keyboard input, and Ans.
Circle Calculator
Calculate a circle's area, circumference, radius, and diameter from any one known measurement.
SLA Deadline Calculator
Add elapsed or business hours to a start time, skip custom non-working days and holidays, apply paused time, and export the deadline.