Confidence Interval Calculator Online

Calculate confidence intervals for the population mean using Z or Student t distributions. Enter the sample mean, standard deviation, sample size, and confidence level to get the interval, margin of error, and critical value instantly.

Confidence Interval
,
Margin of Error
Critical Value
Standard Error
Degrees of Freedom
Minimum sample size

Interval Visualization

Number line with the shaded CI and margin of error.

Summary for your report

Utilities Studio

Want this utility on your website?

Customize colors and dark mode for WordPress, Notion or your own site.

Frequently Asked Questions

What is a confidence interval?

A confidence interval (CI) is a range of values computed from sample data that, with a given probability (confidence level), contains the true population parameter. For example, a 95% CI for the mean means that if you repeated the sampling many times, 95% of the computed intervals would contain the true population mean.

When should I use Z instead of t?

Use Z when the population standard deviation (σ) is known, or when n is large (>30). Use Student t when only the sample standard deviation (s) is available and n is small. For n > 30, both distributions are practically equivalent, but t remains more conservative and technically correct when σ is unknown.

How does sample size affect the width of the interval?

The width of the CI is proportional to 1/√n: quadrupling the sample size halves the margin of error. This explains why large samples yield more precise estimates and why sample size planning is critical in statistical study design.

What is the margin of error?

The margin of error (ME) is half the width of the CI: ME = critical_value × SE, where SE = σ/√n is the standard error. It indicates the maximum expected difference between the sample estimate and the true population value at the specified confidence level.

# Confidence Interval Calculator: Results in Real Time

The Confidence Interval Calculator instantly computes the interval, margin of error, critical value, and standard error. It supports Z distribution (known population sigma) and Student t (sample sigma), with any confidence level between 0 and 100.
2 Z and t Distributions
Live Real-Time Results
Free No Registration

# Z Distribution vs Student t

Criterion Z Distribution Student t
When to useKnown population σ or n > 30Sample s, any n
Critical value (95%)z* = 1.960t* depends on df = n−1
Degrees of freedomNot applicabledf = n − 1
For large nNarrower CIConverges to Z
How to Correctly Interpret a Confidence Interval
A 95% confidence interval does not mean there is a 95% probability that the true mean lies in that specific interval. It means the procedure, if repeated with many samples, would produce intervals containing the true mean 95% of the time. Once computed, the interval either contains the true value or it does not.

# Quick Reference Glossary

Confidence Interval (CI)
Range [x̄ − ME, x̄ + ME] estimating the population parameter at the chosen confidence level.
Confidence Level
Proportion of intervals that would contain the true parameter if the experiment were repeated many times. Typical values: 90%, 95%, 99%.
Standard Error (SE)
SE = σ/√n. Measures the variability of the sample mean around the population mean.
Margin of Error (ME)
ME = z* × SE (or t* × SE). It is the half-width of the confidence interval.

Bibliographic References