Determine the minimum sample size needed to estimate a population proportion or population mean with a given confidence level and margin of error.
Estimates sample size to determine a population proportion p within margin of error E.
Formula: n = z²·p·(1−p) / E²
| Parameter | Value |
|---|---|
| Confidence Level | 95% |
| Critical value (z*) | 1.96 |
| Proportion (p) | 0.5 |
| 1 − p = q | 0.5 |
| Margin of Error (E) | ±0.05 (5.0%) |
| Unadjusted n₀ | 385 |
| Required n | 385 |
| Margin of Error | n (95% CI) | n (99% CI) |
|---|---|---|
| ±1% | 9,604 | 16,587 |
| ±2% | 2,401 | 4,147 |
| ±3% | 1,068 | 1,843 |
| ±4% | 601 | 1,037 |
| ±5% | 385 | 664 |
| ±10% | 97 | 166 |
A ±5% margin of error needs 385 completed answers. A ±2.5% margin needs 1,537, and ±1% needs 9,604. Each time the margin is halved, the required sample quadruples, because the margin shrinks only with the square root of n. That one fact explains why a survey of a thousand people has a respectable margin of about ±3% while a survey that promises ±1% costs ten times as much. This page does the arithmetic for either a yes/no style share or a measured average, and always rounds up.
Population Proportion tab: n = z² x p x (1 - p) / E². The multiplier z comes from the Confidence Level list (1.2816 at 80%, 1.4395 at 85%, 1.6449 at 90%, 1.96 at 95%, 2.5758 at 99%) and is shown in the read-only Critical Value (z*) box. p is the expected share, E is the margin as a decimal, so 0.05 means ±5 percentage points. The product p x (1 - p) peaks at p = 0.5, which is why 0.5 is the default for an unknown share.
Worked example with the page's starting values, 95%, p = 0.5, E = 0.05. z² = 1.96² = 3.8416. Times 0.25 gives 0.9604. Divided by 0.05² = 0.0025 gives 384.16. A sample cannot contain 0.16 of a person, and rounding down would leave the margin above 5%, so the page rounds up to 385. Other levels at the same E: 165 at 80%, 271 at 90%, 664 at 99%.
Population Mean tab: n = (z x σ / E)². Here σ is the standard deviation you expect and E is a distance in the same units as σ, not a percentage. With σ = 15 and E = 3 at 95%, (1.96 x 15 / 3)² = 96.04, so the answer is 97. Halving E to 1.5 gives 384.16 and then 385, four times as many. A wrong guess for σ matters: σ = 20 raises 97 to 171.
Finite population correction: tick the box and enter Population size (N). The raw figure n0 becomes n0 / (1 + (n0 - 1) / N). With n0 = 384.16, N = 500 gives 217.49, shown as 218, and N = 10,000 gives 369.98, shown as 370. The card also prints the unadjusted n0 (385) beside the adjusted result. For a population of millions the correction changes nothing.
The reference table at the foot of the page uses p = 0.5 and the same round-up rule, so it matches the calculator row for row: ±1% needs 9,604 at 95% and 16,587 at 99%, ±3% needs 1,068 and 1,843, ±5% needs 385 and 664, and ±10% needs 97 and 166. The result is the number of completed, usable responses, not invitations: at a 20% reply rate, 385 completes means contacting 1,925 people.
Type 0.05 on the proportion tab. The field expects a decimal below 1, so an entry of 5 removes the result. On the mean tab E is not a percentage at all, it is a distance in the units of your data.
Yes, and it lowers the number: p = 0.2 gives 246 instead of 385, and p = 0.9 gives 139. If the true share is nearer 50%, your margin will be wider than planned, so keep 0.5 when you have no firm prior figure.
When the sample would be a large fraction of the group, such as 385 from a club of 500, where the need drops to 218. For a population of 10,000 it saves 15 responses, and for millions it saves none.
Both round up, because a rounded-down sample would give a margin slightly wider than requested. The exact value for the starting inputs is 384.16, and both show 385.
Use a figure from a pilot study, an earlier survey or published work. The result scales with the square of σ, so a poor estimate moves the answer a lot; err on the high side if unsure.