Confidence Interval Calculator
Turn a sample mean into a range you can defend — with the z or t critical value, margin of error, and the interpretation, spelled out.
Confidence level
Method
How to use the confidence interval calculator
- Enter your sample. Type the sample mean x̄, the sample standard deviation s, and the sample size n (a whole number of at least 2).
- Pick a confidence level. 90%, 95%, 99%, or a custom percentage — higher confidence means a wider interval.
- Pick a method. Choose z if σ is known or n is large; choose t (the usual homework choice) when σ is estimated from the sample.
- Press Calculate. You get the lower and upper bounds, the margin of error, the critical value used and why, plus the interpretation sentence.
Frequently asked questions
What is a confidence interval?
A confidence interval is a range of plausible values for a population parameter, built from sample data. A 95% confidence interval for the mean is x̄ ± (critical value) × s/√n.
Should I use the z or the t critical value?
Use z when the population standard deviation σ is known or the sample is large (n ≥ 30). Use t with df = n − 1 when σ is estimated from the sample, especially for small samples — t has heavier tails, so its intervals are wider.
Does 95% confident mean there is a 95% chance the mean is inside?
Not exactly. It means that if you repeated the sampling process many times, about 95% of the intervals you build would contain the true mean. The true mean is fixed; the interval is what varies.
How does a bigger sample change the interval?
A bigger n shrinks the standard error s/√n, so the margin of error shrinks and the interval gets narrower — you learn the mean more precisely.
Why is a 99% interval wider than a 95% interval?
Higher confidence demands a larger critical value (2.576 instead of 1.96), which multiplies the standard error into a wider margin of error. More certainty costs more width.
More from the codex
Confidence Interval Calculator
Confidence intervals for the mean, with z or t.
Z-Score Calculator
Z-scores, percentiles, probabilities, and critical values.
Open tool → LiveP-Value Calculator
Exact p-values for z and t test statistics.
Open tool → LiveSample Size Calculator
How many observations your study needs.
Open tool →Support the codex
This tool is free, with no account and no ads. If it saved you some time, consider supporting the indie dev behind it. Questions? Email [email protected].