How to use
- Choose whether you have a sample size, mean and standard deviation, or a list of numbers.
- Enter the confidence level (95% is the usual choice) and pick the method: normal (Z) when the standard deviation is known or the sample is large, or Student t when you estimated it from a small sample.
- Read the interval, the margin of error, the margin as a share of the mean and the critical value, with the working shown underneath.
- The table lists the same data at other confidence levels, so you can see how much wider a more certain interval gets.
Formula
Interval = mean ± critical value × s ÷ √n. The critical value is Z (1.96 at 95%) for the normal method, or t with n − 1 degrees of freedom for the t method (2.262 at 95% when n = 10). The part after the ± is the margin of error.Example
A sample of 64 students has a mean mark of 62.4 and a standard deviation of 8.5. At 95% the margin is 1.96 × 8.5 ÷ √64 = 2.08, so the interval is 62.4 ± 2.08, from 60.32 to 64.48.
A 95% interval does not mean there is a 95% chance that this particular interval holds the true mean; it means that 95% of intervals built this way would. The method assumes a random sample from a roughly normal population, or a large enough sample for the mean to be roughly normal.