Population vs Sample Standard Deviation

Population vs sample standard deviation is the difference between describing a whole group and estimating it from part of the group. The population standard deviation (ฯƒ) divides by N, the number of values you have. The sample standard deviation (s) divides by n โˆ’ 1, which makes it a little larger for the same data. The whole choice comes down to one question: do you have every value in the group, or only some of them? This guide gives you that one-question rule, both formulas, two worked examples, and four practice scenarios, so you never have to guess again. You can check any answer against our Standard Deviation Calculator, which shows both ฯƒ and s for the same data.

The confusion is understandable. Both measures use the same starting point, the mean, and the same sum of squared deviations. They differ in exactly one place: the number you divide by. That single difference changes the answer, changes what the number means, and changes which tools give you which value by default. Once you see why the divisor changes, the choice becomes automatic.

The One-Question Decision Rule

Ask yourself one question before you calculate anything: Do I have EVERY value in the group, or only SOME of them?

  1. Do you have the whole group? Use the population standard deviation and divide by N.
  2. Do you have only a sample? Use the sample standard deviation and divide by n - 1.
  3. Are you using the sample to estimate the population? Use the sample standard deviation and divide by n - 1.

That is the whole flowchart in three steps: whole group means population; sample means sample; estimating the population from a sample means sample. If you can answer the one question, you have already chosen the right formula. The rest of this page shows you why the rule works, what each formula does, and where people go wrong.

Population vs Sample Standard Deviation Formula

The population standard deviation formula and the sample standard deviation formula look almost identical. Both take the square root of the average squared distance from the mean. The only difference is the divisor.

Population standard deviationSample standard deviation
ฯƒ = โˆš( ฮฃ(x โˆ’ ฮผ)ยฒ / N )s = โˆš( ฮฃ(x โˆ’ xฬ„)ยฒ / (n โˆ’ 1) )

In these formulas, ฯƒ is the population standard deviation and s is the sample standard deviation. The symbol ฮผ is the population mean, xฬ„ is the sample mean, ฮฃ means add up, x is each value, N is the number of values in the whole population, and n is the number of values in the sample. Both formulas follow the same steps: find the mean, subtract it from each value, square each deviation, add the squared deviations, divide, and take the square root. The step-by-step method is explained in our guide to calculating standard deviation.

Standard Deviation of a Sample vs Population

Here is the same comparison at a glance. The last row uses the worked example below, where the data are 10, 5, 20, 15 and 20.

Population (ฯƒ)Sample (s)
Data usedEvery value in the groupOnly some values, a sample
Mean symbolฮผ (population mean)xฬ„ (sample mean)
Divide the sum of squared deviations byNn โˆ’ 1
What it describesThe spread of that exact groupAn estimate of the population spread
Value for 10, 5, 20, 15, 205.836.52

Population Standard Deviation vs Sample Standard Deviation Example

Take the same five numbers and treat them both ways, so you can see exactly where the answers split apart: 10, 5, 20, 15, 20.

Step 1 โ€” Find the mean. Add the values: 10 + 5 + 20 + 15 + 20 = 70. Divide by 5: 70 รท 5 = 14. The mean is 14.

Value (x)Deviation (x โˆ’ 14)Squared deviation
10โˆ’416
5โˆ’981
20+636
15+11
20+636

Step 2 โ€” Add the squared deviations. 16 + 81 + 36 + 1 + 36 = 170. This sum, 170, is the same for both versions. A useful check: the deviations โˆ’4, โˆ’9, +6, +1 and +6 add up to 0, as they always must.

Population: variance = 170 รท 5 = 34.00, so ฯƒ = โˆš34.00 = 5.83.

Sample: variance = 170 รท 4 = 42.50, so s = โˆš42.50 = 6.52.

Two bell curves with the same mean 14 showing population standard deviation 5.83 and sample standard deviation 6.52
Two bell curves with the same mean (14). The population curve (ฯƒ = 5.83) is taller and narrower; the sample curve (s = 6.52) is wider and flatter, because the same data are spread over a larger standard deviation.

The picture makes the numbers visible. Both curves are centred on 14, but the sample curve is wider and flatter: a larger standard deviation spreads the same data further from the mean. You can see the same effect for any data set when you shade the area under a bell curve within one, two or three standard deviations of the mean. As a check, enter 10, 5, 20, 15 and 20 into our calculator and confirm it gives ฯƒ = 5.83 and s = 6.52.

A Second Worked Example: 10, 12, 13, 15, 20

Here is a second data set, worked the same way, so you can practise the pattern: 10, 12, 13, 15, 20.

Step 1 โ€” Find the mean. 10 + 12 + 13 + 15 + 20 = 70, and 70 รท 5 = 14. The mean is 14 again.

Value (x)Deviation (x โˆ’ 14)Squared deviation
10โˆ’416
12โˆ’24
13โˆ’11
15+11
20+636

Step 2 โ€” Add the squared deviations. 16 + 4 + 1 + 1 + 36 = 58. The deviations sum to 0, as expected.

