Calculate sample size with Slovin’s formula, n = N ÷ (1 + N × e²), from population size and margin of error, or solve for margin of error or population.
Related Calculators
- Bias Percentage Calculator
- Marginal Frequency Calculator
- Percentage to Frequency Calculator
- T Statistic Calculator (T-Value)
- All Statistics Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Sample size (n) | Finds the number of completed responses needed from a population at a chosen margin of error | Requires the population size and the margin of error in percent, with an expected response rate as an option |
| Population size (N) | Finds the population size that a given sample covers at a chosen margin of error | Requires the sample size and the margin of error in percent |
| Margin of error (e) | Finds the margin of error that a sample gives for a population | Requires the population size and the sample size |
Margin of error is entered as a percentage and starts at 5%. Population and sample are whole counts, and results for them are rounded up to the next whole person. Every result adds the sampling fraction and a short table of sample sizes for the same population at margins of 1%, 2%, 3%, 5% and 10%.
Slovin’s Formula
| n | Sample size |
| N | Population size |
| e | Margin of error as a decimal, so 5% is 0.05 |
Sample size (n)
Slovin’s formula is used as written. For a population of 1,000 at a 5% margin of error, n = 1,000 ÷ (1 + 1,000 × 0.05²) = 1,000 ÷ 3.5 = 285.71, which rounds up to 286 respondents. With an expected response rate entered, the invitations needed are n divided by that rate, rounded up: at 40%, 286 ÷ 0.40 = 715 invitations.
Population size (N)
A sample of 286 at a 5% margin gives 286 ÷ (1 − 286 × 0.0025) = 1,003.51, rounded up to 1,004 people. There is no answer when n × e² reaches 1, because no population is large enough to call for that sample.
Margin of error (e)
A sample of 286 from 1,000 people gives √(714 ÷ 286,000) = 0.04997, shown as 5%. Surveying the whole population gives a margin of zero.
Where Slovin’s formula comes from
These two lines are the standard sample size for estimating a proportion p in a population of N people by simple random sampling without replacement. Setting z = 2, for roughly 95% confidence, and p = 0.5 turns the first line into n0 = 1 ÷ e², and the second line then reduces to Slovin’s formula [1]. With N = 1,000 and e = 0.05, n0 = 400 and n = 400 ÷ 1.4 = 285.71, the same answer as above. The formula’s namesake is unknown: a review of the literature found no person named Slovin who proposed it, and the oldest known printing is in Taro Yamane’s 1967 sampling textbook [1].
Limits of This Estimate
- The formula fits one job: estimating a proportion at about 95% confidence. For an average, a different confidence level, an experiment that needs statistical power, or cluster and other complex sampling, a method built for that design is needed [1].
- It assumes the proportion is near 0.5, the most cautious case. When the true proportion is expected to be far from 0.5, it asks for a larger sample than necessary [1].
- A large enough sample is not the same as a representative one. Inviting more people does not correct for who chooses to answer, and when the invitations needed exceed the population the calculator flags the target as out of reach.
Sources
- Jeffry J. Tejada and Joyce Raymond B. Punzalan, On the Misuse of Slovin’s Formula, The Philippine Statistician, Vol. 61, No. 1 (2012), pp. 129-136: the formula, its derivation from the finite-population sample size for a proportion, its conditions and its origin
