Standard Deviation Calculator

Enter your values below and click Calculate for instant results.

Separate values with commas, spaces, or line breaks, whichever is easiest.
Standard Deviation
0
Sample Standard Deviation

What Does Your Standard Deviation Mean?

How We Calculated Your Standard Deviation

Deviation Table

Valuex − mean(x − mean)²

What Is Standard Deviation?

Standard deviation is a number that describes how spread out the values in a data set are around their mean. The mean is the arithmetic average. The standard deviation helps describe how far the individual values tend to sit from that average.

Imagine two classes both have an average test score of 80. Class A scores 78, 79, 80, 81, 82. Class B scores 50, 65, 80, 95, 110. Both groups have a mean of 80. But the data does not behave the same way. The first class is tightly clustered around 80. The second class is much more spread out. That is exactly the kind of difference standard deviation helps describe.

A smaller standard deviation generally means the observations are more tightly clustered around the mean. A larger standard deviation means they are more spread out. But remember: a standard deviation is measured in the same units as the original data. That means whether a value such as 5 is "large" or "small" depends on the scale and context of the data.

The National Library of Medicine also describes standard deviation as a way to measure how dispersed data is in relation to its mean. Values with a smaller standard deviation tend to cluster more closely around the average, while a larger standard deviation reflects greater spread. You can see the National Library of Medicine's standard deviation explanation and worked example for another reference.

Same Average. Very Different Spread.
Same mean but different standard deviation. Set A (78 to 82) clusters tightly around 80. Set B (50 to 110) spreads much farther from the same average.

How Do You Find the Mean?

Before calculating standard deviation, you need the mean. Suppose the data is 2, 4, 4, 4, 5, 5, 7, 9. Add the numbers: 2 + 4 + 4 + 4 + 5 + 5 + 7 + 9 = 40. There are 8 values. Mean: 40 ÷ 8 = 5. The mean becomes the center point used in the standard deviation calculation.

What Is a Deviation?

A deviation is simply the distance from a data value to the mean, with direction. If the mean is 5 and the observation is 7, the deviation is 7 - 5 = +2. If the observation is 2, the deviation is 2 - 5 = -3. Positive means the value is above the mean. Negative means it is below the mean. If the value equals the mean, the deviation is 0.

Deviation = Value Minus Mean
2-3 from mean
Mean = 50 from mean
7+2 from mean
2 sits 3 below the mean. 7 sits 2 above the mean. 5, the mean itself, has a deviation of 0.

Why Don't We Just Average the Deviations?

Because positive and negative deviations cancel. Using 2, 4, 4, 4, 5, 5, 7, 9 with mean 5, the deviations are -3, -1, -1, -1, 0, 0, 2, 4. Add them: -3 -1 -1 -1 + 0 + 0 + 2 + 4 = 0. That is not an accident. For arithmetic-mean data, the signed deviations around the mean sum to zero. So averaging the raw deviations would tell us nothing useful about total spread. We need a way to make all those distances contribute positively. That is why we square the deviations.

Why Do We Square the Deviations?

Squaring turns both negative and positive deviations into nonnegative values. For example: -3² = 9. 2² = 4. 4² = 16. It also gives more weight to observations that sit farther from the mean. After the squared deviations are averaged, we obtain variance.

From Deviation to Squared Deviation
Value 2, Mean 5
Deviation: 2 - 5 = -3
Square it: (-3)² = 9
Value 7, Mean 5
Deviation: +2
Square it: 2² = 4
Squaring prevents positive and negative distances from canceling.

What Is Variance?

Variance is the average squared distance from the mean, using the appropriate population or sample denominator. For the population data 2, 4, 4, 4, 5, 5, 7, 9, we found the sum of squared deviations equals 32. There are 8 observations. Population variance: 32 ÷ 8 = 4. The variance is 4. But there is one issue. The original data values were measured in their original units. If those values represented feet, variance would be in square feet. That can be harder to interpret. Standard deviation fixes that.

How Does Variance Become Standard Deviation?

Take the square root of the variance. Variance: 4. Square root: √4 = 2. Therefore, Population Standard Deviation = 2. Because we take the square root, standard deviation returns to the same general unit as the original measurements.

