Confidence Interval Calculator

Calculate confidence interval bounds and margin of error at 90%, 95%, or 99% confidence.

By Konstantin Iakovlev · Updated September 2026 · Source: NIST/SEMATECH e-Handbook of Statistical Methods — 1.3.5.2 Confidence Limits for the Mean

Lower Bound

48.016

Upper Bound

51.984

Margin of Error

±1.984

Details

CI (95%)[48.016, 51.984]
Standard Error1.0000
t Critical Value (df 99)1.984
Margin of Error1.984

Use the Confidence Interval Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only. Results are estimates based on the information you provide and the assumptions described on this page.

How It Works

When you measure a sample instead of an entire population, the number you get is only an estimate. A confidence interval wraps that estimate in a range of plausible values for the true population parameter, such as a mean or a proportion. Reporting the interval rather than a single point tells your audience how precise the estimate actually is and how much sampling variation it carries.

The math behind the interval follows a simple structure: take your estimate and add and subtract a margin of error, written as Estimate ± (Critical Value × Standard Error). The estimate is the figure straight from your sample, such as the sample mean. Because the standard deviation you enter is estimated from the sample itself, the calculator uses a t critical value with n − 1 degrees of freedom for the confidence level you choose, as the NIST handbook does. For small samples it is noticeably larger than the normal-distribution z value (2.262 rather than 1.96 at 95% with n = 10, and 2.776 with n = 5); as the sample grows it approaches the z values of 1.645, 1.96 and 2.576 for 90%, 95% and 99%. The standard error measures how much the sample estimate would bounce around from one sample to the next.

The confidence level is the part people most often read wrong. A 95% confidence interval does not say there is a 95% chance the true value sits inside your particular interval. It says that if you drew sample after sample and built an interval each time, 95% of those intervals would capture the true population parameter. The interpretation only holds when the sample is drawn randomly and represents the population, so a biased sampling method quietly breaks the whole result.

Example: Estimating Average Customer Spend

  1. 1 A coffee shop wants to estimate the average amount customers spend. They randomly sample 50 customers and find the average spend to be $5.25 with a standard deviation of $1.50. They want a 95% confidence interval.
  2. 2 Inputting these values: Sample Mean = 5.25, Sample Size (n) = 50, Standard Deviation = 1.50, Confidence Level = 95%. Standard error = 1.50 / √50 = 0.2121. The t critical value for 95% and 49 degrees of freedom is 2.010, so the margin of error is 2.010 × 0.2121 = ±0.426.
  3. 3 The calculator shows the 95% interval as [4.824, 5.676], or $4.82 to $5.68. The z value of 1.96 would give $4.83 to $5.67; at n = 50 the two barely differ, but with only 5 people the t value would be 2.776 rather than 1.96.
  4. 4 Based on this sample, we are 95% confident that the true average spending of all customers at the coffee shop is between $4.83 and $5.67. This interval provides a more informative estimate than just the sample mean of $5.25.

Frequently Asked Questions

What does a 95% confidence interval mean?
A 95% confidence interval means that if you repeated the study many times, 95% of the calculated intervals would contain the true population parameter. It does not mean there is a 95% probability the true value is in this specific interval.
How do you calculate a confidence interval?
CI = sample mean ± (z-score x standard error). The z-score is 1.96 for 95% confidence, 1.645 for 90%, and 2.576 for 99%. Standard error = standard deviation / sqrt(sample size).
When should I use 90% vs 95% vs 99% confidence?
95% is the standard in most research. Use 90% for exploratory work or when a wider margin is acceptable. Use 99% for high-stakes decisions like medical trials or engineering tolerances where being wrong is costly.