Cochran’s Formula Calculator

This Cochran's formula calculator finds the sample size you need for a categorical (proportion) or continuous (mean) variable, then adjusts it for a finite population, design effect and non-response.

Checks on your data

  • Sample-size formulas assume a simple random sample and that most invited people respond. Non-response or a convenience sample can bias the results by far more than the margin of error suggests.

Results

Required sample size (complete responses)
323
after population and design adjustments
People to invite (allowing for non-response)
323
Cochran’s n₀ (infinite population)
385
384.15
After finite population correction
323
z critical value
1.96
Sampling fraction n / N
16.15 %
above 5%: the correction matters
Required sample by population size (same margin and confidence)
0100200300100: 8010080250: 152250152500: 2185002181k: 2781k2782.5k: 3342.5k3345k: 3575k35710k: 37010k37050k: 38250k382100k: 383100k383
Sample size by margin of error and confidence (proportion, p = 50%)
Margin of error90%95%99%
± 1%154416561785
± 2%91710921350
± 3%547697960
± 4%350462684
± 5%239323499
± 10%6692154
Show step-by-step solution
  1. z for 95% confidence = 1.96.
  2. n₀ = z²·p(1 − p) ÷ e² = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.15.
  3. Finite population correction: n = n₀ ÷ (1 + (n₀ − 1)/N) = 384.15 ÷ (1 + 383.15/2000) = 322.39.
Formulan₀ = z²p(1 − p) / e²
Safe p0.5 (largest n)
Small populationApply FPC
AlsoDesign effect, response rate

What Is Cochran's Formula?

Cochran's formula gives the sample size n₀ needed to estimate a proportion within a chosen margin of error at a chosen confidence level for a very large population. For a proportion it uses n₀ = z² p (1 − p) ÷ e²; for a mean it uses n₀ = z² σ² ÷ e².

If your population is small, the finite population correction reduces the required sample, and the calculator also shows how many people to invite once you allow for non-response. Where you do not know the proportion, p = 0.5 is the conservative choice because it gives the largest n₀.

The sections below give the formulas, define each variable, work through an example and answer common questions such as when to apply the correction and how to choose p.

How to Use the Cochran's Formula Calculator

  1. Choose whether you are estimating a proportion or a mean.
  2. Set the confidence level and the margin of error you can accept.
  3. For a proportion enter an expected p or leave 50%. For a mean enter an estimate of the standard deviation from a pilot or earlier study.
  4. Enter the population size if it is limited; leave blank for a large population.
  5. Add a design effect and the response rate you expect to see how many to invite.

Cochran's Formula Formula

Cochran’s formula for proportions

n0=z2 p(1−p)e2n_0=\frac{z^2\,p(1-p)}{e^2}

Cochran’s formula for means

n0=(z σe)2n_0=\left(\frac{z\,\sigma}{e}\right)^2

Finite population correction

n=n01+n0−1Nn=\frac{n_0}{1+\frac{n_0-1}{N}}

Adjusting for design effect and non-response

ninvite=n×DEFFresponse raten_{invite}=\frac{n\times DEFF}{\text{response rate}}

Cochran's Formula Variables Explained

SymbolMeaningNotes
n₀Sample size for a very large population
zCritical value for the confidence level1.96 for 95 %
pEstimated proportion0.5 is the safe choice
eMargin of errorAs a proportion for categorical data
NPopulation sizeUsed in the finite population correction

Cochran's Formula Worked Example

Using the example values (press “Load example” above to try them):

  1. z for 95% confidence = 1.96.
  2. n₀ = z²·p(1 − p) ÷ e² = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.15.
  3. Finite population correction: n = n₀ ÷ (1 + (n₀ − 1)/N) = 384.15 ÷ (1 + 383.15/2000) = 322.39.

Result: Required sample size (complete responses) = 323; People to invite (allowing for non-response) = 323.

When does the finite population correction matter?

If your sample would be more than about 5% of the population, sampling without replacement tells you more about the population than the basic formula assumes, so the required sample shrinks. For a survey of 2,000 employees, the basic formula asks for 385; the correction cuts that to about 323. For a population of one million the correction is negligible.

Sample size for ±5% at 95% confidence (p = 50%)
Population NSample size
10080
500218
1,000278
5,000357
10,000370
100,000383
1,000,000384

Choosing the expected proportion

The term p(1 − p) is largest at p = 0.5, so using 50% guarantees the margin of error you asked for whatever the true proportion turns out to be. If a reliable earlier study suggests the proportion is far from 50%, plugging that value in reduces the required sample, but if you are wrong you will not achieve the intended precision.

Adjusting for the real world

  • Non-response: divide by the expected response rate to get the number of invitations.
  • Design effect: cluster sampling, such as surveying whole classrooms, makes estimates less precise than simple random sampling; multiply by the design effect (often 1.5 to 2).
  • Subgroup analysis: if you want to report results for subgroups, each subgroup needs enough respondents on its own.
  • Stratified samples: allocate the total across strata in proportion to size or by Neyman allocation.

Limits of the formula

Cochran’s formula assumes a probability sample and a roughly normal sampling distribution. It does not fix bias from poor sampling or non-response, and for very small proportions or very small samples exact binomial methods are preferable. Treat the output as the minimum number of valid responses.

Where Cochran's Formula Is Used

Survey design

Setting a target number of completed responses before fieldwork.

Thesis and research proposals

Justifying a sample size with a recognised formula.

Small populations

Reducing the sample when you survey a large share of a small group.

Planning invitations

Working out how many people to contact when not everyone responds.

Common Cochran's Formula Mistakes to Avoid

  • Use 50% for p when unsure.
  • State the confidence level and margin of error when reporting survey results.
  • Round the sample size up, never down.
  • Inflate for expected non-response before you start fielding the survey.

Cochran's Formula Terms and Definitions

Margin of error
The maximum expected difference between the sample estimate and the population value at the chosen confidence.
Design effect
The factor by which a complex sampling design inflates variance compared with simple random sampling.

Cochran's Formula FAQs

What is Cochran’s formula?

A formula for the sample size needed to estimate a population proportion within a given margin of error: n₀ = z²p(1 − p)/e².

What sample size does Cochran’s formula give for 95% confidence and ±5%?

About 385 for a very large population with p = 50%.

What is the finite population correction?

An adjustment that reduces the required sample when the sample is a large share of a small population.

What value of p should I use?

Use 0.5 when the true proportion is unknown. It gives the largest, safest sample size.

How do I use Cochran’s formula for a mean?

Use n₀ = (zσ/e)² with an estimate of the standard deviation and a margin of error in the same units.

How is this different from the Raosoft or Slovin formula?

Raosoft uses essentially the same maths with a finite population correction. Slovin’s formula n = N/(1 + Ne²) ignores confidence level and is a rougher shortcut.

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

Slovin's formula, n = N ÷ (1 + N e²), uses only the population size and margin of error. Cochran's formula also uses the confidence level and the expected proportion, so it states its assumptions openly.

Why does a 5 % margin of error at 95 % confidence give 385?

With p = 0.5, n₀ = 1.96² × 0.25 ÷ 0.05² = 384.16, which is rounded up to 385 for a very large population.

Related calculators

Last updated 2026-11-09. See our disclaimer.