Skip to content

Research methods

Sample size calculator

Find the sample you need, see every step of the working, and copy a sentence for your methods chapter.

How to use Sample size calculator

  1. Choose what you are planning — a survey estimating a proportion or mean, or a study comparing groups or testing a correlation.
  2. Enter your confidence level, margin of error and population size, or your expected effect size, alpha and power.
  3. Add an expected nonresponse rate if you want to know how many people to invite.
  4. Read the result with each formula, the numbers substituted and the rounding step, then copy the methods sentence.

Which formula the calculator uses

For surveys that estimate a proportion it uses Cochran's formula, n0 = z² × p × (1 − p) / e². If you give a population size, it applies the finite population correction n = n0 / (1 + (n0 − 1) / N). With 95% confidence this is the same calculation as Krejcie and Morgan's formula, which uses χ² = 3.841 (1.96²).

Yamane's formula, n = N / (1 + N × e²), is offered because many supervisors ask for it. It has no confidence-level or proportion input, so use Cochran's formula when you need anything other than its built-in assumptions.

For experiments and comparisons it uses power analysis. The two-group t-test result is found by checking the exact power with the noncentral t distribution, the method G*Power uses, so d = 0.5, α = .05 two-tailed and power = .80 gives 64 per group. Two proportions use Fleiss's formula with a continuity correction, and correlations use Fisher's z.

How rounding works and why tables can differ by one

Sample sizes are always rounded up, because rounding down gives slightly less precision or power than you asked for. The unrounded value is shown so you can check it.

The published Krejcie and Morgan table rounds to the nearest whole number instead. For a population of 1,200 the formula gives 291.15: the table lists 291 and this calculator recommends 292. Both are shown, so you can cite the table and still see the exact figure.

What a sample size calculation cannot do

The formulas assume simple random sampling. Cluster, stratified or convenience samples need different calculations, and no formula fixes a biased sample. The power results are only as good as the effect size you enter. Base it on earlier studies or the smallest effect that would matter in practice, not on a convenient benchmark.

Questions

What sample size do I need for a survey?

For a large population with 95% confidence, a ±5% margin of error and p = 0.5, you need 385 responses (384.15 rounded up). For smaller populations the finite population correction lowers this; for example, 1,200 people need 292. If you expect some people not to reply, divide by the expected response rate to find how many to invite.

Krejcie and Morgan vs Cochran — which should I use?

They are the same formula at 95% confidence. Krejcie and Morgan's equation is Cochran's formula with the finite population correction written in one line, using χ² = 3.841. Their 1970 table rounds to the nearest whole number, so a few rows are one lower than the rounded-up result. Cite whichever your department expects and report the inputs.

Why does another calculator give 278 for a population of 1,200?

278 is the Krejcie and Morgan table value for a population of 1,000, not 1,200. With 95% confidence, ±5% and p = 0.5, the correct value for 1,200 is 291.15, listed as 291 in the table and 292 when rounded up. Check the working shown here against your own calculation.

Is Yamane's formula acceptable?

It is widely used and gives a reasonable figure at about 95% confidence with p = 0.5. Its limits are that you cannot change the confidence level or expected proportion, and it gives slightly larger samples than Cochran's formula. Many reviewers prefer Cochran or Krejcie and Morgan because their assumptions are explicit.

Why use p = 0.5?

p × (1 − p) is largest when p = 0.5, so it gives the largest, safest sample when you do not know the expected proportion. If a pilot study or earlier research gives a good estimate, using it will reduce the sample size.

How do I report the sample size in my methods chapter?

Name the formula, give every input (confidence level, margin of error, expected proportion, population size, or effect size, alpha and power) and cite the source. The calculator writes a sentence with all of these that you can adapt.

What effect size should I use for a power analysis?

Use an effect from a similar published study or the smallest effect that would matter in practice. Cohen's d = 0.5 ("medium") is a convention, not evidence. Smaller effects need much larger samples, for example d = 0.2 needs 394 per group.