UseCalcPro
Home
MathFinanceHealthConstructionAutoPetsGardenCraftsFood & BrewingToolsSportsMarineEducationTravel
Blog
  1. Home
  2. Math

Confidence Interval Calculator

Compute confidence intervals, margin of error, and z-critical values

95% Confidence Interval

70.71 – 79.29

MOE

±4.2941

z*

1.960

95% Confidence Interval

Lower Bound

70.71

Upper Bound

79.29

Key Statistics

Margin of Error

±4.2941

Z-Critical (z*)

1.9600

Standard Error

2.1909

Interpretation

We are 95% confident the true population mean lies between 70.71 and 79.29.

Formula

CI = x̅ ± z* × (σ / √n)
SE = σ / √n = 2.1909
MOE = z* × SE = 1.9600 × 2.1909 = 4.2941

Z-Critical Values

90% confidencez* = 1.645
95% confidencez* = 1.960
99% confidencez* = 2.576

Formulas Used

Confidence Interval for a Mean

CI = x̅ ± z* × (σ / √n)

Calculates the confidence interval for a population mean when the population standard deviation is known (or approximated). The margin of error is z* times the standard error.

Where:

x̅= Sample mean (center of the interval)
z*= Z-critical value for the chosen confidence level
σ= Population (or sample) standard deviation
n= Sample size

Confidence Interval for a Proportion

CI = p̂ ± z* × √(p̂(1 - p̂) / n)

Calculates the confidence interval for a population proportion using the normal approximation. Valid when np̂ and n(1-p̂) are both at least 10.

Where:

p̂= Sample proportion (observed success rate)
z*= Z-critical value for the chosen confidence level
n= Sample size

Standard Error of the Mean

SE = σ / √n

The standard error measures the typical distance between a sample mean and the true population mean. It decreases as sample size increases.

Where:

σ= Population standard deviation
n= Sample size

Example Calculations

1Mean CI: Exam Scores (95%)

Inputs

Sample Mean75
Standard Deviation12
Sample Size30
Confidence Level95%

Result

Confidence Interval70.71 – 79.29
Margin of Error±4.29
Standard Error2.19

With a sample mean of 75, SD of 12, and n=30, the 95% CI is 70.71 to 79.29. We are 95% confident the true population mean exam score falls in this range.

2Proportion CI: Survey Result (95%)

Inputs

Sample Proportion60%
Sample Size200
Confidence Level95%

Result

Confidence Interval53.21% – 66.79%
Margin of Error±6.79%

In a survey of 200 people where 60% said yes, the 95% CI for the true proportion is 53.21% to 66.79%. The margin of error is ±6.79 percentage points.

3Mean CI: Temperature Readings (99%)

Inputs

Sample Mean98.2
Standard Deviation0.7
Sample Size50
Confidence Level99%

Result

Confidence Interval97.95 – 98.45
Margin of Error±0.25
Standard Error0.099

With a mean of 98.2°F, SD of 0.7, and 50 readings, the 99% CI is 97.95 to 98.45. The high confidence level widens the interval slightly compared to a 95% CI.

Frequently Asked Questions

Q

What is a confidence interval?

A confidence interval is a range of values that is likely to contain the true population parameter. For example, a 95% confidence interval means that if you repeated the sampling process 100 times, approximately 95 of those intervals would contain the true population value.

  • 95% CI: 95 out of 100 repeated samples would contain the true value
  • Wider intervals = more confidence but less precision
  • Narrower intervals = less confidence but more precision
  • Increasing sample size narrows the interval without losing confidence
  • The margin of error is half the width of the confidence interval
Confidence LevelZ-CriticalWidth
90%1.645Narrowest
95%1.960Moderate
99%2.576Widest
Q

How do you calculate a confidence interval for a mean?

For a population mean with known standard deviation, use CI = x̅ ± z*(σ/√n). The sample mean x̅ is the center, z* is the critical value for your confidence level, σ is the standard deviation, and n is the sample size.

  • Step 1: Find the sample mean (x̅)
  • Step 2: Calculate standard error: SE = σ / √n
  • Step 3: Multiply SE by z-critical: MOE = z* × SE
  • Step 4: CI = x̅ ± MOE
  • Example: x̅=75, σ=12, n=30, 95% → 75 ± 1.96×(12/√30) = 75 ± 4.29
