Calculate confidence interval

Calculate a z-based confidence interval for a mean when population variation is known.

freeworks offlinenothing uploaded
ToolConfidence Interval Calculator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

The margin of error multiplies a selected two-sided z critical value by the standard error, which is the known population deviation divided by the square root of the sample size. Adding and subtracting that margin from the sample mean gives the interval bounds.

  • This z interval is for a known population deviation; a sample deviation requires a t interval.

Worked example

A sample of 25
Sample mean 50, standard deviation 10, at 95% confidence
Input
											Sample mean: 50
Standard deviation: 10
Sample size: 25
Confidence level: 95
										
Output
												Margin of error: 3.92
Lower bound: 46.08
Upper bound: 53.92
Z value: 1.96
											

When to use this

Manufacturing measurements, survey means, and laboratory controls report uncertainty intervals.

Edge cases

  • A sample standard deviation is not the known population deviation assumed here.
  • A sample size below two is rejected.
  • A zero deviation is rejected because the tool requires positive uncertainty.

References