The Core Sample Size Formula
To calculate the sample size for a proportion, use the formula: n = (Z² * p * (1-p)) / E². Each variable represents a specific statistical requirement that must be defined before you can solve the equation. This formula ensures your data is statistically significant without wasting resources on an unnecessarily large group.
More from this site
Keep reading the latest coverage
Key Variables You Must Define
Before running the calculation, you must set four values that dictate the final number:
- Z-score: The number of standard deviations from the mean corresponding to your desired confidence level (e.g., 1.96 for 95% confidence).
- p (proportion): The estimated prevalence of the attribute in the population. Use 0.5 if unknown, as it yields the largest, most conservative sample size.
- E (margin of error): The range within which the true population parameter is expected to fall, often set at 0.05 or 5%.
Worked Example
Assume you want a 95% confidence level (Z = 1.96) with a 5% margin of error (E = 0.05) and no prior estimate for the proportion (p = 0.5). Plugging these into the formula: n = (1.96² * 0.5 * 0.5) / 0.05². This calculates to n = 384.16, meaning you need a minimum of 385 respondents.
Adjusting for Finite Populations
If your total population (N) is small, apply the finite population correction formula: n_adjusted = n / (1 + (n - 1) / N). For a population of 1,000, the adjusted sample size drops to approximately 278, reflecting the higher precision gained when surveying a larger chunk of a small group.
Other Considerations
If you are calculating the sample size for a mean rather than a proportion, replace p(1-p) with the population standard deviation squared (σ²) and use a different error term. Always account for a non-response rate by inflating your final calculated number to ensure the actual respondents meet the minimum threshold.