Variance to Standard Deviation
Squared Deviations
Average Them
Variance = 4
Take Square Root
Standard Deviation = 2

What Is Population Standard Deviation?

Use population standard deviation when your values represent the entire population you want to describe. The symbol commonly used is σ, Greek lowercase sigma. The formula is σ = √[Σ(xᵢ − μ)² / N], where xᵢ is each individual value, μ is the population mean, N is the number of values, and Σ means sum. The important part for a beginner is that population variance divides by N. Then standard deviation is the square root of that variance.

What Is Sample Standard Deviation?

Use sample standard deviation when your values are a sample taken from a larger population. The common symbol is s. The sample formula uses N-1, or more commonly written n-1, in the denominator. Formula: s = √[Σ(xᵢ − x̄)² / (n-1)], where x̄ is the sample mean and n is the sample size.

Why Does Sample Standard Deviation Use N-1?

When a sample is used to estimate variation in a larger population, dividing by n tends to underestimate the population variance. Using n-1 corrects that downward tendency. This adjustment is commonly called Bessel's Correction. You do not need to memorize the name to use the calculator. The key question is: do these values represent the entire group, or only a sample from a larger group? That determines which setting to choose.

Population vs Sample
Do you have the whole group?
YES
Population
Divide by N
Example: all 30 students in one class
NO, I have a subset used to represent a bigger group
Sample
Divide by N-1
Example: 10 students chosen from a school of 800

Does Sample Standard Deviation Always Give a Larger Number?

For the same nonconstant data set, sample standard deviation is generally slightly larger than population standard deviation because the sample calculation divides the squared-deviation total by n-1 instead of n. Example: suppose the sum of squared deviations is 32 and n = 8. Population variance: 32 ÷ 8 = 4. Population standard deviation: √4 = 2. Sample variance: 32 ÷ 7 ≈ 4.5714. Sample standard deviation: √4.5714 ≈ 2.138. Same data. Different statistical purpose.

What Does a Standard Deviation of Zero Mean?

A standard deviation of 0 means every observation is identical. Example: 5, 5, 5, 5, 5. Mean: 5. Every deviation: 0. Every squared deviation: 0. Variance: 0. Standard deviation: 0. There is no spread at all.

Zero Spread vs Some Spread
Set A (5, 5, 5, 5, 5) has SD = 0, every dot stacks in one place. Set B (1, 3, 5, 7, 9) spreads across the scale, so SD is greater than 0.

What Does a Large Standard Deviation Mean?

It means values are more spread out relative to their mean in the units of that data. But "large" must always be interpreted in context. A standard deviation of 5 inches in adult human height data would represent enormous variation. A standard deviation of 5 points in a test scored from 0 to 100 may represent fairly concentrated scores. The raw number cannot be judged without understanding the unit, the typical size of the measurements, and the data's purpose.

Can Two Data Sets Have the Same Standard Deviation but Different Means?

Yes. Consider 10, 12, 14 and 100, 102, 104. The second data set is centered much higher. But the spacing between the observations is identical. Their standard deviations are the same. Standard deviation measures spread, not location. The mean tells you where the center is. Standard deviation tells you how dispersed the values are around that center.

What Is the Coefficient of Variation?

Sometimes you want to compare spread across data sets with very different scales. The coefficient of variation can help. Formula: CV = Standard Deviation ÷ |Mean| × 100%. Suppose Data Set A has Mean = 50, SD = 5. CV: 5 ÷ 50 × 100 = 10%. Data Set B has Mean = 500, SD = 25. Its standard deviation is larger, 25. But relative to its mean: 25 ÷ 500 × 100 = 5%. So Data Set B has a smaller relative spread even though its raw standard deviation is numerically larger. Coefficient of variation should be interpreted carefully when the mean is zero or close to zero.

Raw SD vs Relative Spread

Data A

Mean = 50
SD = 5
CV = 10%

Data B

Mean = 500
SD = 25
CV = 5%
A bigger raw standard deviation does not always mean bigger relative variation.

What Is the 68-95-99.7 Rule?

