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.
Formula
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 level | Critical z-score (z*) | Alpha (1 - CL) | Typical use |
|---|---|---|---|
| 80% | 1.2816 | 0.20 | Exploratory research, quick estimates |
| 85% | 1.4395 | 0.15 | Preliminary studies |
| 90% | 1.6449 | 0.10 | Engineering, social science |
| 95% | 1.9600 | 0.05 | Most published research (standard) |
| 99% | 2.5758 | 0.01 | Medical 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.