Confidence Interval Calculator
StatisticsCalculate a confidence interval from a sample mean, standard deviation, and sample size in seconds. Get the lower bound, upper bound, and margin of error instantly.
95% Confidence Interval
Margin of Error
± 0
Z-Score
1.96
Interpretation
We are 95% confident the true population mean lies between 0 and 0.
What is a Confidence Interval?
The Confidence Interval Calculator computes a range of plausible values for a population mean, based on your sample mean, standard deviation, sample size, and chosen confidence level (90%, 95%, or 99%). Instead of reporting a single number, it gives you a lower bound and upper bound — the honest way to communicate how precise your estimate really is.
Confidence intervals are the standard tool statisticians, researchers, and analysts use to express uncertainty. A sample mean on its own tells you nothing about how reliable it is; a confidence interval tells you the range within which the true population value likely falls, given the variability and size of your sample. This calculator handles the full computation — standard error, z-score selection, and margin of error — instantly.
For a deeper look at the underlying variability in your data, pair this calculator with the Standard Deviation Calculator to compute σ from a raw dataset first, then bring that value here to build your interval.
How to use this Confidence Interval calculator
Enter your sample mean — the average value computed from your sample data (e.g., average test score, average height, average transaction value).
Enter the standard deviation — either the known population standard deviation, or your best sample-based estimate. Use the Standard Deviation Calculator first if you only have raw data.
Enter your sample size (n) — the number of observations in your sample. Larger samples produce narrower, more precise intervals.
Select your confidence level — 90% for a narrower interval with less certainty, 95% for the most common standard, or 99% for maximum certainty at the cost of a wider range.
Read the margin of error and interval bounds — the result card shows the margin of error prominently, along with the lower and upper bounds of your confidence interval.
Check the step-by-step breakdown — expand the calculation steps to see exactly how the standard error, z-score, and margin of error were combined to produce your final interval.
Formula & Methodology
Standard error: SE = σ / √n Margin of error: E = z × SE Confidence interval: [x̄ − E, x̄ + E] Variable definitions: - x̄ — sample mean - σ — standard deviation (population or estimated sample standard deviation) - n — sample size - z — z-score for the chosen confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%) Worked example: A researcher measures the average commute time for 40 randomly sampled office workers: sample mean = 32 minutes, standard deviation = 8 minutes, at 95% confidence. Step 1 — Standard error: SE = 8 / √40 = 8 / 6.3246 ≈ 1.265 Step 2 — Margin of error: E = 1.96 × 1.265 ≈ 2.48 Step 3 — Confidence interval: [32 − 2.48, 32 + 2.48] = [29.52, 34.48] minutes The researcher can report: "We are 95% confident the true average commute time for this population is between 29.52 and 34.48 minutes." Assumption: This calculator uses the z-based formula, which assumes the sampling distribution of the mean is approximately normal — a safe assumption when n ≥ 30, or when the underlying population itself is roughly normal. For small samples with unknown population variance, a t-distribution based interval (see the T-Test Calculator for the related t-distribution logic) is technically more precise.
Frequently Asked Questions