For data that is approximately normally distributed, a useful pattern exists. About 68% of observations fall within 1 standard deviation of the mean. About 95% fall within 2 standard deviations. About 99.7% fall within 3 standard deviations. This is often called the 68-95-99.7 rule, or the Empirical Rule. But this rule should NOT be applied blindly to every data set. It specifically describes the familiar bell-shaped normal distribution. A strongly skewed data set or a data set with unusual structure may not follow these percentages.

Normal Distribution
These percentages apply to approximately normal distributions, not automatically to every data set.

How Would I Use the 68-95-99.7 Rule?

Suppose normally distributed test scores have Mean = 80, Standard deviation = 5. One standard deviation from the mean is 80 - 5 = 75 to 80 + 5 = 85. So approximately 68% of observations would fall between 75 and 85. Two standard deviations: 80 ± 10 = 70 to 90. Approximately 95% would fall in that interval. Three: 80 ± 15 = 65 to 95. Approximately 99.7% would fall there. Again, this interpretation depends on the distribution being approximately normal.

What Is Standard Error?

Standard deviation and standard error are related but not identical. Standard deviation describes how spread out the observations are. Standard error of the mean describes how much uncertainty there is in the sample mean as an estimate. A common formula is SE = s / √n. Suppose sample standard deviation is 10 and sample size is 100. Standard error: 10 ÷ √100 = 10 ÷ 10 = 1. If the sample size becomes larger while standard deviation remains similar, standard error generally becomes smaller. That is because more observations provide a more precise estimate of the mean.

Is Standard Error the Same as Standard Deviation?

No. They answer different questions. Standard Deviation asks: how spread out are the observations? Standard Error asks: how precisely has the sample mean been estimated? The terms should not be used interchangeably.

Standard Deviation vs Standard Error

Standard Deviation

Spread of individual observations.

Standard Error

Uncertainty in the estimated sample mean.
SE = s / √n

What Is Variance Used For?

Variance appears throughout statistics, probability, research, finance, machine learning, quality control, and experimental analysis. Even when standard deviation is easier to interpret directly, variance is mathematically useful because squared quantities behave conveniently in many statistical formulas.

Where Is Standard Deviation Used in Real Life?

Standard deviation is widely used. In education, it compares variation in test scores. In manufacturing, it measures consistency in product dimensions or production quality. In research, it describes variation among experimental observations. In weather, it compares temperature variability between locations or time periods. In finance, it describes historical variability in returns, though standard deviation alone does NOT tell you whether an investment is good, safe, or appropriate; it measures one form of dispersion. In health and science, it compares variation in measurements such as laboratory results or biological data. In sports, it analyzes consistency in player performance. In business, it measures variation in sales, processing times, demand, or operational performance.

Can Standard Deviation Be Negative?

No. Standard deviation is always zero or positive. Why? Because deviations are squared before averaging. Squared values cannot be negative. Variance is therefore nonnegative. The square root of a nonnegative variance is also nonnegative.

Can Variance Be Zero?

Yes. It equals zero when all observations are identical.

Can an Outlier Change Standard Deviation?

Yes. Because deviations are squared, observations far from the mean can have a substantial effect. Suppose 10, 11, 12, 13, 14. Then add 100. That distant value greatly increases the spread. Standard deviation will increase. This sensitivity is useful when large departures matter, but it also means standard deviation can be strongly affected by outliers.

Effect of an Outlier
Distant outliers can increase standard deviation substantially.

Does Standard Deviation Tell Me Whether Data Is Normal?

No. A standard deviation value alone does not tell you the shape of the distribution. Two data sets can have the same mean and the same standard deviation while having completely different shapes. One might be bell-shaped. Another might be skewed. Another might contain two clusters. That is why visualizations such as histograms, dot plots, box plots, and distribution plots can be useful alongside summary statistics.

Why Show the Data Visually?

Statistics compress information. That is useful. But compression can hide patterns. Mean and standard deviation may tell you center and spread. A graph may reveal outliers, clusters, gaps, skew, or unexpected patterns. That is why this page combines numbers, formulas, and visual explanations.

What Is the Range?

