Confidence Interval Calculator

By Seagit ✨
Deploy to your own cloud with Seagit, today.Start freeNo credit card required

Find a confidence interval for a mean or a proportion

95% confidence interval

[47.1386, 52.8614]

Margin of error±2.861428
Critical t (df = n − 1)2.262157
Estimate50.000000

Formula

x̄ ± t(n − 1) × s / √n

Assumptions: independent observations. The z version also needs a known population σ; the t version uses the sample s and needs a roughly normal population or a large n. The proportion versions need independent trials with a fixed success probability.

📏 Confidence Interval Calculator — Free Online Tool

Get a confidence interval for a mean or a proportion. A confidence interval gives a range of plausible values for a population parameter, based on a sample. This calculator handles three cases: a mean when the population standard deviation is known (z), a mean when you only have the sample standard deviation (t), and a proportion (Wald and Wilson). Pick the case, choose a confidence level, enter the sample numbers, and the interval, margin of error and critical value appear with the formula used.

How to use it

  1. Choose what you are estimating: a mean with known population SD (z), a mean with your sample SD (t), or a proportion.
  2. Pick the confidence level, from 80% to 99%. 95% is the usual default.
  3. Enter the sample mean, the SD and the sample size, or for a proportion, the number of successes and the sample size.
  4. Read the interval, the margin of error and the critical value. For a proportion, compare the Wald interval with the Wilson interval.

🚀 Why use this Confidence Interval Calculator tool?

Choose the right critical value. When you estimate a mean with a sample standard deviation, the correct multiplier comes from the t distribution with n − 1 degrees of freedom, not from z, so the interval is honest about the extra uncertainty in s. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.

Key Features

🔔Known sigma (z)

When the population standard deviation is known, the interval is x̄ ± z × σ / √n with the normal critical value for your confidence level.

📐Sample SD (t)

With a sample standard deviation, the calculator uses the t critical value with n − 1 degrees of freedom. For n = 10 at 95% that is 2.262, not 1.96.

🎯Proportion (Wald and Wilson)

The Wald interval is the textbook normal approximation. The Wilson score interval is shown next to it, since it behaves better for small samples or extreme proportions.

🔒Formulas on screen

The formula and the assumptions for each method are shown with the result, so you can check the calculation by hand.

Popular Use Cases

Survey and polling

  • • Margin of error for a percentage
  • • Wilson interval for small samples
  • • Comparing two survey waves

Lab and quality work

  • • Mean of repeated measurements
  • • Range for a process average
  • • Reporting a result with its uncertainty

Coursework and study

  • • Check a t interval by hand
  • • Learn the z versus t difference
  • • Verify a textbook answer

What It Handles

Means

  • ✓ z with known σ
  • ✓ t with sample s and n − 1 df
  • ✓ Levels 80, 90, 95, 98, 99%

Proportions

  • ✓ Wald interval, clipped to 0 to 1
  • ✓ Wilson score interval
  • ✓ Successes and sample size

Output

  • ✓ Lower and upper bounds
  • ✓ Margin of error and critical value
  • ✓ Formula and assumptions

Related Tools

Sources & References

Frequently Asked Questions

When should I use t instead of z for a mean?

Use t when you estimate the population standard deviation from your sample, which is almost always the case in practice. The t distribution has heavier tails for small samples, so the critical value is larger than z until the sample is large.

What are the assumptions behind these intervals?

The observations should be independent. The z interval also needs a known population standard deviation. The t interval assumes the population is roughly normal or that n is large enough for the sample mean to be close to normal. Proportion intervals assume a fixed success probability across independent trials.

Why show both Wald and Wilson for a proportion?

The Wald interval is simple and widely taught, but it can go below 0 or above 1 and often under-covers for small n or p near 0 or 1. The Wilson score interval stays inside 0 and 1 and performs better in those cases, so comparing them is useful.

What does a 95% confidence interval mean?

If you repeated the sampling and built an interval the same way many times, about 95% of those intervals would contain the true parameter. It is a statement about the method, not a 95% probability for the one interval you computed.

🎓 Pro Tips

  • Tip 1: Report the interval with the sample size and the method, for example 95% t interval, n = 10. Readers can then judge the precision.
  • Tip 2: A wider interval is the price of a higher confidence level. Going from 95% to 99% makes the interval noticeably wider.
  • Tip 3: For a proportion with small n, prefer the Wilson interval. Wald is acceptable for large n and p away from 0 and 1.
  • Tip 4: The margin of error is half the width of the interval. Doubling the sample size shrinks it by about a factor of √2.
banner