This page calculates a confidence interval for a population mean based on a sample average, the sample standard deviation, and the sample size. It is designed for situations where your outcome is numeric (for example, test scores, average rating, response time, weight, or revenue per user), not for yes/no proportions.
You type in three main inputs:
The calculator then combines these inputs with your chosen confidence level (for example, 90%, 95%, or 99%) and returns a lower and upper bound. This interval represents a range of plausible values for the true population mean, given the uncertainty that comes from working with a sample instead of measuring the entire population.
A confidence interval for a mean is a range of values that likely contains the true average of a population. Instead of reporting just a single point estimate (your sample mean), you show an interval that accounts for sampling variation. This makes your conclusions more honest and informative, especially when the sample is not very large or the data are noisy.
For example, imagine you survey 100 customers and find an average satisfaction score of 4.2 out of 5. A confidence interval might be from 4.0 to 4.4. You would then say something like:
With 95% confidence, the true average satisfaction score for all customers lies between 4.0 and 4.4.
This does not mean there is a 95% probability that the true mean is in this specific interval. Instead, it means that if you repeated the whole sampling and interval-building procedure many times, about 95% of those intervals would contain the true mean. Your single interval is one draw from that long-run process.
The calculator uses the standard z-based confidence interval for a population mean when the population standard deviation is unknown but approximated by the sample standard deviation, and the sample size is reasonably large.
Define:
The standard error of the mean (SE) is:
SE = s / โn
The margin of error (ME) is:
ME = z ร SE = z ร (s / โn)
The confidence interval is then:
CI = xฬ ยฑ ME
In MathML, the core relationship can be written as:
Common z-scores for two-sided confidence intervals are approximately:
To use the calculator effectively, be clear on what each input represents:
When the calculator returns an interval like [77.2, 82.8] at 95% confidence, interpret it as follows:
Useful practical tips:
Suppose you collect exam scores from a sample of students and want to estimate the average score for all students who might take the exam.
Steps:
Interpretation in plain language:
Based on this sample, the average exam score for the full population of students is estimated to be between about 77.2 and 82.8, using a 95% confidence interval.
Imagine you survey 120 customers and ask them to rate their satisfaction from 1 to 10.
The calculator might return a 95% confidence interval of roughly [7.1, 7.7]. You could report:
We estimate the true average customer satisfaction to be between 7.1 and 7.7 out of 10, using a 95% confidence interval.
A quality engineer measures the weight of 40 random units of a product.
The calculator might yield a 99% confidence interval of about [500.7 g, 504.3 g]. The engineer might say:
With 99% confidence, the true average product weight lies between 500.7 g and 504.3 g.
Choosing a confidence level involves a trade-off between certainty and precision. Higher confidence makes the interval wider; lower confidence makes it narrower.
| Tool / Setting | What It Estimates | When to Use It |
|---|---|---|
| Confidence interval for a mean (this calculator) | Range for the true average of a numeric variable | Test scores, revenue per user, response times, average ratings treated as numeric |
| Confidence interval for a proportion | Range for the true percentage or probability of โsuccessโ | Yes/no questions, conversion rates, defect rates, share of users who click |
| Margin of error calculator | Just the margin of error around a point estimate | When you mainly want to say โยฑX unitsโ at a given confidence level |
| Sample size calculator | Required sample size to reach a target margin of error | Planning surveys or experiments before collecting data |
| Different confidence levels (90%, 95%, 99%) | Same mean estimate, wider or narrower interval | Use 95% as a default, 99% for high-stakes decisions, 90% for exploratory work |
The numbers from this calculator are only as reliable as the assumptions behind the method. Keep these points in mind:
It uses a two-sided z-based confidence interval for a population mean: mean ยฑ z ร (standard deviation / โn). The z-score is chosen to match your selected confidence level.
Avoid using it when your sample size is very small, your data are highly skewed or heavy-tailed, or your outcome is binary or categorical. In those cases, a t-interval for the mean or a proportion-based interval may be more suitable.
A 95% interval has higher long-run coverage but is wider, because it uses a larger z-score. A 90% interval is slightly narrower but less conservative. Many studies use 95% as a standard compromise between certainty and precision.
If your sample size is small and the population standard deviation is unknown, many textbooks recommend using a t-distribution based interval. This calculator uses a z-based approach, which is more appropriate when the sample is moderately large or the population is approximately normal.
Wide intervals usually result from small sample sizes, high variability (large standard deviation), or very high confidence levels such as 99%. Collecting more data, reducing measurement noise, or choosing a slightly lower confidence level can help narrow the interval.