Sample Size Calculator
Determine the required sample size for surveys and statistical research based on confidence level, margin of error, and population size.
All formulas and computation matrices for this calculator execute directly in your browser with zero latency. Enter your parameters to see instant results.
Who Uses This Calculation & Why Accuracy Matters
Clinical researchers, market survey analysts, political pollsters, epidemiologists, and doctoral candidates use this sample size calculator to determine statistically valid sample sizes needed to achieve specified Confidence Levels (90%, 95%, 99%) and Margins of Error (Confidence Intervals) using Cochran's Formula and finite population corrections.
A national polling organization surveying voter presidential preferences across the US adult population (N = 260,000,000) aiming for a 95% Confidence Level with a ±3.0% Margin of Error.
An enterprise HR department surveying an internal company workforce of exactly 1,200 employees with a 95% Confidence Level and ±4.0% Margin of Error.
A clinical trial assessing a rare adverse event proportion estimated at 2.0% (p = 0.02) with ±1.0% precision at 95% confidence.
Sample Size Requirements Across Population Sizes & Margins of Error (95% Confidence)
Cochran formula sample sizes assuming conservative 50% population proportion (p = 0.50).
| Population Size (N) | ±5.0% Margin of Error | ±3.0% Margin of Error | ±2.0% Margin of Error | ±1.0% Margin of Error |
|---|---|---|---|---|
| 100 | 80 | 92 | 96 | 99 |
| 500 | 217 | 341 | 414 | 475 |
| 1,000 | 278 | 516 | 706 | 906 |
| 5,000 | 357 | 880 | 1,623 | 3,289 |
| 10,000 | 370 | 965 | 1,937 | 4,899 |
| 50,000 | 381 | 1,045 | 2,291 | 8,057 |
| 100,000 | 383 | 1,056 | 2,345 | 8,763 |
| 1,000,000+ (Infinite) | 384 | 1,067 | 2,401 | 9,604 |
* Notice that for populations over 50,000, the required sample size plateaus and is virtually independent of population size.
Cochran's Sample Size Formula & Finite Population Correction (FPC)
Calculates sample size for large populations using standard normal critical value Z, estimated proportion p, and margin of error e. For small populations, the Finite Population Correction (FPC) adjusts the sample.
1.645 for 90% confidence; 1.960 for 95% confidence; 2.576 for 99% confidence.
0.50 is the conservative default maximizing required variance (p × (1 - p) = 0.25).
Expressed as a decimal (e.g., 0.03 for ±3%).
The total size of the group being sampled.
Step-by-Step Worked Examples with Real Numbers
Worked Example 1: Standard National Survey (Infinite Population)
Variance numerator.
Error square.
Sample size for national poll.
Worked Example 2: Applying Finite Population Correction to Small Company
Adjustment factor.
FPC reduces required sample by 43%.
Assumptions, Edge Cases & Common Calculation Mistakes
ℹ Underlying Algorithm Assumptions
- Assumes true simple random sampling (SRS) where every population member has an equal, independent probability of selection.
- Assumes conservative p = 0.50 if true population proportion is unknown.
- Assumes non-response bias is accounted for by over-sampling.
⚠ 3 Common Mistakes to Avoid
- Believing a poll of 1,000 people cannot represent 260 million Americans; statistical sampling error depends almost entirely on absolute sample size, NOT population size.
- Ignoring non-response bias; surveying 10,000 self-selected online volunteers produces far worse data than surveying 400 genuinely random people.
- Failing to adjust for survey cluster design effects (DEFF) in multi-stage geographic sampling.