Skip to content
simstat.com Statistics by simulation

Z-Score for a 95% Confidence Interval and Other Levels

The z-score for a 95% confidence interval is 1.96 (more precisely 1.959964): the point on the standard normal curve that leaves 2.5% of the area in each tail, so the middle 95% lies between −1.96 and 1.96. For other levels the same rule applies, giving 1.645 for 90%, 2.326 for 98% and 2.576 for 99%. Use these z values when the population standard deviation is known; when you estimate it from the sample, use a t critical value instead.

Last updated · by the simstat.com editorial team · How we write

What the z value does

A confidence interval for a mean is an estimate plus or minus a margin of error. The margin of error is a number of standard errors, and the z value, also called the critical value or the z-score for the confidence level, says how many. A 95% interval for a mean with known population standard deviation is the sample mean plus or minus 1.96 standard errors.

The number comes from the standard normal distribution, the bell curve with mean 0 and standard deviation 1. If the sample mean is normally distributed around the true mean, its distance from the true mean, measured in standard errors, follows that curve. To build an interval that catches the true mean 95% of the time, you need the band around 0 that holds 95% of the area under the curve. The 5% left over is split equally between the two tails, 2.5% in each, and the edge of that band is the z value.

Illowsky and Dean (2023) put it this way for the 90% level: “The value 1.645 is the z-score from a standard normal probability distribution that puts an area of 0.90 in the center, an area of 0.05 in the far left tail, and an area of 0.05 in the far right tail.”

The formula

Write the confidence level as 1 − α, so α is the total area left in the two tails (α = 0.05 for 95%). Illowsky and Dean (2023) describe α as “the area that is split equally between the two tails”. The two-sided z value is the point with area α/2 to its right, which is the same as area 1 − α/2 to its left:

zα/2=Φ−1 ⁣(1−α2)z_{\alpha/2} = \Phi^{-1}\!\left(1 - \frac{\alpha}{2}\right)

Here Φ is the cumulative distribution function of the standard normal distribution, the area to the left of a point, and Φ⁻¹ is its inverse, the quantile function. For 95%, 1 − α/2 = 0.975, and the point with that much of the area to its left is 1.959964. The z interval for a population mean μ is then

xˉ±zα/2 σn\bar{x} \pm z_{\alpha/2}\,\frac{\sigma}{\sqrt{n}}

where x̄ is the sample mean, σ the population standard deviation, n the sample size, and σ/√n the standard error of the mean.

Table of z values for confidence intervals

The table gives the z values for the confidence levels you are most likely to meet. Each one is computed when this page is built, with the same normal quantile function our calculators use. That function follows Wichura’s algorithm AS 241, which is also the basis of R’s qnorm, documented as giving “precise results up to about 16 digits” (R Core Team, 2024). The values that NIST/SEMATECH (2012) also list as critical values (1.282, 1.645, 1.960, 2.326, 2.576 and 3.090) match its table to all three decimals.

Confidence levelαArea in each tailTwo-sided zOne-sided z
80%0.20.11.2820.842
85%0.150.0751.4401.036
90%0.10.051.6451.282
95%0.050.0251.9601.645
96%0.040.022.0541.751
98%0.020.012.3262.054
99%0.010.0052.5762.326
99.5%0.0050.00252.8072.576
99.9%0.0010.00053.2913.090

Read the row for your level. The two-sided z is what an ordinary confidence interval, with a lower and an upper limit, needs. So the z value for a 90% confidence interval is 1.645, the z value for a 95% confidence interval is 1.960, the z value for a 98% confidence interval is 2.326, and the z value for a 99% confidence interval is 2.576. The one-sided column is explained below.

For a level that is not in this confidence interval table, compute 1 − α/2 and find the point with that much area to its left. Our normal CDF calculator does this in its inverse mode: enter the level as p with the “Central” option and it returns the band ±z around the mean. On paper, NIST/SEMATECH (2012) explain how to read a normal table that gives the area from 0 to z; with that kind of table you look up (1 − α)/2, which is 0.475 for 95%.

