Confidence Interval Calculator - Mean and Proportion

Calculators / Math Calculators / Confidence Interval

Confidence Interval Calculator

Use when the standard deviation was calculated from the sample. This is the usual case.

%
Confidence interval 69.19776 … 75.80224
Critical value t = 2.0639
Standard error 1.6
Margin of error ±3.302238
Interval width 6.604475

Step-by-step solution

SE = s / √n = 8 / √25 = 1.6
df = 25 − 1 = 24, t = 2.0639
e = 2.0639 · 1.6 = 3.302238
72.5 ± 3.302238 = [69.19776; 75.80224]

Understanding confidence intervals

A sample gives an estimate, not the exact truth. A confidence interval shows the range of values that fit your data at a chosen level.

How to use it

  1. 1 Choose a mean or a proportion.
  2. 2 Enter the summary of your sample and the confidence level.
  3. 3 Read the interval; the steps show the standard error and the critical value.

Formula

t: x̄ ± t · s / √n, df = n − 1
z: x̄ ± z · σ / √n
Wilson: (p̂ + z²/2n ± z · √(p̂(1 − p̂)/n + z²/4n²)) / (1 + z²/n)
Wald: p̂ ± z · √(p̂(1 − p̂)/n)

t or z?

When the standard deviation comes from the sample itself, the t distribution adds the extra uncertainty. With 25 values the 95% critical value is 2.064 instead of 1.960. The difference fades as the sample grows.

Why Wilson for proportions?

The simple Wald formula fails with small samples or proportions near 0% and 100%; it can even give negative limits. The Wilson interval stays between 0% and 100% and keeps closer to the stated confidence. It is not symmetric around the observed proportion.

What the level does not mean

A 95% interval does not say the true value has a 95% chance of being in this particular interval. It says the method captures the true value in about 95% of repeated samples.

Related calculators: Sample Size · Z-Score · Standard Deviation

Confidence Interval FAQ

Collect more data or accept a lower confidence level. Four times the data halves the width.
New
Logarithm Calculate the logarithm of a number in any base, with ln, log10 and log2, the antilog, and the change of base steps.
Popular Today
Logarithm Calculate the logarithm of a number in any base, with ln, log10 and log2, the antilog, and the change of base steps.

Other math calculators

Scientific Calculator A scientific calculator with trigonometry, logarithms, powers, roots and factorials. Type an expression or use the keypad; degrees and radians both supported.
Fraction Calculator Add, subtract, multiply or divide two fractions. The answer is simplified and also shown as a mixed number and a decimal, so you can use the form you need.
Standard Deviation Paste a list of numbers and get the standard deviation, variance, mean, median, mode and range at once - both the sample and the population version.
Quadratic Solver Enter a, b and c to solve ax² + bx + c = 0. You get the roots, the discriminant that decides how many there are, and the vertex of the parabola.
Triangle Calculator Solve a right triangle from any two sides, or a general triangle from all three. You get the missing side, all three angles, the area and a drawing to scale.

Other Calculators You May Like

Age Calculator Free age calculator: enter your birth date to see your exact age in years, months, days, hours and minutes, plus the countdown to your next birthday.
Date Difference Calculator Free date difference calculator: find the exact time between two dates in years, months, days and weeks, and see how many working days fall in between.
Day of the Week Calculator Free day of the week calculator: find out which weekday any date falls on - past or future - handy for birthdays, events and historical dates.
Business Days Calculator Free business days calculator: count the working days between two dates, weekends excluded - useful for deadlines, delivery dates and project planning.
Week Number Calculator Free ISO 8601 week number calculator: find which week of the year any date falls in, and see the first and last day of that week at a glance.