Confidence Interval Calculator

Find the confidence interval for a mean from the sample mean, standard deviation, sample size, and confidence level. Calculates in your browser.

Confidence interval

-

Margin of error-
Lower bound-
Upper bound-

Show the math

The interval is the mean plus or minus a margin from the standard error:

CI = mean ± z × (σ ÷ √n)

The z value comes from the confidence level (1.96 for 95%). This normal approximation is best for larger samples (n ≥ 30). All math runs locally in your browser.

What this does

The confidence interval calculator finds the range that likely contains the true population mean, using the sample mean, standard deviation, sample size, and a confidence level. It also reports the margin of error.

How to use it

  1. Enter the sample mean and standard deviation.
  2. Enter the sample size.
  3. Choose a confidence level (e.g. 95%).
  4. Read the interval and margin of error.

How it works

The margin of error is the critical z-value for your confidence level times the standard error (sd divided by the square root of n). The interval is the mean plus and minus that margin. This normal approximation is best for large samples (n ≥ 30).

CI = mean ± z × (sd ÷ √n)

Understanding your result

A 95% confidence interval means that if you repeated the sampling many times, about 95% of the intervals built this way would contain the true mean — not that any single interval has a 95% chance of doing so. A larger sample or a lower confidence level narrows the interval; a higher confidence level widens it.

Example

A mean of 100, sd 15, n 36 gives a 95% interval of about 100 ± 4.9, or 95.1 to 104.9.

Sources & methodology

Last updated .

Frequently asked questions

What does a 95% confidence interval mean?

If you repeated the study many times, about 95% of the intervals computed this way would contain the true population mean. It is a statement about the method, not a single interval.

How do I make the interval narrower?

Increase the sample size or accept a lower confidence level. Both shrink the margin of error; a higher confidence level widens it.

Does this use the z or t distribution?

It uses the normal (z) approximation, which is reliable for large samples (n ≥ 30). Very small samples are better served by a t-interval.

Is my data stored?

No. Everything is calculated locally in your browser.