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.

Copied!

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, SD95% value95% CI
10, 50, 8t = 2.26244.28–55.72
25, 100, 15t = 2.06493.81–106.19
30, 100, 15z = 1.96094.63–105.37
50, 75.4, 10.2z = 1.96072.57–78.23
100, 50, 10z = 1.96048.04–51.96
400, 50, 10z = 1.96049.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

  1. Enter the sample size (n), sample mean, and standard deviation.
  2. Select your desired confidence level (90%, 95%, or 99%).
  3. The calculator chooses Z or T critical value based on sample size.
  4. Margin of error is computed as critical value times standard error.
  5. 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.

Frequently Asked Questions

Last updated: 2026-06-04 · Reviewed by Nham Vu