📊 Confidence Interval Calculator
Compute confidence intervals for a mean or proportion with margin of error, z or t critical values, and interpretation.
Confidence Intervals — Range Estimates for Unknown Populations
BrainyCalculators editorial insight — unique to this tool
A 95% CI for a sample mean says: if we repeated sampling, ~95% of constructed intervals would contain the true population mean — not that there is a 95% chance the mean lies in this specific interval. Political pollsters report "48% ± 3%" (n ≈ 1,067); clinical trials publish CI around treatment effect size. Width shrinks with larger n and lower confidence level.
When to use this calculator
Use when you have a sample and need a range for the population parameter. To determine how large n should be before collecting data, use Sample Size.
| Reference | Value | Context |
|---|---|---|
| 95% CI z* | 1.96 | Large-sample mean |
| 99% CI z* | 2.576 | Stricter |
| Poll MOE ±3% | n ≈ 1,067 | 95% confidence |
| MOE ∝ 1/√n | 4× n → half MOE | Sample size leverage |
Not what you need? For planning survey n before data collection, use Sample Size. For standardizing one observation, use Z-score.
Planning survey size before collecting data?
This page builds an interval from existing results. For required respondents upfront, use the Sample Size Calculator →
Enter a decimal (0–1), percentage, or successes/n
Interpretation
What is a Confidence Interval?
A confidence interval estimates a population parameter from sample data, reporting a range likely to contain the true value at a chosen confidence level.
Use this page after you have sample mean, SD, and n. To decide n before collecting data, use the Sample Size Calculator.
Z-scores standardize one observation; confidence intervals quantify uncertainty about a population parameter.
Confidence Interval Formulas
The z-value depends on your chosen confidence level: 90% → 1.645, 95% → 1.96, 99% → 2.576. A wider interval gives more confidence but less precision.
How to Calculate a Confidence Interval
-
1Choose the TypeSelect "Mean" if you are estimating a population mean using a known or sample standard deviation. Select "Proportion" for a success rate or percentage.
-
2Enter Your Sample StatsProvide your sample mean (or proportion), standard deviation, and sample size. For proportions you can type "42/200" and the calculator will parse it.
-
3Choose Confidence LevelCommon choices are 95% (science/business) and 99% (medical/safety). Higher confidence widens the interval.
-
4Read the IntervalThe result shows your lower bound, upper bound, margin of error, and a plain-English interpretation.
Worked Example
A sample of n = 40 students has a mean test score of x̄ = 72 with a standard deviation of σ = 10. Find the 95% CI.
How the Confidence Interval Calculator Works
Formula, assumptions, and calculation steps for this statistics tool.
Methodology
Statistics calculators organize sample data, apply the selected descriptive or inferential formula, and report the statistic with interpretation.
Calculation Steps
- Enter raw values or summary statistics.
- Clean separators and count the sample size.
- Apply the relevant statistic, probability, or confidence formula.
- Display the result with context such as degrees of freedom, percentile, or strength.
Assumptions and Limits
- Samples should be representative of the population being studied.
- Normality or independence assumptions apply only where the selected method requires them.
- Rounded results may differ slightly from spreadsheet software.
Frequently Asked Questions
A confidence interval is a range of values that is likely to contain the true population parameter (mean or proportion) with a specified level of confidence. For example, a 95% CI means that if you repeated the study 100 times, about 95 of the resulting intervals would contain the true value.
It means the procedure used to construct the interval captures the true parameter 95% of the time. It does NOT mean there is a 95% probability the true value is inside this specific interval — the true value is either in or out, but you cannot know which without the full population.
A confidence interval estimates where the population mean lies. A prediction interval estimates where a single future observation will fall. Prediction intervals are always wider than confidence intervals because they account for individual variability in addition to estimation uncertainty.
Increase your sample size n (ME shrinks as √n grows), decrease the confidence level (e.g. 90% instead of 99%), or reduce variability in your measurements. Quadrupling the sample size cuts the margin of error in half.
Real-World Applications
Common Mistakes
Confidence Level to z-value Reference
| Confidence Level | z-value | α (two-sided) | Typical Use |
|---|---|---|---|
| 80% | 1.282 | 0.20 | Exploratory / pilot studies |
| 90% | 1.645 | 0.10 | Survey research, quality control |
| 95% | 1.960 | 0.05 | Standard in most scientific literature |
| 99% | 2.576 | 0.01 | Medical / safety applications |
| 99.9% | 3.291 | 0.001 | High-stakes regulatory decisions |
References
- Neyman, J. Outline of a Theory of Statistical Estimation Based on the Classical Theory of Probability. Philosophical Transactions, 1937.
- Cumming, G. Understanding the New Statistics: Effect Sizes, Confidence Intervals, and Meta-Analysis. Routledge, 2012.
- Agresti, A. & Coull, B. A. Approximate Is Better than "Exact" for Interval Estimation of Binomial Proportions. The American Statistician, 1998.
- Morey, R. D. et al. The Fallacy of Placing Confidence in Confidence Intervals. Psychonomic Bulletin & Review, 2016.
- National Institute of Standards and Technology. NIST/SEMATECH e-Handbook of Statistical Methods. itl.nist.gov.
Related Calculators
Browse all Statistics calculators →Z-score Calculator
Calculate z-score (standard score) and find corresponding probabilities.
Sample Size Calculator
Calculate the required sample size for surveys and statistical studies.
Standard Deviation Calculator
Calculate mean, variance, and standard deviation for any data set.