Population: variance = 58 รท 5 = 11.60, so ฯƒ = โˆš11.60 = 3.406.

Sample: variance = 58 รท 4 = 14.50, so s = โˆš14.50 = 3.808.

Notice the pattern from the first example repeats: the same sum of squared deviations, a smaller divisor for the sample, and a larger result. These numbers are also less spread out than the first data set, so both standard deviations (3.406 and 3.808) are smaller than the first example's (5.83 and 6.52).

Why the Sample Standard Deviation Is Always Bigger

For the same data, the sample standard deviation is always bigger than the population standard deviation, because the two calculations share the same numerator and the sample uses the smaller denominator. The sum of squared deviations is identical; dividing it by n โˆ’ 1 instead of N gives a larger variance, and the square root of a larger variance is larger.

The size of the gap depends only on n. The ratio is s รท ฯƒ = โˆš(N รท (N โˆ’ 1)).

Sample size (n)Ratio s รท ฯƒHow much bigger the sample SD is
5โˆš(5 รท 4) = 1.11811.8% bigger
10โˆš(10 รท 9) = 1.0545.4% bigger
30โˆš(30 รท 29) = 1.0171.7% bigger
100โˆš(100 รท 99) = 1.0050.5% bigger

Check it against the first example: 6.52 รท 5.83 = 1.118, exactly the ratio for n = 5. With small samples the choice matters a lot; with big samples the gap nearly vanishes, which is why the population-versus-sample question is most important when n is small.

Bessel's correction is the name for dividing by n โˆ’ 1 instead of n when you calculate a sample variance or sample standard deviation. It is named after the astronomer Friedrich Bessel, who described the correction in the 19th century.

The correction is needed because the sample mean sits inside the data. Deviations measured from the sample mean are, on average, smaller than deviations measured from the true population mean, because the sample mean is chosen to sit in the middle of that very sample. If you divided by n, you would systematically under-estimate the population variance. Dividing by the slightly smaller n โˆ’ 1 inflates the result just enough to correct that under-estimate, so the sample variance becomes an unbiased estimate of the population variance.

The formal definitions behind these formulas are set out in the NIST/SEMATECH e-Handbook of Statistical Methods.

The n โˆ’ 1 comes from degrees of freedom: the number of values that are free to vary once something else is fixed. When you calculate a sample variance, you first calculate the sample mean, and that fixes one thing about the data.

Take the first example: five values with a mean of 14. The five deviations from the mean must add up to 0. That means you can choose the first four deviations freely, but the fifth is then forced: it must be whatever makes the total zero. Only four deviations are free, so there are n โˆ’ 1 = 4 degrees of freedom, and you divide by 4. In general, once the mean is fixed, n โˆ’ 1 values are free and the last one is determined, which is why the sample variance divides by n โˆ’ 1 and not by n.

When to Use Sample Standard Deviation

Use the sample standard deviation whenever you have only part of a larger group, or whenever you are using that part to say something about the whole group. That covers most real work: surveys, experiments, quality checks and any study where measuring everyone is impossible or impractical.

  • You surveyed 200 voters and want to describe all voters.
  • You tested 50 batteries and want to estimate the life of all batteries of that type.
  • You are running a test or building a confidence interval, where the sample is standing in for the population.

Use the population standard deviation when you have every value and you are describing only those values, with no attempt to generalise beyond them: a complete class list, a full census, every item in a small batch. If your data are the whole group, there is nothing to estimate, so there is no correction to apply.

Which Standard Deviation to Use

The direct answer: if you have every value in the group, use the population standard deviation (ฯƒ, divide by N). If you have only some of the values, or you are using a sample to estimate the population, use the sample standard deviation (s, divide by n โˆ’ 1). When you are unsure, ask which group your conclusion is about. If the conclusion is about the people or items you actually measured and nobody else, it is a population. If the conclusion is about a larger group you did not fully measure, it is a sample.

Once you have the right standard deviation, you can use it to describe a normal distribution. A bell curve generator draws the curve for your mean and standard deviation, and an empirical rule graph generator shows the 68-95-99.7 percentages. If your data are not bell-shaped, the empirical rule does not apply, and you should compare the empirical rule with Chebyshev's theorem instead.

Tool Defaults: Which Standard Deviation Does Your Tool Give You?

Different tools give different answers for the same data, because their defaults differ. This is the trap that catches most people: NumPy and pandas, for example, disagree by default. Always check which version your tool returns before you use the number.

ToolDefault resultDivides by
Excel =STDEV.P(range)PopulationN
Excel =STDEV.S(range)Samplen โˆ’ 1
TI-84 ฯƒxPopulationN
TI-84 SxSamplen โˆ’ 1
NumPy np.std()Population (ddof = 0)N
NumPy np.std(ddof = 1)Samplen โˆ’ 1
pandas .std()Sample (ddof = 1)n โˆ’ 1
pandas .std(ddof = 0)PopulationN
R sd()Samplen โˆ’ 1
Python statistics.stdev()Samplen โˆ’ 1
Python statistics.pstdev()PopulationN
Our Standard Deviation CalculatorBoth ฯƒ and sShows both

