Cusfly — See Us Fly

Free tool · no sign-up

Free sample size calculator (Yamane, Slovin and Cochran)

Find out how many people to survey for your project. Enter your population and margin of error, see the working, and copy the sentence for your methodology chapter.

Required sample size

371

respondents

How it was worked out

n = N / (1 + N·e²) = 5,000 / (1 + 5,000 × 0.05²) = 370.37, rounded up to 371.

For your methodology chapter

The sample size was determined using Yamane's (1967) formula, n = N / (1 + N(e)²), where N = 5,000 is the population and e = 0.05 is the margin of error. This gives n = 371 respondents.

Reference: Yamane, T. (1967). Statistics: An introductory analysis (2nd ed.). Harper and Row.

Next: build and analyse your questionnaire

Create a free Cusfly account to design your instrument, share a survey link to collect responses, and analyse the results in one place.

Create a free account

Formula 1

Yamane's (Slovin's) formula

The simplest way to size a survey when you know the population:

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

  • n is the sample size and N the population size.
  • e is the margin of error as a decimal: 0.05 for 5%.
  • It's written as Yamane's formula (1967) and also called Slovin's formula: the two are the same equation.
  • It assumes a 95% confidence level and maximum variability, so it gives a cautious (larger) answer.

Formula 2

Cochran's formula

Lets you choose the confidence level and the expected proportion, and works even when the population is unknown or very large:

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

  • z is 1.645 for 90% confidence, 1.96 for 95% and 2.576 for 99%.
  • p is the expected proportion. Use 0.5 when you don't know: it gives the largest sample.
  • For a known, smaller population, adjust it: n = n₀ / (1 + (n₀ − 1) / N). The calculator does this when you enter a population.

Choosing

Which formula should I use?

  • If your department or supervisor names a formula, use that one. Many Nigerian departments expect Yamane's.
  • If you know the population and just need a defensible number, Yamane's is quick and widely accepted.
  • If you need a different confidence level, or don't know the population size, use Cochran's.
  • At 95% confidence and a 5% margin of error, the two give very similar answers for a population of a few thousand.

These formulas size a survey that estimates a percentage from a random sample. They aren't the right tool for experiments or for testing hypotheses with a statistical power analysis, and they don't replace your supervisor's advice.

Questions

About sample size

What if my calculated sample is bigger than my population?
Survey everyone. With a small population, a census is better than a sample.
Why do I need a response rate?
Not everyone you ask will answer. If you expect 70% to respond, divide your sample size by 0.7 to get the number of questionnaires to give out. After you collect responses, describe your data and check your scale's reliability for free.
Should I round up or down?
Always round up, so you never fall below the size the formula asks for. The calculator does this.
Does the sample have to be random?
The formulas assume simple random sampling. If you use another method, such as stratified or convenience sampling, say so in your methodology and justify your choice.
Is my information sent anywhere?
No. The calculation happens in your browser.

Turn your sample into findings

Cusfly helps you design your questionnaire, collect responses and analyse the data. Start free.