Sample Size Calculator
Calculate required sample size for statistical studies and surveys. Free, fast, accurate — no signup, mobile-friendly, w
Study Type
Parameters
Typically 90%, 95%, or 99%
Percentage points (e.g., 5 for ±5%)
Use 50% if unknown (most conservative)
Common Scenarios
📏 Effect Size Guide
Required Sample Size
Sample Size
participants needed
Z-Score
95% confidence
Margin of Error
percentage points
CI Lower Bound
confidence interval
CI Upper Bound
confidence interval
Sample Adequacy: Good
Sample size is good for most statistical analyses
📋 Recommendations
Step-by-Step Calculation
How it works
A sample size calculator finds how many responses a survey needs for a target margin of error and confidence level. Bigger samples narrow the margin, but with diminishing returns — precision improves with the square root of the sample size.
Sample size for a proportion
n = z² · p · (1 − p) ÷ E²
- z
- z-score for the confidence level (1.96 for 95%)
- p
- estimated proportion (0.5 for the safest, largest n)
- E
- margin of error (e.g. 0.05)
Worked example
- 95% confidence (z = 1.96)
- p = 0.5, margin E = 5%
- n = 1.96² × 0.5 × 0.5 ÷ 0.05²
- = 0.9604 ÷ 0.0025
≈ 385 responses needed.
Good to know
- Using p = 0.5 gives the most conservative (largest) sample when you don't know the true proportion.
- For small populations, a finite-population correction lowers the required n.
- Halving the margin of error roughly quadruples the sample size.
Can't find the exact calculator you need?
Describe it in one sentence — get a working, math-verified calculator in seconds. Free, no signup.
Build your own calculatorRelated Calculators
Frequently Asked Questions
What sample size do I need for a survey?
It depends on your confidence level, margin of error, and expected proportion: n = z²p(1-p)/e². For 95% confidence and a ±5% margin of error, the classic answer is 385 respondents.
What is the margin of error?
It's the ± range around your estimate within which the true population value likely falls. Tightening it is expensive: halving the margin of error requires four times the sample size.
How does confidence level affect sample size?
Higher confidence widens the z-score and inflates the sample: 90% uses z = 1.645, 95% uses 1.96, and 99% uses 2.576. Moving from 95% to 99% confidence increases the required sample by roughly 73%.
Does the size of the population matter?
Surprisingly little once the population is large — surveying a city or a country needs nearly the same sample. When you sample more than about 5% of a small population, apply the finite population correction to shrink the requirement.
What proportion (p) should I assume if I don't know it?
Use p = 0.5, the most conservative choice, because it maximizes variance and therefore the required sample size. If prior research suggests a different proportion, using it can justifiably reduce your sample.