FireCADCalc

Confidence Interval of a Mean and Sample Size

Confidence interval of a population mean from a sample mean, standard deviation and size (normal approximation), and the sample size for a target margin of error.

Thermal power plantProcess steam and utilitiesRefinery and petrochemicalChemical and fertiliserPulp and paperFood, dairy and textile

Inputs

Examples: 40 samples, mean 50, s 4, 95 %Coal GCV: 100 samples, s 150 kJ/kg, 99 %

Results

Critical value1.9600
Margin of error1.2396
Lower limit48.760
Upper limit51.240
Sample size for the target margin62.000

Download PDF CSV Link to this result Compare another case

Log in to save calculations to your dashboard.

Worked example

Example: 40 samples, mean 50, s 4, 95 %. The inputs, in the units selected above:

InputValue
Sample mean50.000 -
Standard deviation4.0000 -
Sample size40.000 -
Confidence level95 %
Target margin of error1.0000 -

Applying the formula below gives:

ResultValue
Critical value1.9600
Margin of error1.2396
Lower limit48.760
Upper limit51.240
Sample size for the target margin62.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.

Related calculators

Free engineering calculators: every page computes in SI and converts to your units. Results are for engineering estimation; verify critical designs against the referenced standards.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.