Skip to content
LoveToCalc

Definition — what does that mean?

Confidence interval for a difference of proportions

The interval for how much two population proportions differ, from two independent samples.

In Swedish: Konfidensintervall för differens av andelar

Confidence interval for a difference of proportions

The relation

dlimit=p̂₁−p̂₂±zα/2p̂₁(1−p̂₁)n₁+p̂₂(1−p̂₂)n₂

An interval for the difference between two population shares from two independent samples: the difference of the sample shares plus and minus z times the square root of p̂₁(1 − p̂₁)/n₁ + p̂₂(1 − p̂₂)/n₂.

Solve for
Solved for dlimit

dlimit=p̂₁−p̂₂+zα/2p̂₁(1−p̂₁)n₁+p̂₂(1−p̂₂)n₂

dlimit≈0.1689

d limit equals (0.55 minus 0.45) plus (1.96 times the square root of (((0.55 times (1 minus 0.55)) divided by 400) plus ((0.45 times (1 minus 0.45)) divided by 400))), equals 0.1 plus (1.96 times the square root of (((0.55 times 0.45) divided by 400) plus ((0.45 times 0.55) divided by 400))), equals 0.1 plus (1.96 times the square root of ((0.2475 divided by 400) plus (0.2475 divided by 400))), is approximately 0.1 plus (1.96 times the square root of (6.187 times 10 to the power of minus 4 plus 6.188 times 10 to the power of minus 4)), is approximately 0.1 plus (1.96 times the square root of (0.0012)), is approximately 0.1 plus (1.96 times 0.0352), is approximately 0.1 plus 0.0689, is approximately 0.1689. The lower limit is 0.0311.

Working8 steps

Practice questions

You are given

  • p̂₁=0.12
  • p̂₂=0.08
  • zα/2=1.96
  • n₁=500
  • n₂=500

Round to 3 decimals.

The formula

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

Holds for two independent random samples when each n · p̂ and n · (1 − p̂) is about 10 or more. z is 1.645 for 90%, 1.96 for 95% and 2.576 for 99%.

Each proportion has its own spread under the root, estimated from its own sample, and the two variances add. No pooling is done here, because no hypothesis says the proportions are equal; the two-proportion test does pool.

A party at 55% of 400 against 45% of 400 in a second poll, 95%: the root is √(0.2475/400 + 0.2475/400) = 0.0352, the margin 1.96 · 0.0352 = 0.069, and the interval 0.10 ± 0.069, from 3.1 to 16.9 percentage points.

A negative difference

40% of 100 against 50% of 100 at 99%: the difference is −0.10, the root √(0.0024 + 0.0025) = 0.070 and the margin 2.576 · 0.070 = 0.180. The interval is −28.0 to +8.0 percentage points, and it contains 0.

Common mistakes

For one proportion, see the confidence interval for a proportion.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
dlimitp̂₁−p̂₂+zα/2p̂₁(1−p̂₁)n₁+p̂₂(1−p̂₂)n₂0.55−0.45+1.960.55(1−0.55)400+0.45(1−0.45)4000.1689
zα/2dlimit−(p̂₁−p̂₂)p̂₁(1−p̂₁)n₁+p̂₂(1−p̂₂)n₂0.1689−(0.55−0.45)0.55(1−0.55)400+0.45(1−0.45)4001.96

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.