How it works
This calculator evaluates the displayed equation variants locally in your browser. Enter the known values; results are shown for equations whose required inputs are available.
Check units, assumptions and professional guidance before using results for medical, financial, legal, engineering or safety-critical decisions.
Formulas used by this calculator
The 95% Confidence Interval Calculator works with 13 quantities and 14 relations between them. Enter the values you know, leave the one you want to find blank, and press Calculate. Blank fields are never treated as zero. Each formula below is solved for one quantity.
- Margin of error (
margin_of_error) = standard_error × z
- Standard error (
standard_error) = margin_of_error/z
- Upper bound (
upper_bound) = margin_of_error + mean
- Lower bound (
lower_bound) = -margin_of_error + mean
- Right tailed p value (
right_tailed_p_value) = 1/2 - 1/2 × confidence_level
- Confidence level (
confidence_level) = 1 - 2 × right_tailed_p_value
- Mean (
mean) = lower_bound + margin_of_error
- z (
z) = margin_of_error/standard_error
6 further rearrangements of the same relations let you solve for other quantities.
Inputs
| Field | Name in formulas | Can be solved for |
| z | z | Yes |
| Mean | mean | Yes |
| Alpha | alpha | Input only |
| Choice | choice | Input only |
| Choice2 | choice2 | Input only |
| Lower bound | lower_bound | Yes |
| Sample size | sample_size | Yes |
| Upper bound | upper_bound | Yes |
| Standard error | standard_error | Yes |
| Margin of error | margin_of_error | Yes |
| Confidence level | confidence_level | Yes |
| Standard deviation | standard_deviation | Yes |
| Right tailed p value | right_tailed_p_value | Yes |
Limitation: 2 of the 16 underlying relations rely on lookup tables or helper routines that run only on the original source calculator, so this page skips them. Quantities that depend on those relations are not solved here.