No ads, no sign-upChecked 2026-08-24

Confidence Interval Calculator

Your numbers

Change any value to update the result.

Confidence interval

94.6323 – 105.3677 (±5.3677)

Confidence interval: 94.6323 – 105.3677 (±5.3677)
Upper limit: 105.3677 ; Margin of error: 5.3677
Upper limit
105.3677
Margin of error
5.3677
Examples

With a sample mean of 100, known population σ = 15, n = 30 and z = 1.96, the calculator returns 94.6323 to 105.3677, with margin ±5.3677. This z interval requires known population σ; an estimated sample standard deviation needs a t method.

The numbers at a glance

Held fixed: Sample mean (x̄) 100.0000, Known population SD (σ) 15.0000, Sample size (n) 30.

Z critical value (z)Confidence interval
1.00097.2614 – 102.7386 (±2.7386)
1.50095.8921 – 104.1079 (±4.1079)
1.960Your value94.6323 – 105.3677 (±5.3677)
2.00094.5228 – 105.4772 (±5.4772)
2.50093.1535 – 106.8465 (±6.8465)
3.00091.7842 – 108.2158 (±8.2158)

Worked examples

Case 1

Sample mean (x̄)
100
Known population SD (σ)
15
Sample size (n)
30
Z critical value (z)
1.96

94.6323 – 105.3677 (±5.3677)

Upper limit
105.3677
Margin of error
5.3677
Open with these values

Case 2

Sample mean (x̄)
68
Known population SD (σ)
3
Sample size (n)
36
Z critical value (z)
1.96

67.02 – 68.98 (±0.98)

Upper limit
68.9800
Margin of error
0.9800
Open with these values

Case 3

Sample mean (x̄)
1.024
Known population SD (σ)
0.337
Sample size (n)
30
Z critical value (z)
2.326

0.8809 – 1.1671 (±0.1431)

Upper limit
1.1671
Margin of error
0.1431
Open with these values

How it's calculated

lower = x̄ − z × σ ÷ √n; upper = x̄ + z × σ ÷ √n

  1. StepEnter the sample mean of the observations.Sample mean (x̄)=100
  2. StepEnter the known population standard deviation σ, not the sample SD s.Known population SD (σ)=15
  3. StepEnter the sample size and the two-sided z value: 1.645, 1.96 or 2.576.Sample size (n)=30·Z critical value (z)=1.96
  4. ResultRead the lower and upper limits, followed by the margin of error.94.6323 – 105.3677 (±5.3677)

This z interval requires known population σ. A sample SD and the Student-t method are not supported.

What this number means

The 95 % describes the method, not this interval

If the sampling were repeated many times, about 95 percent of the intervals built this way would capture the true mean. It does not say that the true mean lies inside this one interval with 95 percent probability.

Both limits are shown

The result gives the lower and upper limits and the ± margin. The limits are the sample mean minus and plus z × σ ÷ √n.

Certainty is paid for in width

A higher confidence level uses a larger z: 1.645 at 90 %, 1.96 at 95 %, 2.576 at 99 %. With σ = 15 and n = 30 the margin grows from 4.5050 to 5.3677 to 7.0547.

Known population σ required

This is a z interval using known population σ. If σ is estimated from the sample, use a t interval with n − 1 degrees of freedom; a large n alone does not make s and σ identical.

Commonly misread

MisconceptionA 95 % interval has a 95 % chance of containing the true mean.

CorrectionThe 95 % belongs to the procedure: repeat the sampling and about 95 % of such intervals capture it. This one either contains the true mean or it does not.

MisconceptionDoubling the sample halves the margin of error.

CorrectionThe margin divides σ by √n, so halving it takes four times the sample. Going from n = 30 to n = 60 only shrinks a margin of 5.3677 to 3.7955.

MisconceptionThe sample standard deviation s is interchangeable with population σ here.

CorrectionThis z interval assumes known population σ. With sample s and unknown σ, use a t interval that accounts for the sample size.

Reference table

Mean, σ, n, zLevelLower to upper
68, 3, 36, 1.64590 %67.1775 to 68.8225
68, 3, 36, 1.9695 %67.02 to 68.98
1.024, 0.337, 30, 2.32698 %0.8809 to 1.1671
100, 15, 30, 1.9695 %94.6323 to 105.3677

Questions

How do I calculate a confidence interval?

Find the margin of error E = z × σ ÷ √n, then subtract it from and add it to the sample mean: the interval is x̄ ± E. A mean of 100 with σ = 15, n = 30 and z = 1.96 gives a margin of 5.3677 and an interval from 94.6323 to 105.3677.

Which z critical value should I use?

The z value follows from the confidence level: 1.645 for 90 %, 1.96 for 95 % and 2.576 for 99 %. A higher level uses a larger z and widens the interval — you trade precision for certainty.

What is a confidence interval?

It is a range built around a sample estimate that is likely to contain the true population value. A 95 % interval means that if the sampling were repeated many times, about 95 % of the intervals built this way would capture the true mean.

How do I make the interval narrower?

Increase the sample size: the margin divides σ by √n, so quadrupling the sample roughly halves it. Accepting a lower confidence level or reducing the variability in the data shrinks it too.

When should I use a t value instead?

Use a t interval when population σ is unknown and you estimate it with sample s. The t critical value depends on n − 1 degrees of freedom. This calculator only uses known population σ and a z critical value.

Sources and last check

  1. NIST — confidence interval methods
  2. OpenStax 8.1 — mean interval with known population sigmaFormula / method

Information, not professional advice.