Change language

Statistics

Confidence interval calculator for the mean

The range the true mean is likely to fall in at your chosen confidence level.

Published by SolucionesAhora.com How we verify

Calculator inputs

Results

Enter your values and press “Calculate” to see the result.

Free, no sign-up! What if you could do this without a calculator? A five-minute game with challenges, lives and points. It clicks even when you cannot be bothered.

In short

What it calculates
The range the true mean is likely to fall in at your chosen confidence level.
Formula used
Standard error = s / √n
Example
Mean 25.4 with deviation 4.2 and n = 120 at 95%:

Confidence interval calculator

A sample mean on its own says little: the confidence interval shows the range within which the population mean can reasonably be expected to lie.

It is what scientific papers report alongside every estimate.

How it works

The standard error is obtained by dividing the deviation by the square root of the sample size, then multiplied by the z value for your confidence level to get the margin.

Formula

Standard error = s / √n

Margin = z × standard error

CI = mean ± margin

Worked example

Mean 25.4 with deviation 4.2 and n = 120 at 95%:

Standard error: 4.2 / √120 = 0.3834
Margin: 1.96 × 0.3834 = 0.7515
CI: [24.65 ; 26.15]

Explanation

What ninety-five per cent really means

It does not mean there is a ninety-five per cent probability that the true value lies inside your particular interval. It means that if you repeated the study many times, ninety-five per cent of the intervals calculated this way would contain the real value. The difference sounds subtle but it is the correct interpretation in frequentist statistics.

Width and information

A narrow interval indicates a precise estimate; a wide one, that the data say little. Doubling precision requires quadrupling the sample, just as with the margin of error. That is why small studies produce intervals so wide they are barely informative.

More useful than the p-value

Saying a difference is significant tells you nothing about its size. A confidence interval gives the range of values compatible with the data, which lets you judge whether the effect matters in practice. More and more journals require them alongside tests.

When to use Student's t

When the sample is small and you do not know the population standard deviation, which is almost always the case in practice. With large samples, the t and the normal converge and the choice stops mattering.

Frequently asked questions

What does a 95% CI actually mean?

That if you repeated the sampling many times, 95% of the intervals computed would contain the true population mean.

When should I use Student’s t instead of z?

With small samples (under 30) and unknown population deviation. This calculator uses z, which suits large samples.

Does a 95% CI contain the true value with 95% probability?

Not exactly. The correct reading is that ninety-five per cent of intervals built this way across repeated studies would contain the true value.

Why is my interval so wide?

Because the sample is small or the data very spread out. Halving it requires four times as many observations.

Need to calculate something else?

These tools are often used alongside this calculator.

Margin of error

How precise your survey is, given the sample you actually collected.

Sample size

How many responses you need to estimate a percentage or a mean, with finite population, design effect and…

t-test

Compare two means (independent or paired) or one mean with a value, with p value, confidence interval and…

Pearson correlation

Pearson’s r between two variables, with p value, confidence interval, regression line and scatter plot.

Power & sample size

How many participants do you need? Work out sample size for a t test, correlation, ANOVA, proportions or…