StepFormulaExample Value
Standard Errorσ/√n12/√30 = 2.19
Margin of Errorz* × SE1.96 × 2.19 = 4.29
Lower Boundx̅ - MOE75 - 4.29 = 70.71
Upper Boundx̅ + MOE75 + 4.29 = 79.29
Q

What is the difference between 90%, 95%, and 99% confidence levels?

Higher confidence levels produce wider intervals. A 90% CI is the narrowest and least certain, a 95% CI is the standard in most research, and a 99% CI is the widest and most conservative. The trade-off is always between precision (narrow interval) and confidence (high certainty).

  • 90% CI uses z* = 1.645, ideal for quick estimates
  • 95% CI uses z* = 1.960, the default standard in research
  • 99% CI uses z* = 2.576, used when errors are costly
  • A 99% CI is about 32% wider than a 95% CI
  • Doubling sample size reduces width by about 29% (√2 factor)
Confidencez*MOE (if SE=1)
90%1.645±1.645
95%1.960±1.960
99%2.576±2.576
Q

How is a confidence interval for a proportion different?

For proportions, the standard error formula changes to SE = √(p̂(1-p̂)/n), where p̂ is the sample proportion. The interval is then p̂ ± z*×SE. Proportions are bounded between 0 and 1, so the interval is clamped to this range.

  • SE for proportions: √(p̂(1-p̂)/n)
  • Maximum SE occurs at p̂ = 0.5 (most uncertainty)
  • Example: p̂=0.60, n=200 → SE = √(0.6×0.4/200) = 0.0346
  • 95% CI: 0.60 ± 1.96×0.0346 = 0.532 to 0.668
  • Rule of thumb: need np̂ ≥ 10 and n(1-p̂) ≥ 10 for validity
ParameterMean CIProportion CI
Centerx̅ (sample mean)p̂ (sample proportion)
Standard Errorσ/√n√(p̂(1-p̂)/n)
Typical useContinuous dataBinary/yes-no data
Q

How does sample size affect the confidence interval?

Increasing the sample size narrows the confidence interval because the standard error decreases proportionally to 1/√n. To cut the margin of error in half, you need to quadruple the sample size. This is why large studies produce more precise estimates.

  • SE is proportional to 1/√n — larger n = smaller SE
  • Doubling n reduces MOE by ~29% (factor of 1/√2)
  • Quadrupling n cuts MOE in half
  • n=30 to n=120: MOE drops by 50%
  • Diminishing returns: going from n=1000 to n=4000 only halves MOE again
Sample SizeSE FactorRelative MOE
n = 251/√25 = 0.200100%
n = 1001/√100 = 0.10050%
n = 4001/√400 = 0.05025%
n = 16001/√1600 = 0.02512.5%

Understanding Confidence Intervals in Statistics

1

What a 95% Confidence Interval Actually Means

A 95% confidence interval does not mean there is a 95% chance the true value falls within the interval. The true parameter is fixed — it either is or is not in the interval. The correct interpretation: if you repeated the sampling process 100 times and computed a 95% CI each time, approximately 95 of those 100 intervals would contain the true population parameter. The remaining 5 would not.

For a concrete example: a survey of 200 people finds 60% support a policy. The 95% CI is 53.2% to 66.8%. This means the sampling method produces intervals that capture the true population proportion 95% of the time. The margin of error (±6.8 percentage points) quantifies the precision of the estimate. Doubling the sample size to 400 would reduce the margin of error to ±4.8% — a 29% improvement in precision for 2× the data collection effort.

The confidence level is a property of the method, not the interval. "We are 95% confident" means the procedure captures the true value 95% of the time, not that this specific interval has a 95% probability of being correct.

2

Mean vs. Proportion Confidence Intervals

Confidence intervals for means and proportions use different standard error formulas. For a mean: SE = σ/√n, where σ is the standard deviation and n is the sample size. For a proportion: SE = √(p̂(1–p̂)/n), where p̂ is the sample proportion. Both intervals have the same structure: Point Estimate ± z* × SE, where z* is the critical value (1.645 for 90%, 1.960 for 95%, 2.576 for 99%).

