What sample size do I need for a 95% confidence level with 5% margin of error?+
For a proportion with 95% confidence and 5% margin of error, assuming 50% expected proportion (most conservative), the required sample size is n = (1.96)² × 0.5 × 0.5 / (0.05)² = 384.16, rounded up to 385. This is the standard "n = 385" figure cited in most polling methodology notes. If your population is smaller than about 20,000, apply the finite population correction to reduce n further.
What is the formula for sample size calculation?+
For proportions: n = Z² × p × (1-p) / E², where Z is the z-score for your confidence level (1.96 for 95%), p is the expected proportion (use 0.5 to maximize n), and E is the desired margin of error as a decimal (0.05 for 5%). For means: n = (Z × sigma / E)², where sigma is the population standard deviation and E is the absolute margin of error. Always round n up to the next integer.
What is the finite population correction and when should I use it?+
The FPC formula is n_adjusted = n / (1 + (n-1)/N), where N is the total population size. Use it whenever your sample would represent more than 5% of the total population (n/N greater than 0.05). For small populations (under 10,000), FPC can reduce required sample size significantly. For large populations (over 100,000), the correction is negligible and the unadjusted formula applies.
How does confidence level affect sample size?+
Higher confidence requires a larger sample. Moving from 90% to 95% confidence increases n by about 40% (z goes from 1.645 to 1.960, and n scales as z²). Moving from 95% to 99% increases n by another 73% (z = 2.576). For a standard survey: 90% confidence needs 271, 95% needs 385, 99% needs 664 (all at 5% margin of error, 50% proportion). Choose confidence level based on the cost of a wrong conclusion, not habit.
What proportion should I use when I have no prior data?+
Use p = 0.5 (50%). This maximises p(1-p) = 0.25, which gives the largest (most conservative) sample size. Any other proportion assumption gives a smaller n that could be insufficient if the true proportion turns out to be closer to 50%. If a pilot survey indicates a proportion far from 50% (e.g. p = 0.1 or p = 0.9), using that estimate will reduce the required n considerably.
Why does sample size not depend much on total population size?+
The basic sample size formula has no N in it at all. Intuitively, what determines precision is the absolute number of observations, not the fraction of the population sampled. A poll of 385 gives the same margin of error whether the population is 1 million or 1 billion. Population size only enters through the FPC when N is small relative to n (specifically when n/N exceeds 5%). This counterintuitive result is why a 1,000-person national poll can accurately represent 330 million Americans.
How do I estimate the standard deviation for the mean formula?+
Options in practice: (1) Use a published value from prior studies on the same population (e.g. IQ has a well-known SD of 15). (2) Run a small pilot study of 20-30 observations and use the sample SD as an estimate. (3) Use the range/4 rule of thumb: the SD is roughly (max - min) / 4 for normally distributed data. (4) Use a conservative overestimate to ensure adequate power. A larger assumed SD gives a larger required n, so erring on the high side is safer than underestimating.
Why must the sample size be rounded up?+
Rounding down produces a sample that does not technically meet the stated margin of error. If n = 384.16, then n = 384 gives a margin slightly larger than 5%, violating the guarantee. Rounding up to 385 ensures the stated precision is achieved. Always use the ceiling function (round up), never standard rounding or truncation, for sample size calculations. This is standard practice in all sample size tables and power analysis software.
How does the expected proportion affect the required sample size?+
Sample size is proportional to p(1-p), which is maximised at p = 0.5 and decreases toward 0 and 1. At p = 0.3 or p = 0.7, p(1-p) = 0.21, so you need 84% as many respondents as at p = 0.5. At p = 0.1 or p = 0.9, p(1-p) = 0.09, so you need only 36% as many. If prior data strongly suggests the proportion will be near an extreme, use that estimate to plan a smaller, more efficient study.
What is the difference between sample size and sample size per group in a two-sample study?+
This calculator computes the total sample size for estimating a single proportion or mean. In two-sample studies (A/B tests, comparing two groups), the formula changes to account for detecting a difference between two groups. For two-sample proportion tests: n per group = (Z_alpha + Z_beta)² × 2 × p(1-p) / delta². For two-sample mean tests: n per group = 2 × (Z_alpha + Z_beta)² × sigma² / delta². Use a power analysis calculator for these two-sample designs.