Range is Maximum minus Minimum. Suppose the smallest value is 9. Largest: 31. Range: 31 - 9 = 22. Range is easy to understand, but it uses only two observations. Standard deviation uses every observation. That makes them different measures of spread.

Is Range the Same as Standard Deviation?

No. Range looks only at minimum and maximum. Standard deviation considers how every observation relates to the mean. A data set can have the same range as another data set while having very different internal distributions.

What Is the Most Important Thing to Remember About Standard Deviation?

Do not treat it as a mysterious button that returns a statistic. Think of the process: find the center, measure how far each observation is from that center, square those distances, average them appropriately, take the square root. That final number summarizes how spread out the data is around its mean.

What Should You Leave This Page Knowing?

Do not leave knowing only "my standard deviation is 7.36." Leave knowing what the mean represents, what a deviation is, why signed deviations cannot simply be averaged, why deviations are squared, what variance represents, why standard deviation is the square root of variance, the difference between Population and Sample standard deviation, why Sample uses N-1, what a standard deviation of zero means, that standard deviation must be interpreted in context, how coefficient of variation can describe relative spread, the difference between standard deviation and standard error, that the 68-95-99.7 rule applies specifically to approximately normal distributions, that outliers can strongly affect standard deviation, and that standard deviation does not describe distribution shape by itself.

And most importantly: you can see how the calculator arrived at the answer. That is what the CalculateThisWay Standard Deviation Calculator should help you understand.

Practice With Standard Deviation

Problem 1: Population Standard Deviation. Data: 2, 4, 4, 4, 5, 5, 7, 9.
Mean: 5
Sum Squared Deviations: 32
Population Variance: 32 ÷ 8 = 4
Population Standard Deviation: √4 = 2
Problem 2: Sample Standard Deviation. Same data: 2, 4, 4, 4, 5, 5, 7, 9.
Mean: 5
Sum Squared Deviations: 32
Sample Variance: 32 ÷ 7 ≈ 4.5714
Sample Standard Deviation: √4.5714 ≈ 2.1381
Problem 3: Zero Standard Deviation. Data: 10, 10, 10, 10.
Mean: 10. All deviations: 0. Variance: 0.
Standard Deviation: 0
Problem 4: Range. Data: 9, 12, 15, 22, 31.
Minimum: 9. Maximum: 31.
Range: 31 - 9 = 22
Range and standard deviation are both measures related to spread, but they are not the same statistic.
Problem 5: Coefficient of Variation. Mean: 50. Standard deviation: 5.
CV: 5 ÷ 50 × 100
CV: 10%
Problem 6: Standard Error. Sample standard deviation: 12. Sample size: 36.
SE: 12 ÷ √36 = 12 ÷ 6
SE: 2

Try It Yourself

Data: 5, 5, 5, 5, 5. What is the standard deviation?

Standard Deviation Terms at a Glance

TermMeaning
MeanArithmetic average
DeviationValue minus mean
VarianceAverage squared deviation using the appropriate denominator
Population SDSpread of an entire population
Sample SDEstimate of population spread from a sample
NPopulation count
n-1Sample variance denominator
RangeMaximum minus minimum
Standard ErrorEstimated uncertainty in a sample mean
Coefficient of VariationStandard deviation relative to the magnitude of the mean

Standard Deviation Calculator or Another Math Tool?

Standard Deviation Calculator

I need to measure the spread or variability in a data set.

You are here

Statistics Calculator

I need a broader summary of my data with multiple statistics.

Open Statistics Calculator →

Percentage Calculator

I need percentage, increase, decrease, or percent-change calculations.

Open Percentage Calculator →

Random Number Generator

I need to generate random values rather than analyze existing data.

Open Random Number Generator →

Scientific Calculator

I need advanced arithmetic, roots, powers, logarithms, or trigonometry.

Open Scientific Calculator →

Questions People Actually Ask

What is standard deviation?

Standard deviation measures how spread out data values are around their mean.

What does a low standard deviation mean?

Values are relatively clustered around the mean, but whether the value is considered "low" depends on the scale and context.

What does a high standard deviation mean?

Values are more spread out around the mean, but the numerical size must be interpreted relative to the data and its units.

Can standard deviation be negative?

