Calculate 90%, 95%, 99% confidence intervals, margin of error (ME), and lower/upper bounds for sample means using Z and T distributions.
Click "Calculate Confidence Interval" to estimate bounds.
A political polling firm surveying 1,000 voters finds 52% support for a candidate with a 3.1% margin of error at a 95% confidence level: the firm reports a 95% confidence interval of [48.9%, 55.1%]. A pharmaceutical company measuring average drug response time in a sample of 36 patients calculates a sample mean of 50 minutes and standard deviation of 10 minutes, constructing a 95% confidence interval [46.73, 53.27] minutes for the true population average.
A confidence interval (CI) is a range of plausible values for an unknown population parameter (such as population mean μ) constructed from sample data at a specified confidence level (typically 90%, 95%, or 99%).
The width of the interval depends on three factors: sample size n (larger samples shrink interval width), variability s (higher standard deviation widens the interval), and confidence level (higher confidence increases critical value z* or t*, widening the interval). This calculator computes lower bounds, upper bounds, and margin of error. The following guide covers Z vs T critical selection, standard error calculations, and real-world applications in polling, clinical research, and quality assurance.
When inputs are submitted, the engine evaluates standard error SE = s / √n, determines the critical value (z* or t*), and calculates margin of error ME = Critical Value × SE.
1. Confidence Interval Formula:
CI = x̄ ± Margin of Error = x̄ ± (Critical Value × SE)
Lower Bound = x̄ - ME
Upper Bound = x̄ + ME
2. Standard Error of the Mean (SE):
SE = s / √n
3. Critical Values Selection:
- 90% Confidence Level: z* = 1.645
- 95% Confidence Level: z* = 1.960
- 99% Confidence Level: z* = 2.576
(For small samples n < 30, Student's t critical values t* with df = n - 1 are used).
Election polling and market research. Survey organizations report candidate lead percentages alongside margin of error bounds to reflect sampling uncertainty.
Medical efficacy and clinical trials. FDA regulators evaluate therapeutic treatment benefits by checking if 95% confidence intervals exceed clinical superiority thresholds.
Manufacturing quality engineering. Process engineers ensure average widget dimensions remain within 99% confidence specification bands.
Financial forecasting and economic modeling. Analysts construct confidence intervals around inflation rate and GDP growth forecasts.
To narrow your confidence interval width without reducing confidence level, increase your sample size n.
Select 95% confidence for standard scientific research, 99% for critical medical/engineering applications, and 90% for preliminary exploratory studies.
For standalone Z-score or T-score analysis, pair this tool with our Z-Score Calculator or T-Score Calculator.
The calculation engine operates client-side in JavaScript using exact statistical critical value lookups. Calculations evaluate in under 1 millisecond.
| Confidence Level | Z-Critical Value (z*) | Coverage Probability | Use Case |
|---|---|---|---|
| 90% Confidence | 1.645 | 90% of repeated samples contain μ | Exploratory / Business studies |
| 95% Confidence | 1.960 | 95% of repeated samples contain μ | Standard scientific research |
| 99% Confidence | 2.576 | 99% of repeated samples contain μ | High-risk medical & engineering |
Strictly speaking, the population parameter μ is a fixed unknown constant (either inside or outside). The 95% refers to the long-run success rate of the estimation method over repeated sampling.
As sample size n increases, standard error SE = s / √n decreases, making the confidence interval narrower and more precise.
Use T-distribution when population standard deviation σ is unknown and sample size is small (n < 30).
Z-Score Calculator — Computes standard scores and normal distribution percentiles.
T-Score Calculator — Calculates Student's t-statistics for small samples.
P-Value Calculator — Computes p-values for hypothesis tests.