Sample Size for Margin of Error
n = (z × σ / E)². Required sample size for given margin E at confidence z.
Result
How to use this calculator
- Enter SD + desired margin + confidence.
About this calculator
Required sample size for desired margin of error: n = (z σ / E)². Doubling precision (halving E) quadruples n. Use sample SD if population unknown (slight bias for small n). For proportions: n = (z² × p(1−p)) / E² with p as max-uncertainty 0.5 default. Pre-survey sizing essential for budget planning. Source: NIST Handbook; standard sampling textbooks.
Frequently asked
Why squared?+
Don't know σ?+
For proportions?+
Doubling sample halves margin?+
Finite population correction?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
z = (x̄ − μ) / (σ/√n). Compare sample mean to known population.
Test whether two means differ. t = (x̄₁ − x̄₂) / √(s₁²/n₁ + s₂²/n₂).
Compute probability density and cumulative probability at x for given μ, σ.
Convert a z-score to one-tail or two-tail p-value via the standard normal CDF.
CI = mean ± z × (σ/√n). 90 / 95 / 99 % standard intervals.
Gross, operating, and net margin — three standard profitability ratios.