No. Standard deviation is always zero or positive.

What does a standard deviation of zero mean?

Every value in the data set is identical.

What is population standard deviation?

It describes variability in the entire population being studied.

What is sample standard deviation?

It estimates variability in a larger population using data from a sample.

What is the difference between sample and population standard deviation?

Population variance divides by N. Sample variance divides by n-1.

Why does sample standard deviation use N-1?

The adjustment helps correct the tendency of sample variance calculated with n in the denominator to underestimate population variance.

What is Bessel's correction?

It is the use of n-1 instead of n in the usual sample variance formula.

What is variance?

Variance is the average squared deviation from the mean, using the appropriate population or sample denominator.

Is variance the same as standard deviation?

No. Standard deviation is the square root of variance.

Why do we square deviations?

Squaring prevents negative and positive deviations from canceling and gives additional weight to larger distances from the mean.

What is the mean?

The arithmetic average of the observations.

What is the range?

Maximum value minus minimum value.

Is range the same as standard deviation?

No. Range uses only the minimum and maximum, while standard deviation incorporates every observation.

What is the 68-95-99.7 rule?

For approximately normal data, about 68% of observations fall within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3.

Does the 68-95-99.7 rule apply to every data set?

No. It is associated with approximately normal distributions.

What is coefficient of variation?

It is standard deviation divided by the magnitude of the mean, usually expressed as a percentage, and can help compare relative spread.

What is standard error?

Standard error estimates the uncertainty in a sample statistic such as the sample mean.

Is standard error the same as standard deviation?

No. Standard deviation describes spread among observations; standard error describes uncertainty in an estimate.

Can outliers affect standard deviation?

Yes. Distant values can have a large effect because deviations are squared.

Does a larger standard deviation always mean worse data?

No. Standard deviation describes variability, not whether the data is good or bad.

Can two data sets have the same mean but different standard deviations?

Yes.

Can two data sets have different means but the same standard deviation?

Yes.

Does standard deviation tell me whether data is normally distributed?

No. Distribution shape requires additional information or visualization.

How many values do I need for sample standard deviation?

At least two values are required for the usual sample standard deviation formula.

Standard Deviation Formulas & Methodology

Population Mean

μ = Σxᵢ / N. The sum of every value divided by the population count.

Sample Mean

x̄ = Σxᵢ / n. The sum of every value divided by the sample count.

Population Variance

σ² = Σ(xᵢ − μ)² / N. The average squared deviation from the population mean.

Sample Variance

s² = Σ(xᵢ − x̄)² / (n − 1). The average squared deviation from the sample mean, using Bessel's correction.

Population Standard Deviation

σ = √[Σ(xᵢ − μ)² / N]. σ is the population standard deviation, xᵢ is each individual value, μ is the population mean, N is the population size, and Σ means sum.

Sample Standard Deviation

s = √[Σ(xᵢ − x̄)² / (n − 1)]. s is the sample standard deviation, x̄ is the sample mean, and n is the sample size.

Range

Range = Maximum − Minimum. The distance between the largest and smallest observed values.

Coefficient of Variation

CV = Standard Deviation ÷ |Mean| × 100%. Standard deviation expressed relative to the size of the mean, useful for comparing spread across data sets with different scales.

Standard Error

SE = s / √n. The estimated uncertainty in a sample mean, using the sample standard deviation and sample size.

How This Calculator Works

CalculateThisWay first parses the user's numeric data and determines the arithmetic mean. Each observation's deviation from that mean is calculated and squared. The squared deviations are summed. For a population, that sum is divided by N. For a sample, it is divided by n-1 using the usual sample-variance estimator. The resulting value is the variance, and its square root is the standard deviation. Supporting statistics such as median, mode, range, coefficient of variation, and standard error are calculated separately when mathematically appropriate. Results may be rounded for display while calculations retain greater internal precision.

This calculator is provided for general-purpose statistical analysis, education, and research support. Standard deviation describes variability in a data set; it does not by itself indicate whether data is good, bad, safe, or normally distributed. Coefficient of variation and standard error are supporting statistics with their own specific meanings and should not be confused with standard deviation itself.