Skip to main content

SAMPLE SIZE CALCULATOR

Sample size calculator with Slovin, Yamane, and Cochran formulas.

Find the minimum number of respondents for a survey or thesis. Every step is shown so you can copy the working into your methodology chapter.

INPUTS

Slovin's formula

STEP-BY-STEP

Use when the population size is known and you only need to set the margin of error.

METHOD

How to calculate sample size for a thesis or survey

Slovin's formula (Taro Yamane)

n = N ÷ (1 + N·e²)

N is the population size and e is the margin of error as a decimal. For N = 1,200 and e = 0.05: n = 1,200 ÷ (1 + 1,200 × 0.0025) = 1,200 ÷ 4 = 300 respondents.

The formula is short and easy to defend in a methods chapter, which is why it is common in undergraduate and master's research. It quietly assumes maximum variability (p = 0.5).

Cochran's formula with finite population correction

n₀ = z²·p(1 − p) ÷ e² → n = n₀ ÷ (1 + (n₀ − 1) ÷ N)

At 95% confidence (z = 1.96), p = 0.5, and e = 0.05, n₀ = 384.16. For a population of 1,000 the correction gives 277.7, so you need 278 respondents.

Use Cochran when a reviewer may ask about the confidence level, or when a pilot study suggests p is far from 0.5.

Choosing the margin of error

  • 5% — the default for most survey and thesis research
  • 3% — national or high-stakes surveys; needs a much larger sample
  • 10% — sometimes accepted for pilot or exploratory studies

How to write it in your methodology

State the population, the formula, the margin of error (and confidence level for Cochran), and the final rounded sample. The calculator generates this sentence for you; cite Yamane (1967) or Cochran (1977) as your department prefers.

Always round up. If you expect non-response, divide by the expected response rate to decide how many people to invite.

References

  • Yamane, T. (1967). Statistics: An Introductory Analysis (2nd ed.). Harper & Row.
  • Cochran, W. G. (1977). Sampling Techniques (3rd ed.). John Wiley & Sons.
  • Israel, G. D. (1992). Determining Sample Size. University of Florida IFAS Extension, PEOD6.