Skip to content
Other

90% Confidence Interval Calculator

Enter your sample mean, standard deviation, and sample size to calculate a confidence interval around the mean. The default is 90%, but you can switch to 80%, 85%, 95%, or 99%. Results include the lower bound, upper bound, margin of error, standard error, and the critical z-score used, updated as you type.

Your details

The average value of your sample (x-bar).
The standard deviation of your sample (s). For population standard deviation, use the same field.
The number of observations in your sample (n). Larger samples produce narrower intervals.
The probability that the true population mean falls within the calculated interval.
Lower boundNarrow interval
46.9968

The smallest value in the confidence interval

Upper bound53.0032
Margin of error3.0032
Standard error1.8257
Critical z-score1.6449
1.644995.0% below · Standard deviations from mean
03.687.365103200
Sample size (n)
Margin of error
Sample size (n)Margin of error (90% CI)
57.36
105.2
154.25
203.68
303
402.6
502.33
751.9
1001.64
1501.34
2001.16

90% CI: [47.00, 53.00] around a mean of 50.

  • The 90% confidence interval is 46.9968 to 53.0032, with a margin of error of 3.0032.
  • If you repeated this study many times, 90% of the calculated intervals would contain the true population mean.
  • To cut the margin of error in half, you would need to increase the sample size roughly fourfold, because standard error shrinks with the square root of n.

Next stepTo narrow the interval further, increase sample size or accept a lower confidence level. Switching from 95% to 90% reduces the margin of error by about 16%.

Formula

CI=xˉ±z∗⋅sn,SE=sn,MOE=z∗⋅SE\text{CI} = \bar{x} \pm z^{*} \cdot \frac{s}{\sqrt{n}}, \quad SE = \frac{s}{\sqrt{n}}, \quad MOE = z^{*} \cdot SE

Worked example

A survey of 30 people finds a mean score of 50 with a standard deviation of 10. Standard error = 10 / sqrt(30) = 1.8257. For a 90% CI the z-score is 1.6449. Margin of error = 1.6449 * 1.8257 = 3.0029. The 90% CI is 50 - 3.003 = 46.997 to 50 + 3.003 = 53.003.

What is a confidence interval?

A confidence interval (CI) is a range of values, calculated from sample data, that is likely to contain the true population parameter. A 90% confidence interval means that if you repeated the same study many times and computed a CI each time, about 90% of those intervals would contain the true population mean. It does not mean there is a 90% probability that the true mean is in this specific interval - the true mean is fixed; it is the interval that varies from sample to sample. Confidence intervals are preferred over single-point estimates because they communicate both the estimated value and the precision of that estimate.

The confidence interval formula

For a sample mean, the confidence interval is calculated as: CI = x-bar plus or minus z* times (s divided by square root of n). Here, x-bar is the sample mean, s is the standard deviation, n is the sample size, and z* is the critical value from the standard normal distribution for the chosen confidence level. The term s divided by square root of n is called the standard error (SE), and it measures how much the sample mean varies from sample to sample. The product z* times SE is the margin of error (MOE), the half-width of the interval. This formula assumes either that the population standard deviation is known, or that the sample size is large enough (generally n >= 30) for the Central Limit Theorem to apply.

How confidence level affects interval width

The higher the confidence level you choose, the wider the interval must be to guarantee that it captures the true mean with that higher probability. Switching from a 90% CI (z* = 1.645) to a 95% CI (z* = 1.960) increases the margin of error by about 19%. Going to 99% (z* = 2.576) nearly doubles the margin of error compared with 90%. There is always a trade-off between confidence and precision: wider intervals are more reliable but less informative. For most academic and industrial applications, 95% is the standard. A 90% interval is common in engineering and in situations where a slightly narrower interval is acceptable for practical decision-making.

How sample size affects the interval

Because sample size appears under a square root in the standard error formula, you need to quadruple the sample size to halve the margin of error. For example, if n = 30 gives a margin of error of 3, you need n = 120 to bring the margin of error down to 1.5. This relationship is why large samples are so valuable in research: each additional observation narrows the interval, but with diminishing returns. The chart below shows how the margin of error shrinks as sample size increases from 5 to 200 for the current inputs. The biggest gains come in the low-n range, confirming that going from 5 to 30 observations buys far more precision than going from 100 to 125.

When to use a t-distribution instead

This calculator uses z-scores, which are appropriate when the population standard deviation is known or the sample size is at least 30 (so the Central Limit Theorem applies). When the sample is small (n < 30) and the population standard deviation is unknown, the t-distribution gives a more conservative and statistically correct interval. The t-distribution has heavier tails than the normal distribution, so it produces wider intervals for small samples, correctly reflecting the extra uncertainty. As sample size grows, the t-distribution approaches the normal distribution, so the two methods converge for large n.

Common confidence levels and z-scores

Confidence levelCritical z-score (z*)Alpha (1 - CL)Typical use
80%1.28160.20Exploratory research, quick estimates
85%1.43950.15Preliminary studies
90%1.64490.10Engineering, social science
95%1.96000.05Most published research (standard)
99%2.57580.01Medical trials, high-stakes decisions

Two-tailed critical z-values for the most common confidence levels. Higher confidence requires a wider interval.

Frequently asked questions

What does a 90% confidence interval mean?

It means that if you were to repeat your sampling procedure many times and construct a CI each time, approximately 90% of those intervals would contain the true population mean. It does not mean the probability is 90% that the true mean is inside this particular interval - the true mean is a fixed (unknown) value, not a random variable.

What is the z-score for a 90% confidence interval?

The critical z-score for a 90% confidence interval is 1.6449 (often rounded to 1.645). This comes from the standard normal distribution: 90% of the probability lies within plus or minus 1.6449 standard deviations of the mean, leaving 5% in each tail (alpha/2 = 0.05).

How do I reduce the margin of error?

There are three ways: increase the sample size (the most common approach), lower the confidence level (e.g. use 90% instead of 95%), or reduce the variability in your data (use more precise measurement instruments or a more homogeneous population). Because sample size appears under a square root, quadrupling n cuts the margin of error in half.

Should I use a z-score or a t-score for my confidence interval?

Use a z-score when the population standard deviation is known, or when your sample size is 30 or more. Use a t-score (from the t-distribution) when the sample is small (n < 30) and the population standard deviation is unknown. For large samples the difference is negligible, but for small samples the t-distribution gives a more honest (wider) interval.

Can I use this calculator for proportions?

This calculator is for a confidence interval around a sample mean. For a proportion (e.g., the fraction of people who said yes to a survey question), the formula is different: CI = p-hat plus or minus z* times square root of (p-hat times (1 minus p-hat) divided by n). Use a dedicated proportion confidence interval calculator for that case.

What is the difference between standard deviation and standard error?

Standard deviation (s) measures the spread of individual observations within a single sample. Standard error (SE = s divided by square root of n) measures how much the sample mean itself would vary if you repeated the study many times. SE is always smaller than s for n > 1, and it shrinks as sample size grows. The confidence interval is built around the standard error, not the raw standard deviation.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…