esc
Calculators

Confidence interval calculator:
for a mean or a proportion

Type the sample mean, standard deviation and size, paste the raw data, or give a count of “yes” answers, and get the interval that likely contains the true value.

95% confidence interval for the mean69.056484 to 75.74351672.4 ± 3.343516
Sample mean
72.4
Margin of error
± 3.343516
Standard error (s ÷ √n)
1.62
t critical value (df = 24)
2.063899
  • x̄ ± t × s ÷ √n with n − 1 degrees of freedom. The t value is wider than z for small samples and approaches it as n grows.

How to use Confidence interval calculator

  1. 01Pick mean or proportionSummary numbers or raw data.
  2. 02Choose the confidence level90, 95, 99% and more.
  3. 03Read the intervalWith the margin of error.
File character arranging marked pages

Estimate ± margin of error.

For a mean the interval is x̄ ± t × s ÷ √n, with t from Student’s distribution on n − 1 degrees of freedom; tick the box to use z when the population σ is known. For a proportion it is p̂ ± z × √(p̂(1 − p̂) ÷ n), and the Wilson score interval is shown too because it behaves better for small samples or shares near 0% or 100%.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

Can you show a 95% interval for a mean?

With x̄ = 72.4, s = 8.1 and n = 25 the standard error is 8.1 ÷ 5 = 1.62 and t(24) = 2.064, so the margin is 3.34 and the interval is 69.06 to 75.74.

What does 95% confidence actually mean?

If you repeated the sampling many times, about 95% of the intervals built this way would contain the true mean. It does not mean there is a 95% chance this one interval contains it.

Why use t instead of z?

Because s is estimated from the same sample, which adds uncertainty. The t value is larger for small samples (2.262 for n = 10 at 95%) and approaches 1.960 as n grows.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.