BIZOMAT MAKEOS · Quality

Sample Size to Estimate a Mean

How many measurements or tests are needed to estimate the mean within this margin?

Minimum number of tests or measurements to estimate a mean within a chosen margin of error at a confidence level, with an optional finite-population correction.

Open the calculatorRuns in your browser. No account needed.

How this tool works

Inputs, units and where to find them

InputUnitTypical source
Expected standard deviationEstimate of the standard deviation from earlier data or a pilot study, in the units of the measurement.
Required margin of error (±)Half-width of the confidence interval you need, in the same units.
Confidence levelchoiceConfidence that the true mean lies within the margin.
Population size (0 = very large)itemsTotal lot or population size for a finite-population correction; 0 if large or ongoing.

What each input means

Open an input to see what it is, its units, the worked example and the common mistakes, with a small diagram.

What this means: Expected standard deviation
Illustration: Expected standard deviationA nominal size line with an upper and a lower limit around it; parts inside the band are acceptable. The figure illustrates Expected standard deviation.upperlowerσExample: 0.05Expected standard deviation
What it is
Your best estimate of how much individual measurements vary, from earlier data or a small pilot study, in the units of the measurement.
Units and format
Enter a plain number with no unit. The form accepts 0.000001 or more. Required: the tool does not calculate until every input is valid.
Example
The form opens with 0.05 as a worked example. It is an illustration, not a recommended value: replace it with your own figure.
Effect on the result
Sample size rises with the square of the standard deviation.
Get it right
Use the same units as the margin of error; an underestimate gives too small a sample.
What this means: Required margin of error (±)
Illustration: Required margin of error (±)A nominal size line with an upper and a lower limit around it; parts inside the band are acceptable. The figure illustrates Required margin of error (±).upperlowerEExample: 0.02Required margin of error (±)
What it is
How close to the true mean your estimate needs to be: the half-width of the confidence interval, in the same units as the measurement.
Units and format
Enter a plain number with no unit. The form accepts 0.000001 or more. Required: the tool does not calculate until every input is valid.
Example
The form opens with 0.02 as a worked example. It is an illustration, not a recommended value: replace it with your own figure.
Effect on the result
Halving the margin roughly quadruples the sample size.
Get it right
This is the plus-or-minus half-width, not the full width of the interval.
What this means: Confidence level
Illustration: Confidence levelThe options for Confidence level, with the one currently selected highlighted.90%95%99%Example: 95%Confidence level
What it is
How sure you want to be that the true mean lies within the margin of error of your estimate.
Units and format
Choose one of 3 options from the list: 90%; 95%; 99%.
Example
The form opens with “95%” selected as a worked example. Choose the option that matches your case.
Get it right
Higher confidence needs more measurements for the same margin.
What this means: Population size (0 = very large)
Illustration: Population size (0 = very large)A row of identical items being counted; Population size (0 = very large) is how many there are.NExample: 0 itemsPopulation size (0 = very large)
What it is
The total number of items in a finite lot you are sampling from, used for a finite-population correction.
Units and format
Enter a number in items: a count of items. The form accepts 0 items or more. Use a whole number. Required: the tool does not calculate until every input is valid.
Example
The form opens with 0 items as a worked example. It is an illustration, not a recommended value: replace it with your own figure.
Effect on the result
A small population reduces the sample size needed.
Get it right
0 means the population is very large or ongoing, and no correction is applied.

Method and formulas

  1. n₀ = (z σ ÷ E)², with z = 1.645, 1.960 or 2.576 for 90, 95 and 99%.
  2. Finite population: n = n₀ ÷ (1 + (n₀ − 1) ÷ N).
  3. Round up to a whole number.
  4. Example: σ 0.05 and a ±0.02 margin at 95% need 25 measurements.

Limitations

  • Uses the normal z value; for small samples with σ estimated from the same data, a t-based size is slightly larger.
  • A poor σ estimate gives a poor sample size.
  • Example values are illustrations. Replace them with values for your actual task.

Typical uses

  • Plan how many test pieces to make
  • Size a measurement study
  • Justify an inspection sample

Who it is for

  • Quality engineers
  • Process engineers
  • Test engineers

What you get

  • Required sample size
  • z value used

Interpreting the result

  • If the sample is too large to afford, accept a wider margin or reduce variation first.

References

  • Machinery’s Handbook, 29th edition (Industrial Press, 2012), printed pp. 130–132. Topic reference; no source tables or recommended settings are reproduced.

Learn the Concepts Behind This Tool

These BIZOMAT Library readings explain the method this tool uses, with worked examples.

BIZOMAT tools are screening and decision-support utilities. Verify important financial, engineering, safety, legal or operational decisions using appropriate professional standards and your organisation’s approved data.

Open the Sample Size to Estimate a Mean calculator