TR

Home / Guides / What Is Standard Deviation and How Is It Calculated? Variance Explained With Examples

What Is Standard Deviation and How Is It Calculated? Variance Explained With Examples

Updated: October 13, 2026 · AracMerkezi

▶ Open Median, Mode and Standard Deviation Calculator

The grade averages of two classes can be the same, yet the grades can be distributed very differently: in one, everyone got around 70; in the other, some got 50 and some 90. The mean does not show this difference. How close to or far from the mean the data is is described by the standard deviation. In this guide we will calculate variance and standard deviation step by step with examples, and see the difference between a population and a sample and how to interpret the results.

The basic idea

Standard deviation measures how far, on average, the values stray from the mean. A small standard deviation shows that the values are clustered close to the mean; a large standard deviation shows that the values are spread over a wide range. Its unit is the same as the data's own unit (grade, weight, ₺).

Step-by-step calculation

  1. Find the mean.
  2. Calculate the difference of each value from the mean.
  3. Square each difference.
  4. Find the sum of the squares.
  5. Divide the sum by the divisor: n for a population, n − 1 for a sample. This result is the variance.
  6. Take the square root of the variance. This is the standard deviation.

Example 1: 2, 4, 4, 4, 5, 5, 7, 9

The number of values is 8, the total is 40; the mean is 5.

ValueDifferenceSquare of the difference
2−39
4−11
4−11
4−11
500
500
724
9416

The sum of squares is 32.

Example 2: The same mean, a different distribution

The exam grades of two groups:

Group A's sum of squares is 100 + 25 + 0 + 25 + 100 = 250. The population variance is 50, the standard deviation ≈ 7.07. The sample variance is 62.5; the standard deviation ≈ 7.91.

Group B's sum of squares is 400 + 100 + 0 + 100 + 400 = 1,000. The population variance is 200, the standard deviation ≈ 14.14. The sample variance is 250; the standard deviation ≈ 15.81.

The two groups have the same mean (70), but Group B's standard deviation is about twice as large; the grades are much more spread out. Knowing the mean is not enough to show this difference.

Population or sample?

Why n − 1 for a sample? Because the sample's mean is closer to the data than the population mean is, the raw calculation shows the spread as smaller than it is. Dividing by n − 1 instead of n corrects this tendency (Bessel's correction). As the number of values increases, the two results get closer together. If you are unsure and took your data from a larger group, use the sample formula.

How is standard deviation interpreted?

If the data roughly resembles a bell curve (normal distribution), this rule is useful:

Example: if an exam has a mean of 70 and a standard deviation of 10, about two-thirds of the students scored between 60 and 80; about 95% are between 50 and 90. This rule is not reliable if the distribution is skewed or there are many extreme values.

Coefficient of variation

To compare the spread of data in different units, you divide the standard deviation by the mean and express it as a percentage. For Group B, 14.14 / 70 ≈ 20.2%; for Group A, 7.07 / 70 ≈ 10.1%. This ratio shows how large the standard deviation is relative to the mean.

Where is it used?

Common mistakes

Related guides

To understand the center of the data, see the article The Difference Between Mean, Median and Mode, and for weighted grade calculation, see the Midterm-Final Average guide. To quickly find the average of your grades, there is also the Midterm-Final Average Calculator tool.

Z-score: how many standard deviations from the mean is a value?

The z-score shows how many standard deviations a value is from the mean: z = (value − mean) / standard deviation. If an exam has a mean of 70 and a standard deviation of 10, the z-score of a student who got 85 is (85 − 70) / 10 = 1.5; that is, one and a half standard deviations above the mean. The z-score of a student who got 55 is −1.5. The z-score is useful for comparing grades from different exams: a student with z = 1.5 on exam A and z = 0.5 on exam B performed better relative to their own group on exam A.

A small reminder: mean absolute deviation

Because standard deviation squares the differences, it penalizes large deviations more. Alternatively, the mean of the absolute values of the differences (mean absolute deviation) is also used; it is less sensitive to extreme values but is not as common mathematically as standard deviation. Be sure to state in your report which measure you used.

How do you use the tool?

In the Median, Mode and Standard Deviation Calculator tool, enter your numbers separated by spaces or on separate lines; use a period for decimal numbers. The tool shows both the population and the sample variance and standard deviation, so you can choose the one suited to your data. It also gives the count, sum, mean, median, mode, minimum, maximum and range. The calculation is done in your browser; your data is not sent to a server. For a simple mean, you can use the Average Calculator tool.

Frequently asked questions

What is the difference between population and sample standard deviation?

For a population, the sum of squares is divided by n; for a sample, by n − 1. If you have all of the data, use the population formula; if you measured only a portion, use the sample formula.

What does it mean if the standard deviation is zero?

It means all the values are equal to each other; there is no spread in the data.

What is the relationship between variance and standard deviation?

Standard deviation is the square root of the variance. The unit of variance is the square of the data's unit, while the unit of standard deviation is the data's own unit.

Tools mentioned in this guide

More guides

Important note: Results are estimates based on published coefficients and guides and do not replace official results. For exact information, rely on announcements from ÖSYM, MEB, YÖK or your school.

This article is for general information only and is not legal, financial or medical advice. We are not an official institution.