← All measures
Sample size for a mean
Statistics · How many observations are needed to estimate a mean within a chosen margin of error, from the standard deviation and confidence level.
n = ⌈z σE2⌉
Result
Turn on JavaScript to calculate.
How it works
The margin of error E is z × σ ÷ √n, so n = (z × σ ÷ E)², rounded up to a whole observation. σ is a guess from earlier data or a pilot; a larger σ or a tighter margin needs more observations. Assumes a simple random sample from a large population.
Results are estimates for learning and planning. Check anything you rely on with a qualified professional.
