Confidence Interval Calculator
Estimate a two-sided Student's t interval for a sample mean or a Wilson score interval for a sample proportion from summary sample data.
How It Works
Formula
Variables, symbols and units
- Sample mean
- Sample standard deviation
- Sample size
- Degrees of freedom, equal to n - 1 in mean mode
- Two-sided Student's t critical value for the chosen confidence level
- Number of successes in proportion mode
- Sample proportion, equal to x / n
- Two-sided normal critical value used by the Wilson score interval
Calculation method explained
Choose mean interval or proportion interval, enter the sample summary you already have, and the calculator returns the interval, margin of error, standard error, and critical value.
Mean mode uses the two-sided Student's t interval with , so smaller samples carry a wider critical value than a normal-model shortcut. Proportion mode uses the Wilson score interval on purpose instead of the naive Wald form , because Wilson behaves better when is modest or the sample proportion sits near 0 or 1.