Sample Size for a Proportion — Margin of Error Formula — GetCalcMaster
Compute sample size needed for estimating a proportion with a target margin of error: n ≈ z²·p(1−p)/E². Includes practical notes and examples.
To estimate a proportion p with a desired margin of error E at a given confidence level, a common approximation is n ≈ z²·p(1−p)/E².
What this calculator is
The Statistics Calculator is an interactive tool inside GetCalcMaster. It’s designed to help you explore scenarios, understand formulas, and document assumptions.
Key features
- Uses the standard normal approximation
- Shows conservative “worst case” p=0.5 sizing
- Highlights when the approximation can break (tiny n or extreme p)
Formula
n ≈ z^2 * p(1-p) / E^2Quick examples
Worst-case sizing uses p=0.5 (max variance).If you halve E, required n roughly quadruples (because of 1/E²).
How to use it (quick steps)
- Pick a confidence level (e.g., 95%) → get z.
- Choose a proportion estimate p (pilot data or conservative p=0.5).
- Choose margin of error E (in probability units, e.g., 0.03 for ±3%).
- Compute n ≈ z²·p(1−p)/E², then round up.
Related tools and guides
Featured guides
Deep, human-written guides focused on accuracy, verification, and reproducible workflows.
FAQ
Is this calculator official?
Do you store my inputs on the server?
Tip: For reproducible work, save your inputs and reasoning in Notebook.