Why 1.96 and not 2

Rounded to two decimals the 95% value is 1.96, and Φ(1.96) = 0.9750 to four decimals, so 2.5% of the area lies beyond it. People often round further and say “plus or minus two standard errors”. That is a fine mental shortcut, but ±2 holds 95.45% of the normal curve, not 95%, so an interval built with 2 is slightly wider than a 95% interval needs to be. Software keeps all the digits (1.959964); for hand calculation, 1.96 is precise enough.

The 95% level itself is a convention. The NIST/SEMATECH (2012) handbook calls the choice of level “somewhat arbitrary” and notes that “in practice 90 %, 95 %, and 99 % intervals are often used, with 95 % being the most commonly used.” A higher level buys more confidence at the price of a wider interval, as the worked example below shows.

One-sided and two-sided z values

A two-sided interval splits α between both tails. A one-sided bound, such as “the mean fill weight is at least 500.15 g” in the worked example below, puts all of α in one tail, so its z value is Φ⁻¹(1 − α) rather than Φ⁻¹(1 − α/2). That is the last column of the table. Notice that the one-sided 95% value, 1.645, is the same number as the two-sided 90% value, 1.645: both leave 5% in the upper tail.

The same distinction applies to tests. In the NIST/SEMATECH (2012) worked example for a mean, the two-sided t critical value with 194 degrees of freedom is 1.9723, and the upper one-tailed t critical value is 1.6527. Before taking a number from any table, check which kind it lists.

z or t?

The z interval assumes you know σ, the standard deviation of the whole population. That is the case only when σ comes from outside your sample, such as a measuring process with a long, documented record. Usually you estimate it with the sample standard deviation s, and the estimate adds uncertainty. Illowsky and Dean (2023) write that “the practice now is to use the Student’s t-distribution whenever s is used as an estimate for σ.”

The t distribution has heavier tails than the normal, so its critical values are larger, but it depends on the degrees of freedom, n − 1 for a single mean. “As the degrees of freedom increases, the graph of Student’s t-distribution becomes more like the graph of the standard normal distribution” (Illowsky and Dean, 2023). The 95% critical values show how fast the two converge:

Degrees of freedomt at 95%Wider than z = 1.960 by
52.57131.2%
102.22813.7%
302.0424.2%
1001.9841.2%
1,0001.9620.1%

With 5 degrees of freedom, using z instead of t would make the interval 24% too narrow. By 1,000 degrees of freedom the difference all but disappears. Illowsky and Dean (2023) note that until the mid-1970s some statisticians used the normal approximation for large samples and kept t for samples of at most 30; with software that computes t for any sample size, there is no reason to switch.

A worked example

Suppose a filling machine puts coffee into bags, and long process records show that the fill weights have a standard deviation of σ = 2.5 g. You weigh a random sample of 40 bags and want a 95% confidence interval for the machine’s current mean fill weight. These numbers are made up for illustration.

Worked example: a 95% z interval for a mean fill weight

The sample gives n = 40 and x̄ = 500.8 g, with known σ = 2.5 g.

  1. Standard error: σ/√n = 2.5 / 6.325 = 0.3953 g.
  2. Critical value: for 95%, α/2 = 0.025, so z = Φ⁻¹(0.975) = 1.960.
  3. Margin of error: z × SE = 1.960 × 0.3953 = 0.77 g.
  4. Interval: 500.8 ± 0.77 gives 500.03 to 501.57 g.

The same sample at other levels:

LevelzMargin of errorIntervalWidth
90%1.6450.65500.15 to 501.451.30
95%1.9600.77500.03 to 501.571.54
99%2.5761.02499.78 to 501.822.04

