Skip to main content
Confidence Interval

Confidence Interval Calculator

Calculate confidence intervals for a population mean with any confidence level.

Confidence Level
95% Confidence Interval
94.6323 to 105.3677
Width: 10.7354
Enter sample mean, standard deviation, and sample size to compute the confidence interval

How It Works

A confidence interval (CI) is a range of values, calculated from sample data, that is likely to contain the true population parameter β€” usually the population mean β€” with a stated level of confidence. This calculator takes a sample mean, a standard deviation and a sample size, lets you pick a confidence level of 90%, 95%, 98% or 99%, and returns the interval’s lower and upper bounds along with the margin of error and the standard error. It is built for students of statistics, researchers and analysts, and anyone reporting survey or experimental results who needs to express not just an estimate but how precise that estimate is.

The confidence level is widely misread, so it is worth stating carefully. A 95% confidence interval means that if you repeated the same sampling procedure many times and built an interval each time, about 95% of those intervals would contain the true population mean. It is not a 95% probability that the true mean lies inside this one particular interval β€” the true mean is fixed; it is the interval that varies from sample to sample. The confidence level therefore describes the long-run reliability of the method, not the odds for any single result.

Formula

CI = xΜ„ Β± z Γ— (Οƒ / √n)

Here xΜ„ is the sample mean, z is the critical value for the chosen confidence level, Οƒ is the standard deviation, and n is the sample size. The piece Οƒ / √n is the standard error (SE) β€” how much the sample mean is expected to vary around the true mean β€” and z Γ— SE is the margin of error (ME), which is simply half the total width of the interval. So the interval runs from xΜ„ βˆ’ ME up to xΜ„ + ME.

Critical values (z)

90% β†’ 1.645 Β· 95% β†’ 1.96 Β· 98% β†’ 2.326 Β· 99% β†’ 2.576

The most commonly used value is z = 1.96 for a 95% confidence interval, which is the default standard in most scientific reporting. Higher confidence levels use larger z-values, which widen the interval β€” the price of more certainty is less precision.

Worked example

Suppose a sample of n = 30 readings has a mean xΜ„ = 100 and a standard deviation Οƒ = 15, and you want a 95% confidence interval. First the standard error: SE = Οƒ / √n = 15 / √30 β‰ˆ 15 / 5.477 β‰ˆ 2.739. Next the margin of error at 95% (z = 1.96): ME = 1.96 Γ— 2.739 β‰ˆ 5.37. The interval is therefore xΜ„ Β± ME = 100 Β± 5.37, giving roughly 94.63 to 105.37. You can report this as: β€œthe true mean is estimated at 100, with a 95% confidence interval of about 94.6 to 105.4.”

Tips for using this calculator

  • Larger samples shrink the interval: because the standard error divides by √n, quadrupling the sample size roughly halves the margin of error. Use the what-if slider to see this effect live.
  • Pick the confidence level to match the stakes β€” 95% is the everyday default, while 99% suits high-consequence work such as medical, safety or financial decisions.
  • Report the full interval, not just the mean. A point estimate alone hides how precise (or imprecise) your data actually is.
  • A narrower interval is not automatically β€œbetter” β€” it may simply reflect a lower confidence level rather than more reliable data.

Common mistakes to avoid

  • Misreading the confidence level as the probability the true mean lies in this specific interval. It describes the long-run success rate of the method across many samples.
  • Using the z-distribution for small samples with an unknown population standard deviation. For n below about 30, the t-distribution (Student’s t) is the correct choice.
  • Confusing standard error with standard deviation. The standard deviation describes the spread of individual data points; the standard error describes the spread of the sample mean and equals Οƒ / √n.
  • Forgetting that a wider interval is more, not less, cautious. Raising the confidence level always widens the interval, because you are demanding a higher chance of capturing the true value.

Frequently Asked Questions

A 95% confidence interval means that if you were to repeat the sampling process many times, approximately 95% of the computed intervals would contain the true population mean. It does NOT mean there is a 95% chance the true mean is in this specific interval.

Part of Statistics & Probability Calculators β€” compare every related calculator in one place.