Confidence Interval

Confidence interval for a mean or proportion

About this calculator

The Confidence Interval Calculator builds a two-sided confidence interval for a population mean or a population proportion. For a mean it uses the Student-t interval x̄ ± t* · s/√n with df = n − 1; for a proportion it uses the normal (Wald) interval p̂ ± z* · √(p̂(1−p̂)/n). Enter your sample statistics and confidence level to get the margin of error, the lower and upper limits, the critical value, and the standard error, with a number-line diagram of the interval. Useful for statistics, polling, A/B testing, and lab measurements.

How to use the Confidence Interval calculator

  1. Enter the values for your problem into the input fields.
  2. Read the result — it updates instantly as you type.
  3. Check the formula and the visual explanation to follow how the answer was found.
  4. Copy the page URL to share the exact calculation.

Common examples

  • Mean: x̄ = 50, s = 10, n = 30, 95% → 50 ± 3.73 = [46.27, 53.73]
  • Proportion: 45 of 100, 95% → 0.45 ± 0.098 = [0.352, 0.548]
  • A higher confidence level (99%) widens the interval; a larger sample (n) narrows it
  • Poll of 60%, n = 1000, 95% → 0.60 ± 0.030 = [0.570, 0.630]
  • Small sample n = 5 uses a wider t* than the normal z* for the same confidence

Frequently asked questions

How does the Confidence Interval calculator work?

Enter your values and the calculator applies the exact mathematical method for this problem, showing the result together with the formula it used. Everything is computed with high-precision arithmetic, so the answer you see is not limited by ordinary floating-point rounding.

When would I use the Confidence Interval calculator?

It is useful for homework and exam preparation, for checking work done by hand, and whenever a step in a larger problem needs this calculation done quickly and reliably.

How accurate are the results?

Calculations run at 30 significant digits of precision internally. Displayed values are rounded for readability, but the underlying result is far more precise than a typical hand or pocket-calculator computation.

Can I share a specific calculation with someone else?

Yes. Every value you enter updates the URL, so copying the address bar and sharing the link reopens the exact same calculation for whoever clicks it.