Cochran’s Formula Calculator

Enter the confidence level, margin of error and expected proportion (or standard deviation) to get Cochran’s sample size n₀, and add the population size to apply the finite population correction. The page shows each step, a sentence for your methods section and tables for common settings. Calculations run in your browser; nothing you enter is sent or stored.

Cochran’s formula calculator

What you will estimate
Confidence level

z = 1.96

5 means ±5 points, written e = 0.05.

Use 50% if you have no earlier estimate; it gives the largest sample.

Leave empty for a large or unknown population. With N, the finite population correction is applied.

Cochran sample size, n₀

385completed responses

For a large or unknown population. Add the population size to apply the finite population correction.
n₀ before rounding
384.16
n₀ rounded up
385
  1. n₀ = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.16
  2. Round up: 385

To add a response rate, use the survey sample size calculator. To compare groups, use the power analysis calculator.

Methods statement

The sample size was calculated with Cochran’s (1977) formula, n₀ = z²p(1 − p)/e², with z = 1.96 (95% confidence), an expected proportion p = 0.5 and a margin of error e = 0.05, giving n₀ = 384.16. A minimum of 385 completed responses was therefore required.

Cochran sample size tables

For a proportion with p = 0.5, all values rounded up. The first table is n₀ for a large or unknown population; the second applies the finite population correction at 95% confidence.

Large or unknown population (n₀)

Cochran n₀ by confidence level and margin of error, p = 0.5
Confidence±1%±2%±3%±4%±5%±10%
90% (z = 1.645)6,7661,69275242327168
95% (z = 1.96)9,6042,4011,06860138597
99% (z = 2.576)16,5904,1481,8441,037664166

Finite population, 95% confidence

Cochran sample size with the finite population correction, 95% confidence, p = 0.5
Population N±3%±5%±10%
50484534
100928050
15013210959
20016913266
25020315270
30023516973
35026418476
40029219778
45031720880
50034121881
60038523583
70042324985
80045826086
90048927087
1,00051727888
1,50062430691
2,00069732392
2,50074933493
3,00078834194
3,50081834794
4,00084335194
4,50086335595
5,00088035795
6,00090736295
7,00092736595
8,00094236795
9,00095536996
10,00096537096
15,00099737596
20,0001,01437796
25,0001,02437996
50,0001,04538296
100,0001,05638396
500,0001,06538497
1,000,0001,06638597

Cochran’s formula

For a proportion, such as the percentage of respondents who agree with a statement:

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

For a mean, such as an average score or blood pressure:

n₀ = z² σ² / e²

  • z is the critical value for the confidence level: 1.645 for 90%, 1.96 for 95%, 2.576 for 99%.
  • p is the expected proportion as a decimal; 0.5 gives the largest sample. q = 1 − p.
  • σ is the expected standard deviation of the outcome, from a pilot or earlier study.
  • e is the margin of error: a decimal such as 0.05 for a proportion, or a value in the outcome’s units for a mean.

Cochran wrote the formula with t for the normal deviate and d for the margin; the symbols differ between textbooks but the calculation is the same.

Worked examples

A proportion in a large population. At 95% confidence, p = 0.5 and ±5%:

n₀ = 1.96² × 0.5 × 0.5 / 0.05²
n₀ = 3.8416 × 0.25 / 0.0025
n₀ = 384.16 → 385 respondents

The same survey in a population of 1,000:

n = n₀ / (1 + (n₀ − 1) / N)
n = 384.16 / (1 + 383.16 / 1,000)
n = 384.16 / 1.38316
n = 277.74 → 278 respondents

A mean. To estimate mean systolic blood pressure within ±2 mmHg when the standard deviation is about 15 mmHg, at 95% confidence:

n₀ = (1.96 × 15 / 2)²
n₀ = 14.7²
n₀ = 216.09 → 217 participants

The finite population correction

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

n₀ assumes the population is so large that sampling a few hundred people barely dents it. When the sample would be a sizeable share of the population, the correction lowers the number needed. Cochran’s rule of thumb is that it can be ignored when n₀ is less than about 5% of N; applying it anyway does no harm, because for large N it changes the answer by less than one person.

Some sources write the correction as n₀ / (1 + n₀/N), without the −1. The two differ by at most one respondent. The Krejcie and Morgan table is this corrected formula at 95% and ±5%, and Slovin’s formula is a simplified version with z = 2 and p = 0.5.

