Confidence Interval Calculator — Free Online Calculator & Guide
Calculate confidence intervals for a population mean. Breaks out the Margin of Error (MOE), critical Z-value, and standard error.
See it worked out
Example — Sample Mean (x̄) 50, Sample Size (n) 100, Standard Deviation (s or σ) 10:
90% Confidence Interval
[48.355, 51.645]
Lower Bound
48.355
Upper Bound
51.645
Margin of Error (MOE)
±1.645
Critical Value (Z)
1.645 (90% confidence)
Standard Error (SE)
1
Sample Size
100 (large sample)
Formula
CI = x̄ ± Z × (s/√n) = 50 ± 1.645 × (10/√100) = [48.355, 51.645]
The formula
CI = x̄ ± Z × (σ/√n) | MOE = Z × (σ/√n) | SE = σ/√n
- x̄
- Sample Mean
- Z
- Critical Value (Z-score)
- SE, MOE
- Standard Error & Margin of Error
Worked example — Sample Mean (x̄) 50, Sample Size (n) 100, Standard Deviation (s or σ) 10
90% Confidence Interval = [48.355, 51.645]
How Confidence Interval Works
CI = x̄ ± Z × (σ/√n) | MOE = Z × (σ/√n) | SE = σ/√n
A confidence interval provides a range of plausible values for an unknown population parameter. The margin of error (MOE) is the critical value (Z) times the standard error (SE). The standard error measures how much the sample mean is expected to vary from the true population mean.
- x̄
- Sample Mean — The average of your sample data. The point estimate of the population mean.
- Z
- Critical Value (Z-score) — 1.645 for 90%, 1.96 for 95%, 2.576 for 99% confidence. Higher confidence requires a larger Z-value and produces a wider interval.
- SE, MOE
- Standard Error & Margin of Error — SE = σ/√n measures sampling variability. MOE = Z × SE is the ± range around the mean that creates the confidence interval.
How to Use
- Enter your sample mean, sample size, and standard deviation.
- Select the desired confidence level (95% is the standard for most published research).
- View the confidence interval range, margin of error, and critical Z-value used.
- The MOE is explicitly broken out — researchers often need this for reporting in papers and tables.
- A note indicates whether your sample is small (<30), moderate, or large to guide interpretation.
Understanding the Result
Confidence intervals are fundamental to inferential statistics. They express the uncertainty inherent in estimating a population parameter from a sample. A 95% confidence interval means: if you repeated the sampling process 100 times under identical conditions, approximately 95 of those intervals would contain the true population mean. It does NOT mean there is a 95% probability that the true mean lies within your specific interval — the true mean either is or is not in that interval, and you do not know which. The margin of error (MOE) is the key number reported in opinion polls, market research, and clinical studies — it communicates the precision of the estimate. The standard error (SE) shrinks as sample size increases, which means larger samples produce narrower intervals with more precise estimates. Doubling the sample size reduces the SE by about 29% (1/√2). For small samples (n < 30), the t-distribution should be used instead of the normal distribution because the sample standard deviation s is an imperfect estimate of the true population σ. The t-distribution has heavier tails, producing wider (more conservative) intervals that account for this additional uncertainty.
Frequently Asked Questions
- What does 95% confidence actually mean?
- A 95% confidence level means that if you were to repeat your sampling procedure 100 times, approximately 95 of the calculated confidence intervals would contain the true population mean. It does NOT mean there is a 95% probability that the true mean lies within your specific interval — the true mean either is or is not in that interval. The "95%" refers to the long-run success rate of the procedure, not a probability for a single interval.
- What is the difference between MOE and confidence interval?
- The margin of error (MOE) is the ± value around the sample mean. The confidence interval is the full range: [x̄ − MOE, x̄ + MOE]. Researchers often report just the MOE in papers and tables, while the confidence interval gives the complete range. The MOE depends on three things: confidence level (higher Z = larger MOE), standard deviation (more variable data = larger MOE), and sample size (more data = smaller MOE).
- When should I use the t-distribution instead of Z?
- When the population standard deviation (σ) is unknown and you are using the sample standard deviation (s) to estimate it — which is almost always the case in real research — you should use the t-distribution. For large samples (n ≥ 30), the t-distribution closely approximates the normal distribution, so Z is a reasonable approximation. For small samples (n < 30), especially n < 15, the t-critical value is notably larger than Z, producing wider (more conservative) intervals.
Cite this calculator
TheCalcUniverse. "Confidence Interval Calculator — Free Online Calculator & Guide." TheCalcUniverse, 2026, https://thecalcuniverse.com/math/confidence-interval-calculator/. Accessed July 24, 2026.
Embed this calculator on your site
You may also like
-
Z-Score Calculator — Free Online Ca
Calculate the Z-score from a raw score, population mean, and standard deviation. Visualizes the result on a st…
-
P-value Calculator — Statistical Si
Compute p-values from Z-scores or T-scores for one-tailed and two-tailed hypothesis tests. Free online calcula…
-
Sample Size
Determine the ideal sample size for surveys and research studies. Adjust for population size, confidence level…
-
Statistics
Comprehensive descriptive statistics calculator with a dynamic box-and-whisker plot. Computes the five-number …