What is a Mean Confidence Interval Calculator?
A confidence interval for a mean is a range of plausible values for a population mean μ, built from one sample as x̄ ± critical value × standard error. When σ is unknown (the usual case) the critical value comes from the t distribution with n − 1 degrees of freedom; when σ is known it comes from the standard normal, where the z value for a 95% interval is 1.96. For example, x̄ = 9.8, s = 1.4 and n = 25 give a 95% CI of (9.2221, 10.3779).
What the Mean Confidence Interval Calculator does
This calculator builds a one-sample t interval (or a z interval when σ is known) for a population mean, from either raw data or the summary values x̄, s and n. It reports the lower and upper bounds, the margin of error, the standard error and the critical value, and repeats the interval at 90%, 95% and 99% so you can see how the confidence level changes the width.
The lower and upper limits are also called confidence bounds, so this works as a confidence bound calculator, and with σ unticked it is a t confidence interval calculator. Don’t have the standard deviation? Paste the raw values instead: the calculator works out x̄ and s for you, so you can get the interval without calculating the standard deviation first.
Use it whenever one numeric variable has been measured on a random sample and you want to state how precisely the sample mean pins down the population mean: average battery life, mean blood pressure, typical delivery time. For the difference between two groups use the Mean Difference Confidence Interval Calculator; for before-and-after data on the same subjects use the Paired t-Test Confidence Interval Calculator; for one or two proportions start from the all-in-one Confidence Interval Calculator.
How to use the Mean Confidence Interval Calculator
- Set the Confidence level (95% unless your course or field says otherwise).
- Choose Summary statistics and enter x̄, n and s, or choose Raw data and paste the observations.
- Tick The population standard deviation σ is known only if σ comes from an outside source, then enter σ. Otherwise leave it unticked so the t distribution is used.
- Read the interval and margin of error, then check the table to compare 90%, 95% and 99% intervals and the step-by-step solution for the working.
How to calculate a confidence interval for a mean by hand
A 95% confidence interval for a mean takes five steps. The worked example further down applies them to real numbers.
- Find the sample mean x̄ and the sample standard deviation s (with the n − 1 divisor). Skip this if you already have them.
- Find the standard error: SE = s / √n, or σ / √n when σ is known.
- Find the critical value: t* with n − 1 degrees of freedom when σ is estimated by s, or z* when σ is known. For 95% confidence, z* = 1.96.
- Multiply the critical value by the standard error to get the margin of error, E.
- Subtract and add E to x̄. The results are the lower and upper confidence limits.
Mean Confidence Interval formula
Both intervals have the form estimate ± critical value × standard error. They differ only in where the critical value comes from.
| Symbol | Meaning |
|---|---|
| x̄ | sample mean (the point estimate) |
| s, σ | sample standard deviation, known population standard deviation |
| n | sample size; df = n − 1 for the t interval |
| t*, z* | critical value leaving α/2 in each tail, where α = 1 − confidence level |
Look up t* in the t-table or with the T Critical Value Calculator. For 95% confidence z* = 1.96, for 90% z* = 1.645 and for 99% z* = 2.576.
The t interval goes back to Student (W. S. Gosset, 1908, Biometrika), who derived the t distribution for small samples where σ has to be estimated by s.
Worked example
Worked example: phone battery life
Problem. A reviewer tests 25 phones of one model and records a mean battery life of 9.8 hours with a standard deviation of 1.4 hours. Find a 95% confidence interval for the mean battery life of all phones of this model.
- 01σ is unknown, so use t with df = 25 − 1 = 24.
- 02Standard error: SE = 1.4 / √25 = 1.4 / 5 = 0.28 hours.
- 03Critical value: t*(0.975, 24) = 2.0639.
- 04Margin of error: E = 2.0639 × 0.28 = 0.5779 hours.
- 05Interval: 9.8 ± 0.5779 = (9.2221, 10.3779).
Answer. We are 95% confident that the true mean battery life is between about 9.22 and 10.38 hours. With the same data the 90% interval is (9.3210, 10.2790) and the 99% interval is (9.0169, 10.5831): higher confidence, wider range.
Critical values: the z value for a 95% confidence interval
A 95% interval leaves 5% outside, split as 0.025 in each tail. The z value with a cumulative area of 0.975 below it is 1.96, which is why a known-σ 95% interval is x̄ ± 1.96 σ / √n. With σ estimated by s the calculator uses t* instead, which is larger for small samples. The table shows both, with t* for samples of 10 and 25. For another level or df, use the Z Critical Value Calculator or the T Critical Value Calculator.
| Confidence level | Area in each tail | z* | t* (n = 10, df = 9) | t* (n = 25, df = 24) |
|---|---|---|---|---|
| 80% | 0.10 | 1.2816 | 1.3830 | 1.3178 |
| 90% | 0.05 | 1.6449 | 1.8331 | 1.7109 |
| 95% | 0.025 | 1.9600 | 2.2622 | 2.0639 |
| 98% | 0.01 | 2.3263 | 2.8214 | 2.4922 |
| 99% | 0.005 | 2.5758 | 3.2498 | 2.7969 |
| 99.9% | 0.0005 | 3.2905 | 4.7809 | 3.7454 |
t or z: how much the critical value changes
The t distribution has heavier tails than the normal to account for the extra uncertainty of estimating σ with s. The penalty is large for small samples and fades as n grows, which is why the t and z intervals almost agree for big samples.
| Sample size n | df | t* at 95% | z* at 95% | t interval is wider by |
|---|---|---|---|---|
| 5 | 4 | 2.7764 | 1.96 | 41.7% |
| 10 | 9 | 2.2622 | 1.96 | 15.4% |
| 20 | 19 | 2.0930 | 1.96 | 6.8% |
| 30 | 29 | 2.0452 | 1.96 | 4.4% |
| 100 | 99 | 1.9842 | 1.96 | 1.2% |
Common use cases
- Reporting the average of a survey rating or test score together with its precision.
- Estimating a mean lifetime, fill weight or cycle time in quality control.
- Summarizing a clinical or lab measurement as mean with 95% CI in a paper. In APA style the battery example is written M = 9.80, 95% CI [9.22, 10.38].
- Checking whether a target value (such as a label claim) is plausible: if it falls outside the interval, a two-sided one-sample t-test at the matching α would reject it.
Assumptions and limitations
- Random sample: the interval only accounts for random sampling error. Bias from a convenience sample or non-response is not covered.
- Independence: observations should not influence each other. Repeated measurements on the same subject violate this.
- Normality: for small samples the population should be roughly normal. For n of about 30 or more, the central limit theorem makes the t interval reliable unless the data are very skewed or have extreme outliers.
- The interval is about the mean, not individual values. Most individual observations will fall outside a narrow CI for the mean; use a prediction interval or the empirical rule for individual values.
- To plan the sample size needed for a target margin of error, use the Margin of Error Calculator.
Frequently asked questions
What is the 95% confidence interval for the mean?
How do you calculate a 95% confidence interval for a mean?
What are the 68%, 95% and 99.7% confidence intervals for the sample mean?
Can I calculate a confidence interval without the standard deviation?
Does a 95% confidence interval mean there is a 95% chance μ is inside it?
Should I use a t interval or a z interval for a mean?
How can I make a confidence interval narrower?
What degrees of freedom does a one-sample t interval use?
How does a confidence interval relate to a hypothesis test?
Why does Excel’s CONFIDENCE.NORM give a different margin of error?
Cite this page
Statculator. (2026, November 14). Mean Confidence Interval Calculator. Retrieved November 14, 2026, from https://statculator.com/confidence-intervals/mean-confidence-interval-calculator/