When Cochran’s formula fits

  • Use it for descriptive surveys and prevalence studies that estimate one percentage or one mean from a random sample, with a precision you choose.
  • Plan for subgroups: if you will report results separately for men and women, each subgroup needs its own sample for the same precision.
  • Do not use it to compare groups, test hypotheses, or fit regression models; use a power analysis. Cluster samples need the result multiplied by a design effect.
  • Add for non-response: divide n by the response rate you expect; the sample size calculator does this.

How to report it

The sample size was calculated with Cochran’s (1977) formula, n₀ = z²p(1 − p)/e², with z = 1.96 (95% confidence), p = 0.5 and e = 0.05, giving n₀ = 384.16. With the finite population correction for N = 1,000, n = 277.74, so a minimum of 278 completed responses was required.

Reference: Cochran, W. G. (1977). Sampling techniques (3rd ed.). John Wiley & Sons.

Frequently asked questions

What is Cochran’s formula?
Cochran’s formula gives the sample size needed to estimate a proportion within a chosen margin of error: n₀ = z²p(1 − p) / e², where z is the critical value for the confidence level (1.96 for 95%), p the expected proportion and e the margin of error as a decimal. It comes from William G. Cochran’s textbook Sampling Techniques.
Why does Cochran’s formula give 385?
At 95% confidence (z = 1.96), p = 0.5 and a ±5% margin, n₀ = 1.96² × 0.5 × 0.5 / 0.05² = 3.8416 × 0.25 / 0.0025 = 384.16, which rounds up to 385. This is the sample size for a large or unknown population.
What is the finite population correction?
When the population is small, fewer respondents give the same precision. Cochran’s correction is n = n₀ / (1 + (n₀ − 1) / N). For N = 1,000, n = 384.16 / (1 + 383.16 / 1,000) = 277.7, so 278 respondents. Cochran suggests the correction can be ignored when n₀ is less than about 5% of N.
What value of p should I use?
Use p = 0.5 (50%) unless earlier studies or a pilot give a reliable estimate. p = 0.5 makes p(1 − p) as large as possible, so it gives the largest, safest sample. If a similar survey found 20%, p = 0.2 gives n₀ = 246 instead of 385 at 95% and ±5%.
How do I use Cochran’s formula for a mean?
For a continuous outcome use n₀ = z²σ² / e², where σ is the expected standard deviation and e the margin of error in the same units. To estimate mean blood pressure within ±2 mmHg with σ = 15 at 95% confidence, n₀ = (1.96 × 15 / 2)² = 216.1, so 217 participants.
Which z value goes with which confidence level?
The usual two-sided values are 1.645 for 90%, 1.96 for 95%, 2.326 for 98% and 2.576 for 99% confidence. Higher confidence means a larger z and a larger sample: at ±5% and p = 0.5, n₀ is 271 at 90%, 385 at 95% and 664 at 99%.
Is Cochran’s formula the same as Krejcie and Morgan?
In substance, yes. The Krejcie and Morgan (1970) formula is Cochran’s proportion formula with the finite population correction, written with chi-square = 3.841 instead of z² = 1.96². Both give 278 for N = 1,000 at 95% and ±5%. Differences of one come from rounding.
How is Cochran’s formula different from Slovin’s?
Slovin’s formula, n = N / (1 + Ne²), is Cochran’s formula with z = 2 and p = 0.5 built in, so you cannot change the confidence level or the proportion. It gives slightly larger samples, for example 286 instead of 278 for N = 1,000.
Why do some calculators give 384 and others 385?
Because of rounding. n₀ is 384.16 at 95% and ±5%. Cochran’s convention, and this calculator, round up to 385 so the margin is not exceeded. Tables that round to the nearest whole number print 384.
Does Cochran’s formula work for comparing two groups?
No. It sizes a study that estimates one proportion or one mean with a given precision. To compare groups or test a hypothesis you need a power analysis, which also takes the effect size and the power (usually 80%) into account.
How many people should I invite?
Cochran’s n is the number of completed responses. Divide it by the response rate you expect: 385 completed responses at a 60% response rate means inviting about 642 people. The sample size calculator on this site does this step for you.
How do I cite Cochran’s formula?
Cochran, W. G. (1977). Sampling techniques (3rd ed.). John Wiley & Sons. In the text: the sample size was calculated with Cochran’s (1977) formula.

Sources

Content updated 3 December 2026. The tables are computed from the formulas and rounded up; our tests check them against an independent calculation.