Slovin's Formula vs Cochran's Formula: Which to Use?

TL;DR: Slovin's formula is n = N / (1 + N × e²), and Cochran's formula starts with n₀ = z² × p × (1 − p) / e², then adjusts for a finite population. Slovin is the quick choice when you know the population and do not need to state a confidence level. Cochran is the choice when you must state a confidence level, such as 95%, or when the population size is unknown. On the same numbers — 1,000 people, a 5% margin of error, 95% confidence — Slovin gives 286 and Cochran gives 278.

If you have ever searched for how to work out a sample size, you have probably met two formulas that look like rivals: Slovin's formula and Cochran's formula. Both answer the same question — how many people do I need to survey? — but they get there in different ways, and they are not interchangeable. Picking the wrong one can leave you unable to answer a basic question about your own survey, such as what confidence level your results carry.

This guide puts the two formulas side by side, works through the same numbers with both of them, and gives you a simple rule for choosing. If you only need one of them, our Slovin's Formula Calculator and our sample size calculator do the arithmetic for you.

Slovin's formula: the quick one

Slovin's formula is the simpler of the two. It needs only two numbers: the population size (N) and the margin of error you can accept (e). The formula is:

n = N / (1 + N × e²)

That is the whole of it. There is no confidence level to choose, no expected proportion to guess, and no second step. This is why students and small-survey planners like it: with a population of 1,000 and a 5% margin of error, the answer is 286 in four short steps. Our guide on what Slovin's formula is works through that calculation in full.

The price of that simplicity is that the formula makes strong silent assumptions. It assumes simple random sampling, it ignores how varied the population is, and — most importantly — it has nowhere to put a confidence level. A result from Slovin's formula can only be described as "plus or minus 5%". It cannot honestly be described as "95% confident, plus or minus 5%", because no confidence level went into the calculation.

Cochran's formula: the standard one

Cochran's formula, published by William G. Cochran in 1963, is the standard sample size formula used in survey research. It works in two steps. First, it calculates the sample size for an infinitely large population:

n₀ = z² × p × (1 − p) / e²

Here, z is the z-score for your confidence level (1.96 for 95% confidence), p is the expected proportion of the population with the characteristic you are measuring, and e is the margin of error as a decimal. When you have no prior guess for p, you use 0.5, which gives the largest and safest sample size. With 95% confidence, p = 0.5 and a 5% margin of error, the first step gives n₀ = 384.16 — the sample size you would need if the population were effectively unlimited.

The second step is the finite population correction, which shrinks that number when the population is actually small enough for it to matter:

n = n₀ / (1 + (n₀ − 1) / N)

For a population of 1,000, this correction brings 384.16 down to about 278. For a population in the millions, the correction barely changes anything, and the answer stays near 384. The two-step structure is the key difference from Slovin: Cochran's formula separates the question "how many do I need in general?" from the question "how much smaller can the sample be because my population is limited?"

Slovin's vs Cochran's: side by side

The table below compares the two formulas on the things that actually decide which one to use.

Slovin's formulaCochran's formula
Formulan = N / (1 + N × e²)n₀ = z² × p × (1 − p) / e², then finite population correction
Population size needed?Yes — it cannot run without NNo — the first step works for an unknown population
Confidence levelNone — it has no place for oneYes — set it with the z-score (1.96 for 95%)
Population variabilityIgnoredIncluded through p
StepsOneTwo
Best forQuick planning, class surveys, homeworkResearch, published results, stated confidence levels

Notice the pattern: everything Slovin's formula leaves out, Cochran's formula asks you to supply. That is the real trade-off. Slovin asks less of you and tells you less in return; Cochran asks more and lets you make a stronger claim about your results.

Worked example: both formulas on the same numbers

Take a survey of a population of 1,000 people, with a 5% margin of error. For Cochran's formula we also set 95% confidence (z = 1.96) and p = 0.5, the cautious choice when you have no prior estimate.

Slovin's formula. Square the margin of error: 0.05 × 0.05 = 0.0025. Multiply by the population: 1,000 × 0.0025 = 2.5. Add 1 to get the denominator: 3.5. Divide: 1,000 / 3.5 = 285.7, which rounds up to 286 people.

