Skip to content
LoveToCalc

Definition — what does that mean?

Confidence interval for a proportion

The interval a survey reports its percentage with: the sample proportion plus and minus a margin of error.

In Swedish: Konfidensintervall för en andel

Confidence interval for a proportion

The relation

plimit=p̂±zp̂(1−p̂)n

An interval that covers a population's share at a chosen confidence level, built from one sample: the sample proportion plus and minus the critical value times √(p̂(1 − p̂)/n).

Solve for
Solved for plimit

plimit=p̂+zp̂(1−p̂)n

plimit≈0.407

p limit equals 0.36 plus (1.96 times the square root of ((0.36 times (1 minus 0.36)) divided by 400)), equals 0.36 plus (1.96 times the square root of ((0.36 times 0.64) divided by 400)), equals 0.36 plus (1.96 times the square root of (0.2304 divided by 400)), equals 0.36 plus (1.96 times the square root of (5.76 times 10 to the power of minus 4)), equals 0.36 plus (1.96 times 0.024), is approximately 0.36 plus 0.047, is approximately 0.407. The lower limit is 0.313.

Working7 steps

Practice questions

You are given

  • p̂=0.36
  • z=1.96
  • n=400

Round to 3 decimals.

The formula

p̂ ± z · √(p̂(1 − p̂) / n)

Holds when the sample is drawn at random, the answers are independent of each other, and n · p̂(1 − p̂) is not too small — a common rule of thumb is at least 10.

p̂ (p-hat) is the proportion in the sample, n the sample size and z the critical value for the confidence level: 1.645 for 90%, 1.96 for 95% and 2.576 for 99%. The square root is the standard error of the proportion, and z times the standard error is the margin of error.

400 people asked, 144 say yes (36%), 95% confidence: the standard error is √(0.36 · 0.64 / 400) = √0.000576 = 0.024, the margin 1.96 · 0.024 ≈ 0.047, and the interval 0.36 ± 0.047 — from 31.3% to 40.7%.

The card works out the upper limit and prints the lower one beside it.

The root covers n as well

The slip that gives an impossibly narrow interval is dividing by n outside the root:

Working Margin of error
Wrong 1.96 · √(0.36 · 0.64) / 400 ±0.2 percentage points
Right 1.96 · √(0.36 · 0.64 / 400) ±4.7 percentage points

A margin of ±0.2 points from 400 people is a sign that n has landed in the wrong place. With the root over the whole fraction, precision grows with √n: four times the sample halves the margin.

A small sample

60 people asked, 3 say yes: p̂ = 0.05. The formula gives 0.05 ± 1.96 · √(0.05 · 0.95 / 60) ≈ 0.05 ± 0.055, and the lower limit falls below zero. A proportion cannot be negative, so the result is telling you the approximation does not carry here: n · p̂(1 − p̂) = 60 · 0.05 · 0.95 ≈ 2.9, far below the rule of thumb’s 10. For counts that small other intervals are used, such as the Wilson interval, which handles proportions near 0 and 1 better.

The margin at 50%

At p̂ = 0.5 the product p̂(1 − p̂) is at its largest, so the margin there is the widest a survey of that size can have:

n Margin of error (95%)
100 ±9.8 percentage points
400 ±4.9 percentage points
1,000 ±3.1 percentage points
2,500 ±2.0 percentage points

To go the other way — how many people to ask for a given margin — see sample size for a proportion. If it is the population’s proportion that is known, and the question is where a sample’s proportion will land, that is the prediction interval for a proportion: the same arithmetic with p in place of p̂.

Common mistakes

Questions people ask

Does 95% mean p is in the interval with probability 95%? Not quite. The population’s proportion is a fixed number that is either in the interval or not. What has a 95% probability is the method: draw many samples, build an interval from each, and about 95 in 100 of them catch the true proportion.

How is this different from a confidence interval for a mean? In the spread. For a mean you need the sample’s standard deviation; for a proportion the spread follows from the proportion itself, √(p̂(1 − p̂)/n). The version for a mean is on the confidence interval page.

Two parties are 2 points apart and the margin is 3. Is the gap real? The two intervals on their own cannot settle it. The difference between two proportions has its own margin of error, and it is larger than either of the two.

Does the size of the population matter? Only when the sample is a large part of it. The formula assumes the population is much larger than the sample, and then 1,000 people chosen at random give the same precision in a town as in a whole country.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
plimitp̂+zp̂(1−p̂)n0.36+1.960.36(1−0.36)4000.407
p̂2nplimit+z²−z4nplimit(1−plimit)+z²2(n+z²)2·400·0.407+1.96²−1.964·400·0.407(1−0.407)+1.96²2(400+1.96²)0.36
zplimit−p̂p̂(1−p̂)n0.407−0.360.36(1−0.36)4001.96
nz²p̂(1−p̂)(plimit−p̂)²1.96²·0.36(1−0.36)(0.407−0.36)²400

Last reviewed October 7, 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.