Home / Math Calculators / Confidence Interval Calculator
Statistics & Probability Tools

Confidence Interval Calculator

Calculate confidence intervals for a population mean or proportion. Get the lower and upper bounds, standard error, critical value, margin of error, and a clear step-by-step explanation.

✓ Mean and proportion✓ 90%, 95%, 99%✓ Step-by-step results
Calculator

Enter sample information

Choose Mean (Z) when the population standard deviation is known, Mean (T) when it is estimated by the sample standard deviation, or Proportion for a binary outcome such as yes/no.

Quick examples

Your results

Confidence interval

95% confidence interval
68.08 to 75.92
Lower bound
68.08
Upper bound
75.92
Margin of error
3.92
Standard error
2.00
Critical value
1.96
z*
Point estimate
72.00

Calculation steps

1. Standard error = 12 ÷ √36 = 2.00
2. Critical value for 95% confidence = 1.96
3. Margin of error = 1.96 × 2.00 = 3.92
4. Interval = 72 ± 3.92 = (68.08, 75.92)

Confidence interval formulas

A confidence interval estimates a range of plausible values for a population parameter using sample information. Its general structure is the point estimate plus or minus a critical value multiplied by the standard error.

Mean — Z interval (known population SD)CI = x̄ ± z* × (σ / √n)
Mean — t interval (sample SD)CI = x̄ ± t* × (s / √n), with df = n − 1
Proportion — normal approximationCI = p̂ ± z* × √[p̂(1 − p̂) / n], where p̂ = x / n
Margin of errorME = critical value × standard error

How to use this calculator

  1. Choose the interval type: Mean (Z), Mean (T), or Proportion.
  2. Enter the sample mean, standard deviation, and sample size for a mean interval, or the successes and total sample size for a proportion.
  3. Select a confidence level and decimal precision.
  4. Click Calculate interval to view the bounds, margin of error, standard error, critical value, and working.

How to interpret a 95% confidence interval

A 95% confidence procedure will capture the true population parameter in about 95% of repeated samples when its assumptions hold. It does not mean there is a 95% probability that a fixed parameter lies inside one already-calculated interval.

Assumptions matter. For a mean interval, consider the sampling design and distribution of the data. For a proportion, the simple normal-approximation interval can be unreliable with very small success or failure counts; check that both counts are sufficiently large and use a Wilson interval when appropriate.

Frequently asked questions

What is a confidence interval?

A confidence interval is a range calculated from sample data to estimate an unknown population value, such as a population mean or proportion.

What is the difference between a Z interval and a T interval?

A Z interval uses a standard normal critical value and is commonly used when the population standard deviation is known. A T interval uses Student’s t distribution and the sample standard deviation, with degrees of freedom typically equal to n − 1.

What is the margin of error?

The margin of error is the critical value multiplied by the standard error. It is the distance from the point estimate to either end of a symmetric confidence interval.

Why does a higher confidence level produce a wider interval?

A higher confidence level uses a larger critical value, which increases the margin of error and widens the interval.

How does sample size affect the interval?

All else being equal, a larger sample reduces the standard error, usually making the confidence interval narrower.

Can I use this for survey proportions?

Yes. Select Proportion and enter the number of successes and total sample size. This calculator uses the normal-approximation (Wald) interval, so use caution with small samples or extreme proportions.