Slovin’s Formula Calculator
Slovin’s formula tells you how many people you need to survey when you know the size of the whole population. Enter the population size and the margin of error you can accept, and the calculator gives you the smallest sample size that keeps your survey within that margin.
Slovin’s Formula
n = N / (1 + N × e²)
- n = the sample size you need
- N = the total population size
- e = the margin of error, as a decimal (5% = 0.05)
The result is always rounded up to the next whole person, because you cannot survey part of a person and rounding down would miss the precision you asked for.
Worked Example
A school has 1,000 students and you want survey results accurate to within ±5%.
- Convert the margin of error to a decimal: e = 0.05, so e² = 0.0025.
- Apply the formula: n = 1,000 / (1 + 1,000 × 0.0025) = 1,000 / 3.5 = 285.71.
- Round up: you need to survey 286 students.
With a smaller population the number drops fast: for 500 people at a 10% margin of error, n = 500 / (1 + 500 × 0.01) = 500 / 6 = 83.33, rounded up to 84 people.
How to Use This Calculator
- Enter the population size (N) — everyone your survey is about, for example all 1,000 students in the school.
- Enter the margin of error as a percentage — 5% is standard, 3% is more precise, 10% is rough.
- Click “Calculate Sample Size” to see how many responses you need.
- Survey at least that many people, chosen at random, for results within your chosen margin of error.
When to Use Slovin’s Formula
Slovin’s formula fits when you know the population size, you are taking a simple random sample, and you have no prior estimate of the proportion you are measuring. It is the standard shortcut taught in research-methods courses for exactly that situation.
If you also want to set a confidence level (90%, 95% or 99%), or you do not know the population size at all, use the sample size calculator instead — it uses the Cochran formula, which includes both.
Frequently Asked Questions
What is Slovin’s formula used for?
It finds the sample size needed for a survey when the population size is known and the population proportion is unknown. It is a quick way to work out how many people to survey.
What margin of error should I use?
A 5% margin of error is the usual choice for general surveys. Use 1% to 3% when you need high precision, and 10% only for rough, early-stage estimates.
What if I do not know my population size?
Use the sample size calculator instead. It uses the Cochran formula, which works without a known population size and lets you set a confidence level.
Why is the sample size rounded up?
Rounding down would give fewer responses than the formula calls for, so the survey would be slightly less precise than the margin of error you asked for. Rounding up guarantees the requested precision.
Does Slovin’s formula include a confidence level?
No. Slovin’s formula uses only the population size and the margin of error, so it has no confidence level built in. If you need to set a confidence level, use the sample size calculator.
References
- Weisstein, Eric W. "Slovin's Formula." MathWorld, Wolfram Research. Source
- Yamane, Taro (1967). Elementary Sampling Theory. Prentice-Hall. Source
- Ryan, Thomas P. (2013). Sample Size Determination and Power. Wiley. Source
The formula is commonly attributed to Slovin (1960); no 1960 publication by Slovin can be verified — Yamane (1967) is the oldest published source of the identical formula.