Skip to content
The Calculatorz
Statistical inference

Confidence Interval Calculator for a Mean

Estimate a two-sided 90%, 95% or 99% confidence interval for a mean using a sample mean, standard deviation and sample size.

This calculator uses a normal critical value with the entered standard deviation. When population standard deviation is unknown and the sample is small, a t interval may be more appropriate. Random sampling and independence assumptions still matter.

Sample statistics and confidence level

Sample summary

How to use this calculator

Enter the sample mean, the applicable standard deviation, sample size and desired confidence level. Interpret the interval as a repeated-sampling procedure, not as a probability that a fixed parameter changes after the interval is observed.

Formula

Standard error = standard deviation ÷ √n. Margin of error = z* × standard error. Interval = sample mean ± margin of error.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewSaeedM.Phil Statistics, Data Scientist

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

Does 95% confidence mean a 95% chance the mean is inside this interval?

In frequentist terms, 95% describes the long-run coverage of intervals produced by the method, not a changing probability for a fixed parameter.

When should I use a t interval?

Usually when population standard deviation is unknown, especially for smaller samples from an approximately normal population.

Does a larger sample make the interval narrower?

All else equal, yes, because standard error decreases with the square root of sample size.

What confidence level should I use?

95% is the most common choice. A 99% interval is wider and more cautious; a 90% interval is narrower but misses the true value more often.

What is the margin of error?

It is half the width of the confidence interval: the amount added and subtracted around the sample estimate.

How do I calculate a 95% confidence interval?

Find the standard error (standard deviation ÷ √n), multiply it by 1.96, and add and subtract the result from the sample mean. With a mean of 50, a standard deviation of 10 and n = 100, the interval is 50 ± 1.96, or 48.04 to 51.96.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Illowsky, B., & Dean, S. (2023). Introductory statistics 2e. OpenStax. View source
  2. Croarkin, C., & Tobias, P. (Eds.). (2012). NIST/SEMATECH e-handbook of statistical methods. National Institute of Standards and Technology. View source
  3. Casella, G., & Berger, R. L. (2002). Statistical inference (2nd ed.). Duxbury. View source
  4. Cochran, W. G. (1991). Sampling techniques (3rd ed.). Wiley. View source
  5. International Organization for Standardization. (2019). ISO 80000-2: Quantities and units—Part 2: Mathematics. View source