TL;DR: Slovin's formula is n = N / (1 + N × e²). Put in your population size (N) and the margin of error you can accept (e), and it tells you how many people to survey (n). A population of 1,000 with a 5% margin of error needs a sample of 286. It is a quick, rough answer that assumes simple random sampling — it does not let you set a confidence level.
If you are planning a survey, the first practical question is always the same: how many people do I actually need to ask? Ask too few and your results are shaky; ask too many and you waste time and money. Slovin's formula is one of the simplest ways to answer that question. It needs only two numbers — the size of the population and the margin of error you are willing to accept — and it gives you a sample size in seconds.
Students meet it in statistics classes and researchers use it for small surveys. This guide explains what the formula is, what each part means, how to work through it with real numbers, and — just as importantly — when you should not rely on it. Check every example with our free Slovin's Formula Calculator.
What is Slovin's formula?
Slovin's formula is a simple equation for working out sample size when the size of the whole population is known. It is commonly attributed to Slovin (1960) as a quick method for survey sampling, and it is still taught today because it asks for so little: just the population and a margin of error. The formula is:
n = N / (1 + N × e²)
Here, n is the sample size you are solving for, N is the total population size, and e is the margin of error written as a decimal. A 5% margin of error becomes 0.05, a 3% margin of error becomes 0.03, and so on. The formula takes the population, divides it by a factor that grows with both the population and the margin of error, and returns the number of responses you need.
The idea behind it is straightforward. When the population is small, you need to survey a large share of it; when it is huge, the sample size stops growing — a few hundred responses can represent a very large group, provided the sample is genuinely random. That is why it is popular for quick planning, even though statisticians consider it a rough tool rather than a precise one.
What do the letters in Slovin's formula mean?
Each symbol in the formula stands for one concrete number. Getting them right is most of the work — the arithmetic itself is simple.
| Symbol | Meaning | Example |
|---|---|---|
| N | Population size — everyone you could possibly survey | 1,000 students in a school |
| e | Margin of error as a decimal — how much error you accept | 0.05 for a 5% margin of error |
| n | Sample size — the number of people to survey | 286 students |
The population, N, is the whole group your survey is about: every student in a school, every customer on a list, every resident of a town. It must be a number you actually know — if you do not know the population size at all, Slovin's formula is the wrong tool, and the standard sample size calculator is a better fit. The margin of error, e, is your tolerance for error: 5% means you accept that the true answer could be up to 5 points away from your survey result. Smaller values mean more precision and a bigger sample.
How do you calculate sample size with Slovin's formula?
The calculation has four steps. Take a school with 1,000 students, and suppose you want a 5% margin of error.
- Write down N and e. Here N = 1,000 and e = 0.05.
- Square the margin of error. e² = 0.05 × 0.05 = 0.0025.
- Multiply by the population and add 1. N × e² = 1,000 × 0.0025 = 2.5, so the denominator is 1 + 2.5 = 3.5.
- Divide the population by that number. n = 1,000 / 3.5 = 285.7, which rounds up to 286 students.
Always round the answer up, never down: 285 responses would fall just short, while 286 meets it. A second example: a customer list of 5,000 with a 3% margin of error (e = 0.03). Square the error (0.0009), multiply by 5,000 (4.5), add 1 (5.5), and divide: 5,000 / 5.5 = 909.09, so you need 910 customers. Notice how the smaller margin of error pushes the sample up sharply — 3% instead of 5% on a population five times larger needs more than three times as many responses.
What happens when the population is very large?
One of the most useful things Slovin's formula shows is that sample size stops growing once the population gets big. For a very large population, the answer is close to 1 / e² no matter how large N is. At a 5% margin of error that ceiling is about 400 people; at 1% it is 10,000.
| Margin of error | Sample size for a very large population |
|---|---|
| 10% (e = 0.10) | about 100 |
| 5% (e = 0.05) | about 400 |
| 3% (e = 0.03) | about 1,111 |
| 1% (e = 0.01) | about 10,000 |
This is why national polls can report results from just a thousand or so interviews: once the population runs into the millions, adding more people barely changes the sample size. What matters is the margin of error you choose, not the size of the country.
When should you use Slovin's formula?
Slovin's formula fits best when three things are true. First, you know the population size. Second, you are drawing a simple random sample — every member of the population has an equal chance of being picked, with no groups, clusters or hand-picked respondents. Third, you want a quick planning number rather than a formally justified one, and you are happy with the usual 5% margin of error.
Typical cases are class surveys, school projects, small customer-satisfaction surveys and pilot studies where the population is a known list — a school roll, a membership list, a customer database. In those settings the formula is fast, easy to explain, and good enough to plan around.
When should you NOT use Slovin's formula?
The formula has real limits, and being honest about them is part of using it well. It assumes simple random sampling, so it does not apply to stratified sampling (where you sample separately from subgroups), cluster sampling (where you sample whole groups), or convenience sampling (where you ask whoever is easiest to reach). If your sampling is not random, the formula's answer is not meaningful — no sample-size equation can fix a biased sample.
It also has no place for a confidence level: a proper calculation lets you state 95% confidence, with the z-score entering the maths, while Slovin's formula skips that entirely. It also ignores how varied the population is — a survey on something nearly everyone agrees on needs fewer responses than a close 50/50 split, but the formula treats both the same. And for very small populations it can return a sample nearly as large as the population itself, when surveying everyone is simpler.
If any of these matter for your study — a stated confidence level, subgroups that must be represented, or a result that will be published — use the standard sample-size formula instead. Our sample size calculator takes a confidence level and an expected proportion into account, and the guide on sample size vs margin of error explains how those choices move the answer.
Can Slovin's formula be used in stratified sampling?
No — not directly. Slovin's formula assumes simple random sampling from one population, so it has no way to split the sample across strata (subgroups such as age bands, regions or departments). If your survey uses stratified sampling, work out the sample size inside each stratum separately — for example with the sample size calculator, which lets you set a confidence level — and then add the stratum samples together. That way each subgroup is represented in proportion, which is the whole point of stratifying. Our guide to confidence levels explains the 90%, 95% and 99% choices you will need for those calculations.
Slovin's formula vs the standard sample size formula
The standard formula for a proportion is n = z² × p × (1 − p) / e², where z is the z-score for your confidence level (1.96 for 95% confidence) and p is the expected proportion (0.5 when you have no prior guess, which gives the largest, safest sample). It answers the same question as Slovin's formula but with two extra controls: confidence level and population variability. A finite population correction then adjusts the result when the population is small.
In practice the two formulas often land close together — for a population of 1,000 at 5% margin of error, the standard formula with 95% confidence gives about 278, against Slovin's 286. The difference is not the number; it is what you can say about it. The standard formula lets you state "95% confident, plus or minus 5%", while Slovin's only supports "plus or minus 5%". For homework and quick planning, Slovin is fine; for research others will rely on, use the standard formula.
Frequently Asked Questions
What is Slovin's formula?
Slovin's formula is n = N / (1 + N x e²), where N is the population size, e is the margin of error as a decimal, and n is the sample size you need. It gives a quick sample size for a survey when the total population is known.
When should I use Slovin's formula?
Use it when you know the total population size, you are taking a simple random sample, and you want a quick sample size for a chosen margin of error — for example, a school survey or a small customer survey. For a stated confidence level, use the standard sample size formula instead.
What margin of error should I use in Slovin's formula?
A margin of error of 0.05 (5%) is the most common choice. A smaller margin of error, such as 0.03, gives a more precise result but needs a much larger sample; a larger one, such as 0.10, needs far fewer responses but gives a rougher result.
What is the sample size for a population of 1,000 at a 5% margin of error?
286. With N = 1,000 and e = 0.05, Slovin's formula gives n = 1,000 / (1 + 1,000 x 0.0025) = 1,000 / 3.5 = 285.7, rounded up to 286 people.
What are the limitations of Slovin's formula?
Slovin's formula assumes simple random sampling, so it does not suit stratified, cluster or convenience sampling. It has no place to set a confidence level, it ignores how varied the population is, and it gives a rough answer rather than a precise one. For a survey that must state a confidence level, use the standard sample size formula.
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.