Slovin’s Formula Calculator (With Steps)

Calculate your sample size with Slovin's formula, n = N / (1 + N·e²), and see every step of the calculation.

Total number of people in the group you are studying.
%
Common choices: 5% (most theses), 3% for more precision, 10% for pilot studies.
Required sample size
—

Step-by-step solution

				
Sample size for other margins of error

Slovin's formula is roughly equal to a 95% confidence level with a 50% response distribution. For other confidence levels, use the sample size calculator.

Slovin’s formula is the quickest way to work out how many people you need to survey when you know the size of your population. Students use it in theses and research papers because it needs only two numbers: the population size and the margin of error you are willing to accept. Use the calculator above, or read on to see how the formula works, how to calculate it by hand and when you should not use it.

What is Slovin’s formula?

Slovin’s formula calculates a sample size (n) from a known population size (N) and a chosen margin of error (e):

n = N / (1 + N × e²)
  • n = the sample size, the number of people you need to survey
  • N = the population size, everyone in the group you want to draw conclusions about
  • e = the margin of error written as a decimal (5% = 0.05)

Always round the result up to the next whole number. Rounding down would give you a margin of error slightly larger than the one you chose.

How to calculate Slovin’s formula step by step

Suppose you are studying the students of a school with 500 students, and you accept a margin of error of 5%.

  1. Write down N and e. N = 500 and e = 0.05.
  2. Square the margin of error. 0.05² = 0.0025.
  3. Multiply by N. 500 × 0.0025 = 1.25.
  4. Add 1. 1 + 1.25 = 2.25.
  5. Divide N by that number. 500 / 2.25 = 222.2.
  6. Round up. You need 223 respondents.

With a population of 1,000 and the same 5% margin, the answer is 1,000 / 3.5 = 285.7, so 286 respondents.

Slovin’s formula sample size table

The table below shows the sample size for common population sizes and margins of error. Notice that the sample size grows much more slowly than the population: at 5% you never need more than 400 respondents, no matter how large the population is.

Population (N)e = 10%e = 5%e = 3%e = 1%
100508092100
20067134170197
50084223345477
1,00091286527910
2,500973457702,000
5,000993719103,334
10,0001003851,0005,000
100,0001003991,0999,091
1,000,0001004001,1109,901

Which margin of error should you choose?

  • 5% is the standard choice for most theses, school research and surveys.
  • 3% when you need more precise results, for example in larger studies or opinion polls.
  • 10% only for pilot studies or when your population is hard to reach. Many supervisors will not accept it for a final thesis.

Check your school’s or supervisor’s guidelines first. Many universities specify the margin of error they expect.

Calculating the margin of error from your sample

Did you collect fewer responses than planned? You can rearrange Slovin’s formula to find the margin of error you actually achieved:

e = √((N − n) / (N × n))

For example, 286 responses from a population of 1,000 gives e = √(714 / 286,000) = 0.050, so a margin of error of 5.0%. Select Find margin of error in the calculator above to do this automatically, or use our margin of error calculator for any confidence level.

Where does Slovin’s formula come from?

The formula is usually credited to “Slovin (1960)”, but no original publication has ever been clearly traced. The same formula appears in Taro Yamane’s statistics textbook from 1967, which is why it is also called Yamane’s formula. If your thesis needs a citable source, many researchers cite Yamane.

Mathematically, Slovin’s formula is a simplified version of Cochran’s formula. It is what you get when you assume a 50% response distribution and a z-score of 2 (about 95.4% confidence), then apply the finite population correction. That explains both its strength and its limits.

When should you not use Slovin’s formula?

Slovin’s formula is popular because it is simple, but statisticians criticise it for good reasons. Avoid it when:

  • You need a different confidence level. Slovin’s formula has no confidence level input. For 90% or 99% confidence, use our sample size calculator.
  • You expect a very uneven response (for example 90% yes, 10% no). The formula always assumes the most conservative 50/50 split, so it overestimates the sample you need.
  • You are comparing groups or testing a hypothesis. Then you need a power analysis, which also takes effect size and statistical power into account.
  • Your study is qualitative. Interviews and focus groups are sized by data saturation, not by a formula.
  • Your sample is not random. No formula fixes a biased sample. A convenience sample of 400 is not more reliable than a random sample of 200.

Slovin vs. Cochran: which should you use?

Slovin’s formulaCochran’s formula
InputsPopulation size, margin of errorMargin of error, confidence level, response distribution (+ population size)
Confidence levelFixed (about 95%)Your choice
Best forQuick estimates, school and thesis researchProfessional research and publications
Result at N = 1,000, e = 5%286278 (95% confidence)

In practice the results are close. If your supervisor asks for Slovin, use Slovin. If you are free to choose and want to justify your sample size properly, Cochran’s formula is the stronger option.

Frequently Asked Questions

What is the Slovin's formula for sample size?

n = N / (1 + N × e²), where n is the sample size, N is the population size and e is the margin of error as a decimal. With N = 1,000 and e = 0.05, the sample size is 286.

What confidence level does Slovin's formula use?

The formula has no confidence level setting. Mathematically it matches a confidence level of about 95% with a 50% response distribution.

Should I round the result up or down?

Always round up. Rounding down gives a sample that is slightly too small for the margin of error you chose.

Can I use Slovin's formula if I don't know the population size?

Not really, because N is a required input. For a very large or unknown population, the result levels off: about 400 at 5%, 1,111 at 3% and 100 at 10%. Our sample size calculator handles unknown populations directly.

Is Slovin's formula the same as Yamane's formula?

Yes. Both names refer to the same formula, n = N / (1 + N × e²). Yamane’s 1967 textbook is the source most researchers cite.

Why do some statisticians criticise Slovin's formula?

Because it hides its assumptions. It fixes the confidence level and response distribution without telling the user, and it is often applied to designs it was never meant for, such as group comparisons or non-random samples.

More statistics calculators