The NumPy-versus-pandas trap, checked against the current documentation on 9 November 2026: NumPy 2.5 documents np.std with ddof = 0 by default, so it returns the population value, 5.83 for our example data. pandas 3.1.1 documents Series.std with ddof = 1 by default, so it returns the sample value, 6.52, for the same data. Both answers are correct for their own definition, and the only way to know which you have is to check the default, or set ddof yourself.

Population vs Sample Standard Deviation Practice

Decide whether each scenario needs the population or the sample standard deviation, then check your answers below.

  1. You have the salaries of all 500 employees in a company. Which standard deviation?
    Answer: POPULATION. You have the whole group, so divide by N = 500.
  2. You survey 30 of the 500 employees and want to describe all 500. Which standard deviation?
    Answer: SAMPLE. You have only some of the group and you are estimating the population, so divide by n โˆ’ 1 = 29.
  3. You have the test scores of an entire class of 25 students. Which standard deviation?
    Answer: POPULATION. The class is the whole group you are describing, so divide by N = 25.
  4. You test 100 light bulbs out of a production run of 10,000. Which standard deviation?
    Answer: SAMPLE. The 100 bulbs are a sample of the 10,000, so divide by n โˆ’ 1 = 99.

If any of these felt tricky, go back to the one-question rule: Do I have every value in the group, or only some of them? Every value means population; only some means sample.

Common Mistakes to Avoid

  • Using the population formula on sample data. This is the most common mistake. It under-states the spread, because dividing by n instead of n โˆ’ 1 gives a smaller value.
  • Using the sample formula on a whole population. This over-states the spread. If you measured everyone, there is nothing to estimate and no correction is needed.
  • Mixing up ฯƒx and Sx on a TI-84. ฯƒx is the population value and Sx is the sample value. Picking the wrong one silently changes your answer.
  • Assuming np.std() gives a sample value. It does not: NumPy defaults to ddof = 0, the population value, while pandas defaults to ddof = 1, the sample value.
  • Reporting a standard deviation without saying which one. Always label ฯƒ or s, and say whether the data are a population or a sample, so a reader can reproduce your number.

One more useful check: if a single value is driving most of the spread, you can see exactly how much with the SD percentage contribution calculator, which breaks down how each standard deviation contributes as a percentage of the total.

Frequently Asked Questions

What is the difference between population and sample standard deviation?

The population standard deviation (ฯƒ) describes the spread of a whole group and divides the sum of squared deviations by N, the number of values. The sample standard deviation (s) describes a sample and divides by n โˆ’ 1, which makes it a little larger for the same data. Use the population value when you have every value, and the sample value when you have only some of them.

When should I use the sample standard deviation instead of the population standard deviation?

Use the sample standard deviation when your data are only part of a larger group, or when you are using the sample to estimate the population value. If you have every value in the group, use the population standard deviation instead.

Why is nโˆ’1 used in the sample variance?

Dividing by n โˆ’ 1 is Bessel's correction. A sample mean sits inside the data, so deviations from it are smaller on average than deviations from the true population mean. Dividing by n โˆ’ 1 instead of n corrects that under-estimate. It also reflects the degrees of freedom: once the mean is fixed, only n โˆ’ 1 deviations are free to vary.

Is the sample standard deviation always bigger than the population standard deviation?

Yes, for the same set of numbers. Both use the same sum of squared deviations, but the sample version divides by the smaller number n โˆ’ 1, so its variance and its standard deviation are larger. The ratio is s รท ฯƒ = โˆš(N รท (N โˆ’ 1)): for n = 5 it is 1.118, and for n = 100 it is only 1.005.

What is Bessel's correction?

Bessel's correction is dividing by n โˆ’ 1 instead of n when you calculate a sample variance or sample standard deviation. It corrects the under-estimate that comes from using the sample mean, which sits inside the data, instead of the true population mean.

How do I calculate the population standard deviation?

Find the mean, subtract the mean from each value, square each deviation, add the squared deviations, divide by N, the number of values, and take the square root. For 10, 5, 20, 15 and 20, the mean is 14, the sum of squared deviations is 170, the population variance is 34.00 and the population standard deviation is 5.83.

Which standard deviation does Excel use by default?

Excel does not pick one for you: you must choose. Use =STDEV.P(range) for a population and =STDEV.S(range) for a sample. The older STDEVP and STDEV functions do the same jobs, but STDEV.P and STDEV.S are the ones to use in new work.

Can I use the sample standard deviation for a whole population?

You can calculate it, but you should not report it as the population value. For a whole population the sample formula divides by n โˆ’ 1 instead of N, so it overstates the spread. Use the population standard deviation when you have every value.

Check Tools

Advertisement
Advertisement

Check Articles

Advertisement