Confidence Interval Calculator Formula & How It Works
- x̄ = sample mean
- z* or t* = critical value for desired confidence level
- σ = population SD (z-test) or s = sample SD (t-test)
- n = sample size | SE = σ/√n = standard error
A 95% confidence interval means if you repeated the study 100 times, 95 of the resulting intervals would contain the true population mean. Use the z-distribution when n>30 or σ is known. Use t-distribution for small samples. The margin of error (±) decreases with larger sample size — quadrupling n halves the margin of error.