Confidence Interval Calculator
Enter your sample data and confidence level to instantly compute the confidence interval and margin of error.
CI = x̄ ± critical value × s ÷ √n.
Use the Confidence Interval Calculator
Sample Parameters
Enter your sample parameters on the left and click Calculate.
95% Confidence Interval
Lower Bound
—
Upper Bound
—
Sample Mean
—
Margin of Error
—
Standard Error
—
Critical Value
—
Distribution
—
Sample Size
—
Formula Applied
CI = x̄ ± z * (s / √n)
—
Quick answer
CI = x̄ ± critical value × s ÷ √n. This calculator uses a t value with n − 1 degrees of freedom when n is below 30, and the z value (1.645, 1.960 or 2.576 for 90%, 95% or 99%) when n is 30 or more. For n = 10, mean 50 and standard deviation 8, the 95% interval is 50 ± 2.262 × 2.5298, or 44.28 to 55.72.
Examples
| n, mean, SD | 95% value | 95% CI |
|---|---|---|
| 10, 50, 8 | t = 2.262 | 44.28–55.72 |
| 25, 100, 15 | t = 2.064 | 93.81–106.19 |
| 30, 100, 15 | z = 1.960 | 94.63–105.37 |
| 50, 75.4, 10.2 | z = 1.960 | 72.57–78.23 |
| 100, 50, 10 | z = 1.960 | 48.04–51.96 |
| 400, 50, 10 | z = 1.960 | 49.02–50.98 |
Enter n, mean and standard deviation, then click Calculate.
Summary
A confidence interval estimates the range within which a population parameter likely falls, based on sample data. This calculator supports the most common confidence levels (90%, 95%, 99%) and uses the Z-distribution for large samples or the T-distribution for small samples (n < 30). Enter your sample statistics and get the lower bound, upper bound, and margin of error in one click.
How it works
- Enter the sample size (n), sample mean, and standard deviation.
- Select your desired confidence level (90%, 95%, or 99%).
- The calculator chooses Z or T critical value based on sample size.
- Margin of error is computed as critical value times standard error.
- The confidence interval is displayed as mean plus or minus the margin of error.
Use cases
- Estimate population mean from survey or experiment data.
- Validate statistical hypotheses in academic research.
- Determine acceptable ranges for quality control measurements.
- Calculate margin of error for poll results.
- Assess precision of lab measurements and sensor readings.
- Support data-driven decision making in business analytics.