Skip to content
LoveToCalc

Definition — what does that mean?

Confidence interval for a mean

The interval a sample mean is reported with, built from x̄, s and n.

In Swedish: Konfidensintervall för ett medelvärde

Confidence interval for a mean

The relation

x̄limit=x̄±tα/2,n−1·sn

An interval that covers the population mean at a chosen confidence level, built from the sample mean, the sample standard deviation and the sample size: the mean plus and minus t times s over the square root of n.

Solve for
Solved for x̄limit

x̄limit=x̄+tα/2,n−1·sn

x̄limit=22.131

x̄ limit equals 20 plus (2.131 times (4 divided by the square root of (16))), equals 20 plus (2.131 times (4 divided by 4)), equals 20 plus (2.131 times 1), equals 20 plus 2.131, equals 22.131. The lower limit is 17.869.

Working5 steps

Practice questions

You are given

  • x̄=8.4
  • tα/2,n−1=1.984
  • s=2
  • n=100

Round to 2 decimals.

The formula

x̄ ± t · s/√n

Holds when the values are a random sample from a roughly normal population, or when n is large enough for the mean to be roughly normal.

x̄ is the sample mean, s the sample standard deviation, n the sample size and t (written t_α/2,n−1 in textbooks) the critical value with n − 1 degrees of freedom, read in the t-table in the 0.025 column for 95%. The margin of error is the part after the ±.

Extra sleep with one drug over another, 10 patients (R’s sleep data, the paired differences from Cushny and Peebles 1905): x̄ = 1.58, s = 1.23, n = 10, t = 2.262 at 9 degrees of freedom. The margin is 2.262 · 1.23/√10 ≈ 0.88, so the interval is 0.70 to 2.46 hours.

A small sample

x̄ = 12, s = 3, n = 4. With 3 degrees of freedom t = 3.182, against 1.96 for a known σ.

Working Interval
Wrong, z 12 ± 1.96 · 1.5 9.06 to 14.94
Right, t 12 ± 3.182 · 1.5 7.23 to 16.77

With s estimated from only 4 values, z gives an interval that is too narrow.

Common mistakes

For the sample size that gives a chosen margin, see sample size for a mean.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
x̄limitx̄+tα/2,n−1·sn20+2.131·41622.131
x̄x̄limit−tα/2,n−1·sn22.131−2.131·41620
tα/2,n−1(x̄limit−x̄)ns(22.131−20)1642.131
s(x̄limit−x̄)ntα/2,n−1(22.131−20)162.1314
n(tα/2,n−1sx̄limit−x̄)²(2.131·422.131−20)²16

Last reviewed October 11, 2026 ·How pages are reviewed

Statistics and probabilityAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.