A thesis, 850 students, and one formula
A final-year student I know had to survey her own university. Eight hundred and fifty final-year students, one questionnaire about part-time work, and a supervisor who asked the question every supervisor asks: how many responses do you actually need? She had no pilot data, no earlier survey to lean on, and three weeks to collect it all. Yamane's formula gave her the number in one line of arithmetic: 272.
The formula needs two inputs. N, the size of the population you are sampling from. And e, the margin of error you will live with. That is the whole list. Put them in and the sample size comes out.
Working it out by hand
Take the 850 students and a five-point margin, e = 0.05. Square the margin first: 0.05² = 0.0025. Multiply by the population: 850 × 0.0025 = 2.125. Add one: 3.125. Divide the population by that: 850 ÷ 3.125 = 272. Exactly 272, no rounding needed this time. She needed 272 completed questionnaires.
One example never settles a formula, so here is a second. A town council lists 1,200 registered households and wants a survey with the same five-point margin. 1,200 × 0.0025 = 3, plus 1 is 4, and 1,200 ÷ 4 = 300. Three hundred households. The arithmetic stays this short whatever the population is.
Tighten the margin and the number jumps. The same 850 students at e = 0.03: 850 × 0.0009 = 0.765, plus 1 is 1.765, and 850 ÷ 1.765 = 481.59, rounded up to 482. A tighter margin costs real fieldwork. That is the price of precision, and it is better to see it before the survey starts than after the responses come in short.
Why the number stops growing
Run the formula for a huge population and something odd shows up. At e = 0.05, a population of 5,000 needs 371 people. A population of 100,000 needs 399. A population of ten million needs 400, near enough. The sample size has a ceiling, and the ceiling is 1 ÷ e². At a five-point margin that ceiling is 400.
The reason is simple. Once the population is large, each extra person adds almost nothing to what you know. The first few hundred responses do the work. The rest is rounding. Small populations are different: 100 people need 80 of them, and 300 need 172, because the sample is a big slice of everyone there is.
Population 100 needs 80. Population 300 needs 172. Population 500 needs 223. Population 1,000 needs 286. Population 5,000 needs 371. Population 100,000 needs 399. The curve flattens fast, and past a few thousand the population size barely matters.
Yamane or Slovin? Same formula, two names
If the equation looks familiar, it should. Slovin's formula is n = N ÷ (1 + Ne²), the same symbols in the same order. Taro Yamane published it in his 1967 statistics text, Statistics: An Introductory Analysis. Slovin's name travelled through a different set of textbooks. Two names, one equation, and the calculator on this page returns the same number as the Slovin's formula calculator for the same inputs.
So why a separate page? Because examiners and supervisors ask for Yamane by name. In many universities across Asia and Africa, the methods chapter is expected to say "Yamane's formula" and show this exact equation. A student told to use Yamane should not have to guess whether Slovin's page is the same thing. It is, and this page says so in the open.
What the formula assumes, and what it hides
Three assumptions sit behind the number. First, simple random sampling: every person has the same chance of being picked. Second, the thing being estimated is a proportion, like the share of students working part-time. Third, the worst case for variance, p = 0.5, because the formula never asks for p.
The confidence level is hidden too. The formula behaves like Cochran's formula at z = 2, which is about 95% confidence. It never says that anywhere. A survey that needs 99% confidence, or one estimating a mean rather than a proportion, needs a different formula. The Cochran's formula calculator lets you choose the confidence level and the proportion openly, and the sample size calculator covers the general survey case with the finite population correction.
The margin goes in as a decimal. Type 0.05 for five points, not 5: e = 5 means a 500% margin, and the formula hands back a sample near zero. And remember the answer counts completed interviews. If a third of invitees usually ignore the survey, invite 272 ÷ 0.67, about 406 people, to land 272 replies.
Frequently asked questions
Is Yamane's formula the same as Slovin's formula?
Yes. Both are n = N / (1 + Ne^2). Yamane published it in his 1967 text, Statistics: An Introductory Analysis; Slovin's name spread through other textbooks. The two calculators on this site return identical numbers for identical inputs.
What margin of error should I use?
0.05 is the standard choice in student theses and most surveys: a five-point margin at roughly 95% confidence. Use 0.03 when the decision needs tighter numbers, and expect a much larger sample: the same 850 students need 482 replies at e = 0.03. Use 0.10 only for a rough pilot.
What confidence level does Yamane's formula use?
It does not state one. The algebra matches Cochran's formula with z = 2, about 95.45% confidence, and the worst-case proportion p = 0.5. If your study needs a stated level, use Cochran's formula instead.
When should I not use Yamane's formula?
When estimating a mean rather than a proportion, when the sampling is stratified or clustered rather than simple random, or when you have a solid prior estimate of p far from 0.5. In those cases the formula oversizes or undersizes the study, and Cochran's formula is the honest tool.
Why round the answer up?
The exact value is almost never a whole number: 850 students at e = 0.03 gives 481.59 people. You cannot interview 0.59 of a person, and rounding down to 481 hands back a slightly wider margin than the one you asked for. Round up, always.