How to Calculate Sample Size for an Audit or a Survey
Before you audit files, time a set of calls, or score a yes-or-no survey question, decide how many items you need. Sample too few and the answer is too uncertain; too many and you waste time. This guide shows the usual formulas for a percentage and for an average, works two office examples, and points you to a free calculator.
In plain English: You pick a confidence level (how sure you want to be) and a margin of error (how close you need to be). The formula then tells you the minimum number of randomly chosen items to review.
What you are estimating
The method depends on the kind of number you want:
- A proportion (a percentage): the share of payments with a missing PO number, of files missing a signature, or of customers who answered “yes.”
- A mean (an average): after-call work time, days to close a claim, invoice amount.
Those are the two cases the free sample size calculator covers. The formulas are not a shortcut for every statistic. Net Promoter Score is built from three groups, not one percentage, so do not plug an NPS target into the proportion formula and treat the result as “how many NPS responses I need.”
Confidence and margin of error
Margin of error is the “plus or minus” you can live with. If you want an error rate within ±5 percentage points, the formula uses E = 0.05 (a calculator may instead ask for 5, meaning 5%). For an average, the margin is in the same units as the data: ±10 seconds, ±1 day, and so on.
Confidence is how often this method would come that close if you repeated the sample many times, from the same population, under the same assumptions. 95% is a common choice. 90% needs a smaller sample; 99% needs a larger one. The formula uses a z value that matches the confidence you pick:
Those are the usual rounded values of the standard normal cutoff. The worked examples below use 1.96 for 95% confidence (1.960 rounded to two decimals). Halving the margin of error — for example, from ±5 percentage points to ±2.5 — roughly quadruples the sample. If you do not have a prior estimate of the percentage, 50% is the conservative default: it produces the largest sample for a given margin of error.
The formulas
p is the expected proportion (use 0.50 if unknown), E is the margin of error as a proportion (0.05 for ±5 percentage points), σ is the standard deviation of the thing you are averaging, and N is the population size when it is finite and known. Use the finite-population step for a list of known size, such as 1,000 payments this quarter. Skip it when the population is large or the process is ongoing. Always round up: 384.16 means 385 items. For a mean, take σ from a short pilot or past data; do not invent it.
Worked example: a proportion
A back-office team wants the share of vendor payments with a missing PO number, within ±5 percentage points at 95% confidence. They have no prior estimate, so they use p = 50%.
If only 1,000 payments were made this quarter, the finite-population correction reduces this:
If past months suggest the missing-PO rate is about 10%, put p = 0.10 in the same formula (still ±5 points, 95% confidence, no population cap):
That is much smaller than 385, and it is reasonable only if 10% is a fair expected rate. When you are unsure, 50% is the safer planning value.
Worked example: a mean
A call center wants the average after-call work time within ±10 seconds at 95% confidence. A pilot shows a standard deviation of about 45 seconds.
How to read the result
- The result is the minimum number of randomly selected items. Pick them with a random method (the random sample picker can help), not “the first 385 in the queue” or only the easy cases. A convenience sample can bias the result no matter how large it is.
- The margin of error applies to the percentage or average you set out to estimate, under the usual assumptions of a simple random sample. It is not a guarantee about every other number you might later compute from the same data.
- If the thing you care about is very rare (a defect rate well under 1%), this formula can demand a large sample, or still leave a wide margin. You may need a broader review or an automated 100% check instead.
Common mistakes
- Entering the margin of error as 0.05 when the calculator field expects a percent (5), or the other way around. In the formula as written here, E for a proportion is 0.05, not 5.
- Forgetting to round up, or using a guessed standard deviation with no pilot data.
- Treating a non-random sample as if the formula had fixed the bias.
- Changing the population, time window or definition of an “error” between samples, then comparing the percentages as if they were the same measure. Write the definition down first (see the operational definition and data collection plan templates).
Choose a proportion or a mean, enter confidence, margin of error, and an optional population size. Same formulas as this guide, already rounded up. No sign-up.