100% Free No Sign-Up Unlimited Use No Limits Secure & Private
PDF Tools Calculators Categories Guides Contact No Sign-Up Needed to Use This Site
Confidence Interval
--
Enter values to calculate
Margin of Error
--
Critical Value (z/t)
--
Standard Error
--
Lower Bound
--
Confidencez*Interpretation
90%1.64590% of such intervals contain μ
95%1.96095% of such intervals contain μ
99%2.57699% of such intervals contain μ
99.9%3.29199.9% of such intervals contain μ

Build a confidence interval around a sample mean (using a known or estimated standard deviation) or a sample proportion, at 90%, 95%, or 99% confidence.

How It Works

How Confidence Interval Calculator Works

When the population standard deviation σ is known, the interval uses the z-distribution: margin of error = z* × (σ/√n), and the final interval is the sample mean plus or minus that margin of error.

When only the sample standard deviation s is available — far more common in real research — the calculator instead uses the t-distribution, whose critical value depends on both the confidence level and the degrees of freedom (n−1). The t-critical value is always slightly larger than the equivalent z-critical value, especially for small samples, which widens the interval to account for the extra uncertainty of estimating the true population standard deviation from a limited sample.

For a sample proportion, the standard error formula changes to √(p̂(1−p̂)/n), reflecting that variability is greatest when the proportion is close to 0.5 and shrinks as it approaches 0 or 1 (since there's naturally less room for variation near the extremes).

Worked Example

See It In Action

A sample mean of 50, known population standard deviation σ=10, sample size n=30, at 95% confidence (z*=1.96): standard error = 10/√30 ≈ 1.8257, margin of error = 1.96 × 1.8257 ≈ 3.578, giving a confidence interval of approximately (46.42, 53.58).
Real-World Use Cases

Who Uses Confidence Interval Calculator and Why

  • Reporting a margin of error around a survey's average result for a research summary.
  • Estimating a range for the true population proportion from a sample poll's results.
  • Deciding whether a small-sample study should use the t-distribution instead of the z-distribution.
  • Comparing how interval width changes across 90%, 95%, and 99% confidence levels for the same data.
Common Mistakes

Mistakes to Avoid

  • Using the z-distribution when the population standard deviation is actually unknown and only estimated from the sample — the t-distribution is the correct choice in that far more common situation.
  • Interpreting '95% confidence' as a 95% probability that this one specific interval contains the true mean, rather than its actual meaning about the long-run behavior of repeated sampling.
  • Forgetting that degrees of freedom (n−1) shrink as sample size drops, which makes the t-critical value noticeably larger — and the interval wider — for small samples.
Pro Tips

Tips for Best Results

  • Default to the t-distribution unless you genuinely know the population standard deviation ahead of time, rather than estimating it from your sample.
  • Remember a higher confidence level always widens the interval — pick the level based on what precision your specific report actually needs.
Troubleshooting

Fixing Common Problems

My interval seems unexpectedly wide for a small sample. — This is expected behavior — small sample sizes have fewer degrees of freedom (n−1), which pushes the t-critical value higher than the equivalent z-critical value, widening the interval.

Glossary

Terms Explained

Degrees of freedom: n−1 for a sample-based confidence interval, used to select the correct t-critical value — smaller samples have fewer degrees of freedom and wider intervals.

Standard error: A measure of how much a sample statistic is expected to vary from the true population value, shrinking as sample size grows.

FAQ

Frequently Asked Questions

What does "95% confidence" actually mean?
It means that if you repeated this same sampling process many times and built a new confidence interval each time, about 95% of those intervals would contain the true population mean — it's not a 95% chance that this one specific interval contains it.
When should I use the t-distribution instead of z?
Use the t-distribution whenever the population standard deviation is unknown and you're estimating it from your sample instead — this is the more common real-world scenario, especially with smaller sample sizes where the extra uncertainty matters most.
Why does a larger sample size shrink the confidence interval?
Standard error is inversely proportional to the square root of the sample size, so as n grows, the margin of error shrinks — larger samples give a more precise (narrower) estimate of the true population value.
How does confidence level affect interval width?
A higher confidence level (like 99% instead of 90%) uses a larger critical value, which widens the interval — you trade a narrower estimate for a higher level of certainty that it contains the true value, or vice versa.