Worked example
Example: 40 samples, mean 50, s 4, 95 %. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Sample mean | 50.000 - |
| Standard deviation | 4.0000 - |
| Sample size | 40.000 - |
| Confidence level | 95 % |
| Target margin of error | 1.0000 - |
Applying the formula below gives:
| Result | Value |
|---|---|
| Critical value | 1.9600 |
| Margin of error | 1.2396 |
| Lower limit | 48.760 |
| Upper limit | 51.240 |
| Sample size for the target margin | 62.000 |
Open this example in the calculator and change any input.
Formula
\(\bar x \pm z\frac{s}{\sqrt n}, \quad n = \left(\frac{zs}{E}\right)^2\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(\bar x\) | Sample mean | - |
| \(s\) | Standard deviation | - |
| \(n\) | Sample size | - |
| \(\text{confidence}\) | Confidence level | - |
| \(E\) | Target margin of error | - |
| \(z\) | Critical value | - |
| \(z\,s/\sqrt n\) | Margin of error | - |
| \(\bar x - z s/\sqrt n\) | Lower limit | - |
| \(\bar x + z s/\sqrt n\) | Upper limit | - |
| \(n_{req}\) | Sample size for the target margin | - |
Method and standards
Normal sampling distribution.
Where it is used
- Coal and fuel sampling plans.
- Performance test uncertainty.
Common mistakes
- Using z for very small samples.
- Confusing standard deviation and standard error.
Assumptions and limits
- Random independent samples.
- The z value is used for any n; under 30 samples the interval is too narrow (Student's t is wider), and a note says so.
References
- Large-sample confidence interval x̄ ± z s/√n (Montgomery, Introduction to Statistical Quality Control, 7th ed. (Wiley, 2012), ch. 4)
Questions and answers
What does 95 % confidence mean?
If the sampling were repeated many times, 95 % of such intervals would contain the true mean.
How do I halve the margin?
Take four times as many samples: the margin falls with the square root of n.
What do the defaults represent?
40 measurements averaging 50 with a standard deviation of 4.
Method and article reviewed by FireCAD engineering on 13 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.