MATHS & STATISTICS / STATISTICS

Confidence interval calculator for a mean

Estimate a confidence interval for a population mean from the sample mean, standard deviation and sample size, with the margin of error.

Last reviewed:

← All tools

Your numbers

◈ Your values stay in your browser. No account needed.
YOUR RESULT

Enter your numbers to see a result.

WORKED EXAMPLE

Confidence interval calculator for a mean: a worked example

With sample mean (x̄) 72, standard deviation (σ) 10, sample size (n) 64, confidence level 95%, the margin of error (±) is 2.449954981.

Inputs
Sample mean (x̄)72
Standard deviation (σ)10
Sample size (n)64
Confidence level95%
Results
Margin of error (±)2.449954981
Lower bound69.55004502
Upper bound74.44995498
Standard error1.25
Z-score for the confidence level1.959963985
THE METHOD

How it works

A confidence interval gives a range that is likely to contain the true mean. Enter the sample mean, the standard deviation and the number of observations, and choose the confidence level. Larger samples shrink the standard error, so the interval narrows in proportion to the square root of the sample size. This calculator uses the normal (z) distribution, which is appropriate when the standard deviation is known or the sample is large.

FormulaInterval = x̄ ± z × σ ÷ √n. Standard error = σ ÷ √n.
ASSUMPTIONS

Assumptions and limits

  • Uses z critical values, suitable when σ is known or n is large (roughly 30 or more). For small samples with an estimated standard deviation, a t interval is wider.
  • Observations are independent and come from a random sample.
  • The interval describes uncertainty about the mean, not the spread of individual values.
  • Results are estimates based on the inputs and assumptions on this page, not professional advice.
  • Try this: use “Save scenario A”, change one input and compare the two results side by side.
SOURCES

Official sources

QUESTIONS

Frequently asked questions

How is the result of the “Confidence interval calculator for a mean” calculated?

Interval = x̄ ± z × σ ÷ √n. Standard error = σ ÷ √n. A confidence interval gives a range that is likely to contain the true mean. Enter the sample mean, the standard deviation and the number of observations, and choose the confidence level. Larger samples shrink the standard error, so the interval narrows in proportion to the square root of the sample size. This calculator uses the normal (z) distribution, which is appropriate when the standard deviation is known or the sample is large.

What does the worked example show?

With sample mean (x̄) 72, standard deviation (σ) 10, sample size (n) 64, confidence level 95%, the margin of error (±) is 2.449954981. Lower bound: 69.55004502; Upper bound: 74.44995498; Standard error: 1.25; Z-score for the confidence level: 1.959963985.

What assumptions and limits apply?

This is an estimate based on the inputs and assumptions shown on this page, not professional advice. Check anything with financial, health or safety consequences independently.

Is my data private?

Yes. Calculations run in your browser and your numbers are not sent to a server. A share link contains the inputs you choose to share, so check it before sending it to anyone.

What does a 95% confidence interval mean?

If you repeated the sampling many times and built an interval each time, about 95% of those intervals would contain the true mean. Any single interval either contains it or does not.

How do I make the interval narrower?

Increase the sample size or accept a lower confidence level. Quadrupling n halves the margin of error, because it depends on √n.

When should I use a t interval instead?

When the sample is small and the standard deviation is estimated from the same sample. The t distribution has heavier tails, which widens the interval to account for the extra uncertainty.

FOR WEBSITE OWNERS

Embed this calculator on your site

Free to use. Paste this where you want the calculator to appear. It resizes itself and links back to Calculator786.