Cochran's formula. Step one: z² = 1.96 × 1.96 = 3.8416; p × (1 − p) = 0.5 × 0.5 = 0.25; so n₀ = 3.8416 × 0.25 / 0.0025 = 0.9604 / 0.0025 = 384.16. Step two, the finite population correction: n = 384.16 / (1 + 383.16 / 1,000) = 384.16 / 1.38316 = 277.7, which rounds up to 278 people.

The two answers are close — 286 against 278 — and that is typical. Slovin's formula usually gives a slightly larger sample than Cochran's at 95% confidence, because in effect it bakes in a slightly more cautious assumption. The table below shows the same comparison across different population sizes, all at a 5% margin of error and 95% confidence for Cochran's formula.

Population (N)Slovin's formulaCochran's formula (95%)
1008080
500223218
1,000286278
5,000371357
10,000385370

Two things stand out. First, the answers are within a few percent of each other at every population size, so switching formulas will not rescue a survey that is badly designed in other ways. Second, both formulas level off as the population grows: going from 5,000 to 10,000 people adds only about 14 to the sample, because once the population is large, the margin of error — not the population — decides the sample size.

Which formula should you use?

Use Slovin's formula when the population size is known, you are drawing a simple random sample, and nobody will ask what confidence level your results carry. That covers most school surveys, class projects, small customer surveys and quick planning. It is fast, easy to explain, and the answer is close to what the standard formula gives.

Use Cochran's formula when any of these are true: your work must state a confidence level; the population size is unknown; you have a prior estimate of the proportion and want the sample to reflect it; or the results will be published, graded as research, or used to make a decision others must trust. In those cases the extra step is worth it, because it is the only way to say "95% confident, plus or minus 5%".

There is also a middle path that many people take without realising it: use Slovin's formula to plan quickly, then check the number with the standard formula before the survey goes out. If the two agree within a few percent — and they usually do — you can proceed with confidence. If they disagree sharply, it is a sign that one of your inputs, usually the margin of error or the confidence level, deserves a second look.

One warning applies to both formulas equally: neither of them can fix a biased sample. If the people you survey are not a random cross-section of the population — if you only ask whoever is easiest to reach, or whole groups are left out — then no sample-size calculation, however careful, makes the results representative. The formula tells you how many to ask; only a proper random sample tells you whether the answers mean anything.

Frequently Asked Questions

What is the difference between Slovin's and Cochran's formula?

Slovin's formula (n = N / (1 + N x e²)) needs a known population size and has no place for a confidence level. Cochran's formula starts from an infinite population, uses a z-score for your confidence level and an expected proportion, and then adjusts the result for a finite population.

Which formula gives a bigger sample size, Slovin's or Cochran's?

Slovin's formula usually gives a slightly larger number. For a population of 1,000 at a 5% margin of error and 95% confidence, Slovin's gives 286 and Cochran's gives 278. The gap is small, and it shrinks further as the population grows.

Can I use Cochran's formula if I do not know the population size?

Yes. That is one of its strengths. Cochran's first step, n0 = z² x p x (1 - p) / e², assumes an infinite population, so it works without any population size at all. You only need the population size for the second step, the finite population correction.

What z-score do I use for 95% confidence in Cochran's formula?

Use 1.96 for 95% confidence, which is the most common choice. For 90% confidence use 1.645, and for 99% confidence use 2.576. A higher confidence level always needs a larger sample.

Which formula should I use for a school survey or homework?

Use Slovin's formula when the population is known and nobody asks for a confidence level — that covers most class surveys and homework. Use Cochran's formula when your work must state a confidence level, such as 95%, or when the population size is unknown.

References

  1. Weisstein, Eric W. "Slovin's Formula." MathWorld, Wolfram Research. Source
  2. Yamane, Taro (1967). Elementary Sampling Theory. Prentice-Hall. Source
  3. Ryan, Thomas P. (2013). Sample Size Determination and Power. Wiley. Source
  4. Cochran, William G. (1977). Sampling Techniques, 3rd ed. Wiley. Source

The formula is commonly attributed to Slovin (1960); no 1960 publication by Slovin can be verified — Yamane (1967) is the oldest published source of the identical formula.