Confidence Interval Calculator

Find the range that probably holds the true average or proportion, from your sample and a confidence level, with every step shown.

Check your inputs—Complete valid inputs to calculate a current result.

How many things you measured or people you asked.

The average of your sample.

How spread out the values are (σ).

95% confidence interval for the mean

48.0400–51.9600

  • Margin of error1.9600
  • Standard error1.0000

Use only when population standard deviation is known and the normal model is appropriate. An estimated sample standard deviation generally calls for a Student t interval, which this mode does not compute.

How this was calculated

  1. Find the standard error (how much the average of a sample usually wobbles). Divide the spread by the square root of the sample size.SE = σ ÷ √nPut in your numbers: SE = 10 ÷ √100 = 10 ÷ 10Answer: SE = 1
  2. Turn the 95% confidence level into a z-score (a number from the bell curve that says how sure you want to be).z for 95% confidenceAnswer: z = 1.959963985
  3. Multiply to get the margin of error (how far the true average could be from your sample average).E = z × SEPut in your numbers: E = 1.959963985 × 1Answer: E = 1.959963985
  4. Take the margin away from the sample average and add it on. The true average is likely between these two numbers.Interval = x̄ ± EPut in your numbers: 50 − 1.959963985 to 50 + 1.959963985Answer: 48.0400 to 51.9600 (50 ± 1.959963985)

Confidence intervals in simple words

When you measure a sample (a small group) instead of everyone, your answer is only an estimate. A confidence interval is a range that probably holds the true answer for everyone.

The range is your sample result plus or minus a margin of error (how far off the estimate could be). A bigger sample gives a smaller margin. Asking for more confidence, such as 99% instead of 95%, gives a wider range.

Example: 100 apples weigh 150 g on average, and apple weights have a standard deviation (a measure of spread) of 20 g. The standard error is 20 ÷ √100 = 2 g. At 95% confidence the margin is 1.96 × 2 = 3.92 g, so the interval is 146.08 g to 153.92 g.

95% confidence means that if you repeated the whole survey many times, about 95 out of 100 of the ranges you made would contain the true value.

Formula and method

For a mean with known population standard deviation σ, use x̄ ± zσ/√n. For a proportion use the Wilson score interval, which remains between 0 and 1.

Worked example

A mean of 50, known population deviation 10 and sample size 100 give a 95% interval of approximately 48.0400–51.9600.

Frequently asked questions

Can I enter an estimated sample deviation in mean mode?

Mean mode assumes population deviation is known. If it is estimated from the sample, a Student t interval is generally appropriate instead.

References

Last updated . Results are estimates for informational purposes only.