A key difference: proportion standard error is maximized at p̂ = 0.5 (maximum uncertainty). A survey result of 50% ± 7% is wider than 80% ± 5.5% from the same sample size because 50/50 splits have the highest inherent uncertainty. The normal approximation for proportions requires np̂ ≥ 10 and n(1–p̂) ≥ 10 to be valid. For small samples or extreme proportions, use the Wilson interval (this calculator uses the normal approximation for simplicity).

Standard error comparison for means and proportions
ParameterStandard ErrorExample (n=100)z*=1.96 MOE
Mean (σ=15)σ/√n15/√100 = 1.50±2.94
Proportion (p=0.5)√(p(1-p)/n)√(0.25/100) = 0.05±9.80%
Proportion (p=0.8)√(p(1-p)/n)√(0.16/100) = 0.04±7.84%
3

Sample Size and the √n Rule

The standard error is proportional to 1/√n, which means you must quadruple the sample size to cut the margin of error in half. Going from n=25 (SE factor 0.200) to n=100 (SE factor 0.100) halves the MOE. But going from n=100 to n=400 is needed to halve it again — diminishing returns that make very large samples expensive relative to the precision gained.

In practical terms: a national political poll with n=1,000 has a margin of error of approximately ±3.1% at 95% confidence. Doubling to n=2,000 reduces it to ±2.2%. Quadrupling to n=4,000 gets ±1.5%. For most business and research applications, n=300–500 provides sufficient precision (MOE of ±4–6%) at reasonable cost. Use the Statistics Calculator to compute the standard deviation from your raw data before feeding it into this confidence interval tool.

Sample size vs. margin of error (relative to n=30 baseline)
Sample SizeSE FactorRelative MOETypical Application
n = 300.183100%Small pilot study
n = 1000.10055%Classroom research
n = 4000.05027%Business survey
n = 1,0000.03217%National poll
n = 10,0000.0105.5%Large clinical trial
4

Choosing Between 90%, 95%, and 99% Confidence

The choice of confidence level balances certainty against precision. A 99% CI is approximately 32% wider than a 95% CI for the same data (z*=2.576 vs. 1.960). Use 90% for exploratory analysis where precision matters more than certainty. Use 95% as the default for published research (the universal standard). Use 99% when the cost of being wrong is high — pharmaceutical safety testing, engineering tolerances, or financial risk assessment.

In practice, the confidence level should be chosen before data collection, not after. Selecting the level that produces the "best" result is a form of p-hacking. If a 95% CI just barely excludes a critical value but a 99% CI includes it, the honest conclusion is that the evidence is suggestive but not definitive — not that the 95% level proves the point. Report the CI bounds and let the reader evaluate the practical significance.

  • 90% CI (z* = 1.645): Quick estimates, pilot studies, internal reports
  • 95% CI (z* = 1.960): Standard for peer-reviewed research, surveys, and polls
  • 99% CI (z* = 2.576): Safety-critical applications, regulatory submissions
  • Width ratio: 99% CI is ~32% wider than 95% CI, and ~57% wider than 90% CI
  • Rule: choose confidence level based on stakes, not based on which gives the desired result

Related Calculators

Z-Score Calculator

Calculate z-scores, percentiles, and probabilities

Statistics Calculator

Find mean, median, mode, range, and standard deviation

Correlation Calculator

Find Pearson r, R-squared, and regression equations

Probability Calculator

Calculate event probabilities and combinations

Standard Deviation Calculator

Calculate population and sample standard deviation, variance, mean, and coefficient of variation. Shows step-by-step deviations table for any data set.

Scientific Notation Calculator

Convert any number to and from scientific notation. Enter a value to see the coefficient, exponent, and standard form — includes step-by-step breakdown.

Related Resources

Z-Score Calculator

Calculate z-scores and percentiles

Statistics Calculator

Find mean, median, mode, and standard deviation

Probability Calculator

Calculate event probabilities

Percentage Calculator

Calculate percentages and ratios

Last Updated: Mar 26, 2026

This calculator is provided for informational and educational purposes only. Results are estimates and should not be considered professional financial, medical, legal, or other advice. Always consult a qualified professional before making important decisions. UseCalcPro is not responsible for any actions taken based on calculator results.

UseCalcPro
FinanceHealthMath

© 2026 UseCalcPro