Sample Size Calculator
Calculate the minimum survey sample size from confidence level, margin of error, and population proportion, with finite population correction and a reverse margin-of-error solver.
Calculator
Acceptable error in points
Use 50% if not sure
Enter N for FPC
Fixed n to reverse-check
Sample Size Summary
Assuming an unlimited population.
Calculation Breakdown
Results
Required Sample Size
385people
Unadjusted n for an infinite population
385people
Assuming an unlimited population
1.96
Standard normal value for 95% confidence
±4.99%
Achieved error with n=385
±4.99%
No finite population entered
0.0255
√(p(1−p)/n) for the entered sample size
Sample sizes use the Cochran normal-approximation formula with z-scores for the selected confidence level, rounded up. Finite population correction applies only when a positive population size is entered.
Visualizations
Sample Size by Margin of Error
Sample Share of Population
Sample as Share of Population
Required vs Entered Sample
Formula
The Cochran formula sizes a proportion survey from the z-score of the confidence level, the estimated proportion, and the tolerable error. When the sample is a sizable fraction of a known population, the finite population correction shrinks both the required n and the achieved margin of error.
Alternative Form
Variables
| Symbol | Name | Unit | Description |
|---|---|---|---|
| n | Required sample size | count | Respondents to survey, always rounded up |
| z | Z-score | σ | Standard normal value for the confidence level |
| p | Population proportion | decimal | Estimated share with the trait; 0.5 is safest |
| e | Margin of error | decimal | Half-width of the confidence interval |
| N | Population size | count | Total group; blank means unlimited |
| n' | Corrected sample size | count | FPC-adjusted requirement for finite N |
| SE | Standard error | decimal | √(p(1−p)/n); precision of the estimate |
Explanation
Error shrinks with the square root of n, so precision gets expensive fast: halving the error quadruples the sample. The 50% proportion maximizes p(1−p) and therefore the sample — the safe default when nothing is known.
Derivation
From the normal confidence interval half-width e = z·√(p(1−p)/n), solve for n: n = z²·p(1−p)/e². For sampling without replacement from finite N, the variance gains the factor (N−n)/(N−1); solving the corrected interval for n gives n’ = n/(1+(n−1)/N).
Step-by-Step Calculation
Follow each step to understand how the result is calculated from your inputs.
Look up the z-score for the chosen confidence level.
Convert margin of error and proportion to decimals.
Apply the Cochran sample-size formula for an infinite population.
Apply finite population correction when N is known.
Solve the reverse direction: margin of error for the entered sample size.
Shrink the margin of error with the FPC factor when applicable.
Worked Examples
See how the calculator works with different scenarios.
Scenario
A store wants 95% confidence with ±5% error and no prior proportion estimate.
Inputs
Calculation
n = (1.96² × 0.5 × 0.5) / 0.05² = 384.16 → 385
Result
385 customers
Interpretation
The classic textbook answer: 385 completes covers nearly every general-population survey at 95/±5.
Understanding Your Result
Your Result: Required Sample Size: 385 people
Typical range: 385 for 95%/±5%, ~1,068 for ±3%, ~9,604 for ±1%. FPC matters once n exceeds ~5% of N.
What This Means
The headcount is the smallest sample that still hits your error target; the reverse solver tells you what error a fixed sample actually delivers.
Why It Matters
Under-powered surveys mislead and over-powered ones burn budget. Sizing up front is the cheapest quality control in research.
Professional Interpretation
Report the achieved margin of error from the actual n, not the planned one, and always disclose FPC use and the assumed proportion.
Recommendations
- •Default to 50% proportion without pilot data
- •Round sample sizes up, never down
- •Apply FPC whenever N is known and small
- •Budget for non-response above the computed n
- •Re-check error with the final achieved n
- •Prefer stratified designs for heterogeneous groups
Educational Content
Introduction
Sample size determination balances confidence, precision, and cost before fieldwork starts. This calculator implements the Cochran formula with finite population correction plus a reverse margin-of-error check.
Concept Explanation
A confidence interval’s half-width is e = z·√(p(1−p)/n). Fixing e and solving for n tells you how many respondents buy that precision; fixing n and solving for e audits a completed survey.
Applications
Benefits
- •Prevents under-powered, misleading studies
- •Quantifies the cost of tighter precision
- •FPC saves interviews in small populations
- •Reverse solver audits real-world samples
- •Twelve confidence levels from 70% to 99.999%
Limitations
- •Assumes simple random sampling
- •Ignores non-response and design effects
- •Proportion formula only — not means or comparisons
- •No power analysis for hypothesis tests
Best Practices
- •Use 50% proportion when genuinely unsure
- •Inflate n for expected non-response
- •Multiply by the design effect for cluster samples
- •Pre-register confidence level and error target
- •Report achieved, not planned, margins
Common Misconceptions
Practical Tips
- •Start with 95% confidence and ±5% error
- •Use 50% proportion without pilot data
- •Enter N whenever the population is known
- •Quadruple n to halve the error — budget accordingly
- •Add 10–20% for non-response
- •Re-run the reverse check with final n
- •Document z, p, e, and N in your methods
Common Mistakes
Assumptions
This calculator makes the following assumptions to provide estimates:
Limitations
Be aware of these limitations when using this calculator:
Frequently Asked Questions
Answers to common questions about this calculator.
What is sample size?
Why is sample size important in research?
What is a confidence level in statistics?
What is margin of error?
How does confidence level affect required sample size?
How does margin of error affect sample size?
What is population proportion and how do I choose it?
Why is 50% the most conservative choice for population proportion?
What is the sample size formula for infinite populations?
What is finite population correction (FPC)?
What is the relationship between sample size and margin of error?
What is the rule of thumb for sample size in surveys?
Related Calculators
Explore more calculators related to this topic.
Related Guides
Deepen your understanding with these educational resources.
Glossary
Technical terms used in mortgage calculations explained in plain language.
- Sample size
- Number of observations included in a study (n).
- Confidence level
- Long-run capture rate of the confidence interval.
- Margin of error
- Half-width of the confidence interval, in points.
- Z-score
- Standard-normal value matching a confidence level.
- Population proportion
- Share of the population with the trait (p).
- Finite population correction
- Shrinkage applied when sampling a large fraction of N.
- Standard error
- Sampling variability of the estimate, √(p(1−p)/n).
- Cochran formula
- n = z²p(1−p)/e² for proportion surveys.
- Non-response bias
- Distortion when refusers differ from responders.
- Design effect
- Variance inflation from complex sampling designs.
Authoritative References
Trusted sources and standards referenced by this calculator.
Applicable Standards
Was This Calculator Helpful?
Page Information
2026-08-07
2.0.0
Free to use for educational and professional purposes.