About this Confidence Interval
In statistics, it's rare to know the exact mean of an entire population. Instead, we use a sample to estimate it. A Confidence Interval (CI) gives us a range of values where the true population mean is likely to exist with a certain degree of confidence.
Who this calculator is for
- Students and researchers estimating a population mean from sample data.
- Survey, product, and operations teams reporting a range instead of a single point estimate.
- Anyone translating sample mean and standard deviation into an interval with margin of error.
When to use it
- Use it after calculating a sample mean and standard deviation for a dataset.
- Use it when you need a margin of error for a report, experiment, or quality-control summary.
- Use it to compare how interval width changes with different sample sizes or confidence levels.
How to use this calculator
- Enter the Sample Mean (average of your data).
- Enter the Sample Standard Deviation.
- Enter the Sample Size (n).
- Select the Confidence Level (95% is most common).
Key assumptions
- The sample size must be positive and the sample standard deviation cannot be negative.
- This calculator uses z-scores for common confidence levels, which is most appropriate for larger samples or known-population-style approximations.
- The interval describes uncertainty around the mean estimate, not the spread of individual observations.
Accuracy and testing
Review formula sources, default test cases, assumptions, unit handling, rounding rules, and changelog for this calculator.
How this calculator works
Inputs explained
Sample Mean
The arithmetic average of your sample data.
Confidence Level
The probability that the interval contains the true parameter. 95% is the standard for scientific research.
Sample Size
The number of observations in your sample. Larger samples result in narrower (more precise) intervals.
Understanding your results
Example scenarios
Test Scores
Mean 80, SD 10, Size 30, Conf 95%. Interval: 76.42 to 83.58. We are 95% confident the class average is in this range.
Height
Mean 170cm, SD 5, Size 100, Conf 99%. Interval: 168.7 to 171.3. A larger sample size creates a tighter range.
Key Features
- Margin of Error Calculation
- Upper & Lower Bounds
- Standard Confidence Levels
Tips & Best Practices
- To reduce the Margin of Error (get a narrower interval), you must increase the sample size.
- This calculator assumes a normal distribution and uses Z-scores (best for n > 30). For very small samples, a T-distribution should technically be used.
Glossary of Terms
- Standard Error
- The standard deviation of the sampling distribution of a statistic (Standard Deviation / √n).
- Margin of Error
- The radius of the confidence interval.