If 2.5 g had instead been the sample standard deviation s of these 40 bags, the correct interval would use t with 39 degrees of freedom, t = 2.023, and run from 500.00 to 501.60 g: a little wider, because σ is no longer known.

These numbers are computed from the code behind our calculator when this page is built. To reproduce them, choose “Mean, σ known (z)” and “Summary statistics”, then enter the sample mean, σ and n above with the level at 95%. The calculator shows more digits: the unrounded interval is 500.0253 to 501.5747 g, which rounds to the values above.

How to report it

Give the estimate, the interval, the level, and enough for a reader to see that it is a z interval and why:

The mean fill weight was 500.8 g (95% confidence interval 500.03 to 501.57 g; z interval with σ = 2.5 g known from process records, n = 40).

Include the confidence level, the source of σ (or say that you used t with s) and the sample size, and name the software in your methods section. There is no need to report the z value itself unless you used an unusual level.

Common mistakes

Using the one-sided value for a two-sided interval. 1.645 belongs to a 90% two-sided interval or a 95% one-sided bound. Using it for an ordinary 95% interval gives a method that captures the true mean in only about 90% of repeated samples.

Looking up α instead of α/2. The point with 0.95 of the area to its left is 1.645, not 1.96. For a two-sided interval the area to the left must be 1 − α/2, which is 0.975 at the 95% level.

Using z when σ was estimated. If the standard deviation came from the same sample, use t. With small samples the z interval is noticeably too narrow, as the table of t values shows.

Mixing up a table’s layout. Some normal tables give the area to the left of z, others the area between 0 and z. NIST/SEMATECH (2012) print the second kind. Check the table’s description before reading a value off it.

Reading the level as a probability for one interval. The 95% describes the method: across many samples, about 95% of the intervals built this way contain the true mean. NIST/SEMATECH (2012) stress that “The interval computed from a given sample either contains the true mean or it does not”. Our guide on how to interpret confidence intervals shows this with 10,000 simulated intervals.

Forgetting the normality assumption. The z interval relies on the sample mean being approximately normally distributed, which the central limit theorem (the result that means of large samples are approximately normal) provides in large enough samples (Illowsky and Dean, 2023). With strong skew in a small sample, or a statistic other than the mean, a bootstrap confidence interval avoids the normality assumption, though it still needs a reasonably large sample; our guide to bootstrap confidence intervals explains how it works.

Where to go next

The confidence interval calculator uses the same critical values for z and t intervals for a mean and for its Wilson and Wald intervals for a proportion, and it accepts any level. To see why a sample mean is close to normally distributed, the premise behind every z value, read about the sampling distribution or try the sampling distribution simulator. The statistics hub collects our other guides and calculators on core statistical ideas.

References

  1. Illowsky, B. & Dean, S. (2023). Introductory Statistics 2e, Section 8.1: A Single Population Mean using the Normal Distribution. OpenStax, Rice University.
  2. Illowsky, B. & Dean, S. (2023). Introductory Statistics 2e, Section 8.2: A Single Population Mean using the Student t Distribution. OpenStax, Rice University.
  3. NIST/SEMATECH (2012). e-Handbook of Statistical Methods, Section 1.3.6.7.1: Cumulative Distribution Function of the Standard Normal Distribution. National Institute of Standards and Technology (doi:10.18434/M32189).
  4. NIST/SEMATECH (2012). e-Handbook of Statistical Methods, Section 1.3.5.2: Confidence Limits for the Mean. National Institute of Standards and Technology (doi:10.18434/M32189).
  5. R Core Team (2024). The Normal Distribution (dnorm, pnorm, qnorm, rnorm), documentation for package stats. R Foundation for Statistical Computing.

Try it

  • Confidence interval calculator: z and t intervals for a mean, Wilson and Wald intervals for a proportion, with every step of the working shown.
  • Normal CDF calculator: Probability between two bounds for any normal distribution, inverse normal, a shaded curve and TI-84 syntax.

Related reading