Sample Size Calculator
Use this free sample size calculator to find how many people to survey. Pick a confidence level of 90, 95, or 99 percent, enter your margin of error and expected proportion, and get the required sample size.
How it works
Sample size answers a simple question: how many people do you need to survey before you can trust the result? The formula is n = Z² x p(1 - p) / E², where Z is the score for your confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%), p is the expected proportion, and E is the margin of error as a decimal.
Two things drive the size up. A smaller margin of error needs far more people — halving the margin quadruples the sample, because E is squared in the formula. A higher confidence level also needs more people, since a wider safety net costs extra responses. The default proportion of 50% gives the largest, safest sample size, because it assumes the most uncertain split.
A practical use is planning a poll. If you want 95% confidence with a 5-point margin of error, you need about 385 responses — and knowing that number before you start keeps you from running a survey of 50 people and treating the result as settled fact.
Example: For 90% confidence with a 5% margin of error and a 50% proportion, you need a sample of 271 people.
Frequently asked questions
How is sample size calculated?
The formula is n equals Z squared times p times 1 minus p, over E squared, where Z is the score for your confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%), p is the expected proportion, and E is the margin of error as a decimal.
Why does a smaller margin of error need a bigger sample?
Halving the margin of error quadruples the sample size, because the margin of error is squared in the formula. A higher confidence level also needs more people, since a wider safety net costs extra responses.
More Math Calculators
- Scientific Calculator
- Fraction Calculator
- Percentage Calculator
- Random Number Generator
- Triangle Calculator
- Standard Deviation Calculator
- Area Calculator
- Average Calculator
- Binary Calculator
- Circle Calculator
- Common Factor Calculator
- Confidence Interval Calculator
- Exponent Calculator
- Factor Calculator
- GCF Calculator
- Half-Life Calculator
- Hex Calculator
- LCM Calculator
- Log Calculator
- Long Division Calculator
- Matrix Calculator
- Mean, Median, Mode & Range Calculator
- Number Sequence Calculator
- P-Value Calculator
- Percent Error Calculator
- Percent Off Calculator
- Permutation & Combination Calculator
- Prime Factorization Calculator
- Probability Calculator
- Pythagorean Theorem Calculator
- Quadratic Formula Calculator
- Ratio Calculator
- Right Triangle Calculator
- Root Calculator
- Rounding Calculator
- Scientific Notation Calculator
- Slope Calculator
- Statistics Calculator
- Surface Area Calculator
- Volume Calculator
- Z-Score Calculator
- Big Number Calculator
