Mean confidence interval
Enter sample size, sample mean, standard deviation, and confidence level to calculate a mean CI.
Calculate confidence intervals for a mean or proportion with the critical value, standard error, margin of error, lower bound, upper bound, and interpretation. Use summary statistics, paste raw data, or estimate a population proportion from successes and total trials.
Choose mean if you are estimating an average. Choose proportion if you are estimating a percentage, success rate, pass rate, or yes/no outcome. For a sample standard deviation, the calculator uses a t interval; for a known population standard deviation, it uses a z interval.
Paste raw values, then use them to fill n, mean, and sample standard deviation.
This uses the Wilson score interval, which is usually more stable than the simple Wald interval for proportions.
Mean confidence interval
Calculator output should match the method your course requires. Some assignments require a specific interval method, rounding rule, or software output table.
Confidence intervals are used after sample data are collected to estimate a population parameter with a stated confidence level.
Enter sample size, sample mean, standard deviation, and confidence level to calculate a mean CI.
Use a t interval for sample standard deviation or a z interval when population SD is known.
Paste raw data to fill sample size, mean, and sample standard deviation automatically.
Calculate a Wilson confidence interval for successes out of total trials, percentages, or yes/no outcomes.
The interval is usually written as estimate plus or minus margin of error. The critical value depends on the confidence level and the selected method.
| Interval | Formula idea | Use when |
|---|---|---|
| Mean, sample SD | x-bar +/- t * s / sqrt(n) |
The standard deviation is estimated from the sample. |
| Mean, population SD | x-bar +/- z * sigma / sqrt(n) |
The population standard deviation is known or assigned. |
| Proportion | Wilson score interval |
The outcome is success/failure, yes/no, pass/fail, or another proportion. |
Most confidence interval homework follows the same pattern: identify the estimate, pick the correct critical value, calculate the standard error, and write a careful interpretation.
Use these examples to compare your output with Excel, SPSS, R, or a statistics table. Small differences usually come from rounding the critical value.
| Question type | Inputs | Result | Interpretation |
|---|---|---|---|
| 95% t interval for a mean | n = 25, mean = 50, sample SD = 10 | 45.8722 to 54.1278 | We are 95% confident the population mean is between 45.8722 and 54.1278. |
| 95% z interval for a mean | n = 25, mean = 50, population SD = 10 | 46.0801 to 53.9199 | The z interval is narrower here because the population standard deviation is treated as known. |
| 95% Wilson interval for a proportion | 48 successes out of 80 trials | 49.05% to 70.04% | We are 95% confident the population proportion is between about 49.05% and 70.04%. |
Use a t confidence interval for a mean when the standard deviation comes from the sample. This is common in homework and research datasets.
Use a z confidence interval for a mean when the population standard deviation is known, or when your instructor specifically requires the z method.
It means that if the same sampling method were repeated many times, about 95% of the intervals created by that method would contain the true parameter.
Yes. Paste the raw values into the helper, and the calculator will fill the sample size, mean, and sample standard deviation for a t interval.
The margin of error is the critical value multiplied by the standard error. It is the amount added to and subtracted from the estimate to form the interval.
Use mean when your outcome is numerical, such as test scores, costs, weights, or times. Use proportion when your outcome is a count of successes out of trials, such as pass/fail or yes/no responses.
Wilson intervals are often more stable than the simple Wald interval, especially when the sample is small or the proportion is near 0 or 1.
A confidence interval often needs more than a number. Your assignment may ask you to explain the confidence level, justify z or t, check assumptions, compare intervals, or connect the result to the research question.
Use this calculator to check work, understand interval formulas, and prepare tutoring questions. For graded work, follow your course rules and show the method your instructor requires.
Join students from over 150 countries who trust Statskan for academic excellence.
Get Expert Help Now →