Skip to content

Confidence Interval Calculator

Get the range that likely holds the true mean or proportion.

Use t when σ is estimated from a small sample.

95% confidence interval

48.040036 to 51.959964

50 ± 1.959964

Margin of error
±1.95996398
Standard error (s / √n)
1
z critical value
1.959964
Lower bound
48.04003602
Upper bound
51.95996398

How it was calculated

  1. z for 95% = 1.959964
  2. SE = s / √n = 10 / √100 = 1
  3. E = 1.959964 × 1 = 1.95996398
  4. CI = 50 ± 1.95996398 = [48.04003602, 51.95996398]

Calculations run on this device and your inputs are not uploaded. A share link puts your inputs in the URL, so anyone with the link can read them.

More Math Calculators

All calculators

How the confidence interval calculator works

A confidence interval is a range built from a sample that, with a stated confidence level, contains the true population value. For a mean it's x̄ ± z × σ / √n, where σ / √n is the standard error and z is the critical value for the confidence level (1.96 for 95%).

When the standard deviation comes from a small sample, the t-distribution with n - 1 degrees of freedom gives a slightly wider, more honest interval. For large samples the two match.

For a proportion, the simple (Wald) interval is p̂ ± z √(p̂(1 - p̂) / n). The Wilson score interval is also shown because it behaves better when n is small or p̂ is near 0% or 100%.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions

If you repeated the sampling many times and built an interval each time, about 95% of those intervals would contain the true value. It isn't a 95% chance for this particular interval.

Small samples, high variability and higher confidence levels all widen it. Quadrupling the sample halves the width.

Use t when you estimated the standard deviation from your sample, especially with fewer than about 30 observations. Use z when σ is known or n is large.

Yes. Every calculator is free with no sign-up. Clearly labeled ads keep it that way.

Calculations run in your browser. Share links put inputs in the URL, which can be read by anyone you send it to and is sent to the hosting server when opened. Avoid sharing sensitive numbers. Currency conversion requests public exchange rates.

Results follow the formulas and assumptions shown, with normal rounding and numerical limits. Taxes, rates and health guidance can change, so treat these as estimates and confirm important decisions with a qualified professional.