Mean or proportion CI at 90/95/99% with margin of error.
📊 Mean mode uses CI = x̄ ± z·s/√n (σ unknown, n ≥ 30 for the normal approximation to hold); proportion mode is the Wald interval p̂ ± z·√(p̂(1−p̂)/n). For small samples or proportions near 0/1 use a t-interval or the Wilson score interval instead — Wald undercovers there.
The Confidence Interval Calculator is based on the following formula:
Mean: CI = x̄ ± z·s/√n Proportion: CI = p̂ ± z·√( p̂(1−p̂)/n ) z = 1.645 (90%), 1.96 (95%), 2.576 (99%)
Variables: x̄ = Sample mean s = Sample standard deviation n = Sample size p̂ = Sample proportion (0-1) z = Critical value for the chosen confidence level CI = Lower and upper bound of the interval
The interval stretches one margin of error (z standard errors) on each side of the estimate. The standard error of a mean falls with √n; the Wald proportion interval is accurate only when np̂ and n(1−p̂) are both at least 5.
Worked example: Step 1: delivery-time survey with x̄ = 4.2 days, s = 1.1, n = 150, at 95% (z = 1.96). Step 2: standard error = 1.1/√150 = 1.1/12.2474 = 0.0898. Step 3: margin of error = 1.96 × 0.0898 = 0.176. Step 4: CI = 4.2 ± 0.176 = [4.024, 4.376]. Result: 95% CI from 4.024 to 4.376 days with margin ±0.176, matching the calculator.
A 95% interval is a statement about the method, not about your one sample: if you repeated the study many times, 95% of the intervals built this way would capture the true value. The interval you have either contains it or it does not — there is no probability left once the numbers are fixed. That nuance is the most-tested and most-missed idea in introductory statistics.
The margin shrinks with the square root of n, not with n itself. Quadrupling your sample from 250 to 1,000 only halves the margin. This is why a national poll at ±3% costs a few thousand respondents, while ±1% — three times more precision — demands around 9,600 and is almost never bought.
The three levels trade width for certainty: 99% intervals are about 31% wider than 95% ones (z = 2.576 vs 1.96), and 90% intervals are noticeably narrower. Publication convention is 95%; quality control and engineering often pick 99% when the cost of missing an effect is high, and exploratory work tolerates 90%.
These formulas assume the sampling distribution is normal. For means that wants n ≥ 30 (or known σ); for proportions the rule of thumb is np̂ ≥ 5 and n(1−p̂) ≥ 5. Below those thresholds use a t-interval for means or the Wilson score interval for proportions — the Wald interval shown here systematically undercovers near 0% or 100%.
More tools you might find useful
Find cube volume and surface area.
Magnus-Tetens dew point, absolute humidity g/m³ and comfort band.
Add, subtract, multiply, divide fractions with exact math.
Temperature + humidity → NWS heat index and health risk band.