Skip to content
Family Table Math

Margin of Error

You’ve probably seen a news story that ends with a line like “accurate within ±3\pm 3 percentage points, 19 times out of 20.” That line is the margin of error, and it’s an honest admission that a poll of a sample can’t give the exact answer for a whole population. Understanding it helps you tell the difference between a real result and one that’s too close to call.

A parameter is a number that describes a whole population, like the true percentage of all voters in a town who support a new arena. We usually can’t ask everyone, so we take a sample and calculate a statistic, like the percentage of the sample who support it. (See sampling methods.)

Different random samples give slightly different statistics, just by chance. This is called sampling variability. The margin of error measures how big that chance variation is likely to be.

A poll result is reported as

statistic±margin of error\text{statistic} \pm \text{margin of error}

The range from (statistic −- margin) to (statistic ++ margin) is called a confidence interval. For example, ”58%58\%, accurate within ±4\pm 4 percentage points” gives the interval 54%54\% to 62%62\%.

The confidence level says how reliable the method is. ”1919 times out of 2020” means

1920=0.95=95% confidence\frac{19}{20} = 0.95 = 95\% \text{ confidence}

What it means: if the poll were repeated many times with new random samples of the same size, about 95%95\% of the intervals made this way would contain the true population value.

What it doesn’t mean:

  • It doesn’t mean 95%95\% of people agreed, or that 95%95\% of the population was surveyed.
  • It doesn’t guarantee the true value is in the interval. About 11 poll in 2020 will miss.
  • It doesn’t cover bias. The margin of error only accounts for random sampling variability. A biased sample (for example, an online poll where anyone can vote) can be far off no matter how small its margin of error looks. (See bias in sampling.)

Sample size, margin of error, and confidence level are linked:

  • Bigger sample → smaller margin of error. More data gives a more precise estimate. But to cut the margin of error in half, you need about four times the sample size.
  • Higher confidence → wider margin of error. To be more sure your interval catches the true value, you have to make the interval wider.

A formula for investigating (proportions at 95% confidence)

Section titled “A formula for investigating (proportions at 95% confidence)”

For a sample proportion pp (written as a decimal) from a random sample of size nn, the margin of error at 95%95\% confidence is approximately

ME≈1.96p(1−p)n\text{ME} \approx 1.96\sqrt{\frac{p(1 - p)}{n}}

This formula is a tool for exploring the relationships above. It assumes a simple random sample and a fairly large nn.

The 1.961.96 comes from the normal distribution: the middle 95%95\% of a standard normal curve lies between z=−1.96z = -1.96 and z=1.96z = 1.96. For other confidence levels, replace 1.961.96 with a different z-score:

Confidence levelzz
90%90\%1.6451.645
95%95\%1.961.96
99%99\%2.5762.576

Quick estimate. The product p(1−p)p(1 - p) is largest when p=0.5p = 0.5, and then 1.960.25n=0.98n1.96\sqrt{\dfrac{0.25}{n}} = \dfrac{0.98}{\sqrt{n}}. So at 95%95\% confidence, a quick (slightly generous) estimate is

ME≈1n\text{ME} \approx \frac{1}{\sqrt{n}}

For example, a poll of 10001000 people has a margin of error of at most about 11000≈0.032\dfrac{1}{\sqrt{1000}} \approx 0.032, or about ±3\pm 3 percentage points.

A random sample of 600600 residents of a town found that 58%58\% support building a new skatepark. The result is “accurate within ±4\pm 4 percentage points, 1919 times out of 2020.”

  • (a) What is the confidence interval, and what is the confidence level?
  • (b) Can the town council be fairly confident that a majority of residents support the skatepark?

Solution. (a) The interval is 58%−4%=54%58\% - 4\% = 54\% to 58%+4%=62%58\% + 4\% = 62\%. ”1919 times out of 2020” is a 95%95\% confidence level.

(b) Yes. The whole interval is above 50%50\%, so the council can be 95%95\% confident that a majority of all residents (not just the 600600 surveyed) support the skatepark.

In a random sample of 400400 students at a large high school, 35%35\% said they’d prefer a later start time. Find the margin of error at 95%95\% confidence, and compare it with the quick estimate.

Solution. Use p=0.35p = 0.35 and n=400n = 400:

ME≈1.960.35(0.65)400=1.960.000 568 75≈1.96(0.0238)≈0.047\begin{aligned} \text{ME} &\approx 1.96\sqrt{\frac{0.35(0.65)}{400}} \\ &= 1.96\sqrt{0.000\,568\,75} \\ &\approx 1.96(0.0238) \\ &\approx 0.047 \end{aligned}

The margin of error is about ±4.7\pm 4.7 percentage points, so the interval is about 30.3%30.3\% to 39.7%39.7\%.

The quick estimate gives 1400=120=0.05\dfrac{1}{\sqrt{400}} = \dfrac{1}{20} = 0.05, or ±5\pm 5 points. That’s close, and a little larger, as expected.

Using p=0.5p = 0.5 and 95%95\% confidence, find the margin of error for samples of size 100100, 400400, 16001600, and 64006400. What pattern do you see?

Solution. With p=0.5p = 0.5, ME≈1.960.25n\text{ME} \approx 1.96\sqrt{\dfrac{0.25}{n}}:

nnME\text{ME}
1001000.0980.098, or ±9.8\pm 9.8 points
4004000.0490.049, or ±4.9\pm 4.9 points
160016000.02450.0245, or about ±2.5\pm 2.5 points
640064000.012 250.012\,25, or about ±1.2\pm 1.2 points

Each time the sample size is multiplied by 44, the margin of error is cut in half. That’s because nn is under a square root: 4=2\sqrt{4} = 2. Bigger samples are more precise, but each improvement costs four times as many people. This is why most national polls stop at around 10001000 to 20002000 people.

A random sample of 500500 people found that 60%60\% have a library card. Find the margin of error at 90%90\%, 95%95\%, and 99%99\% confidence.

Solution. First, 0.6(0.4)500=0.000 48≈0.021 91\sqrt{\dfrac{0.6(0.4)}{500}} = \sqrt{0.000\,48} \approx 0.021\,91. Multiply by each zz:

ConfidenceME\text{ME}Interval
90%90\%1.645(0.021 91)≈0.0361.645(0.021\,91) \approx 0.03656.4%56.4\% to 63.6%63.6\%
95%95\%1.96(0.021 91)≈0.0431.96(0.021\,91) \approx 0.04355.7%55.7\% to 64.3%64.3\%
99%99\%2.576(0.021 91)≈0.0562.576(0.021\,91) \approx 0.05654.4%54.4\% to 65.6%65.6\%

Same data, different intervals: the more confident you want to be, the wider the interval has to be. It’s a trade-off between being sure and being precise.

Thinking “95% confidence” means 95% of people agree. The confidence level describes the polling method, not the opinions. It says how often intervals made this way catch the true value.

Treating the interval as a guarantee. About 11 in 2020 polls at 95%95\% confidence will miss the true value, through no fault of the pollster.

Ignoring the margin of error when comparing results. If two options’ intervals overlap, the poll can’t tell you who is really ahead. Roughly, a lead needs to be more than twice the margin of error before it’s clear. Otherwise, call it “too close to call”.

Thinking a big sample fixes bias. A huge, self-selected online poll can have a tiny margin of error on paper and still be badly wrong. The margin of error only applies to properly random samples.

Doubling the sample to halve the margin. Because of the square root, you need four times the sample to halve the margin of error.

Mixing up percent and percentage points. If support goes from 40%40\% to 44%44\%, that’s an increase of 44 percentage points, but a 10%10\% increase. Margins of error for percentages are given in percentage points.

1. (Warm-up) A school survey finds that 42%42\% of students eat breakfast every day, accurate within ±3\pm 3 percentage points, 1919 times out of 2020. Write the confidence interval.

Solution

42%−3%=39%42\% - 3\% = 39\% to 42%+3%=45%42\% + 3\% = 45\%, at 95%95\% confidence.

2. (Warm-up) What confidence level does each phrase describe?

  • (a) ”1919 times out of 2020”
  • (b) ”99 times out of 1010”
  • (c) ”9999 times out of 100100“
Solution

(a) 95%95\%. (b) 90%90\%. (c) 99%99\%.

3. (Warm-up) A poll of students finds that 62%62\% want a longer lunch break, accurate within ±5\pm 5 percentage points, 1919 times out of 2020. Is each statement true or false?

  • (a) We can be 95%95\% confident that between 57%57\% and 67%67\% of all students want a longer lunch.
  • (b) Exactly 62%62\% of all students want a longer lunch.
  • (c) 95%95\% of the students in the school were surveyed.
  • (d) The true percentage is definitely between 57%57\% and 67%67\%.
Solution

(a) True. (b) False: 62%62\% is the sample’s result, an estimate of the true value. (c) False: the 95%95\% is the confidence level, not the share surveyed. (d) False: the method catches the true value about 1919 times out of 2020, so there’s a small chance it’s outside the interval.

4. (Core) In a random sample of 600600 people, 70%70\% said they recycle every week. Find the margin of error at 95%95\% confidence, and write the confidence interval.

SolutionME≈1.960.7(0.3)600=1.960.000 35≈1.96(0.0187)≈0.037\text{ME} \approx 1.96\sqrt{\frac{0.7(0.3)}{600}} = 1.96\sqrt{0.000\,35} \approx 1.96(0.0187) \approx 0.037

The margin of error is about ±3.7\pm 3.7 percentage points, so the interval is about 66.3%66.3\% to 73.7%73.7\%.

5. (Core) Use the quick estimate ME≈1n\text{ME} \approx \dfrac{1}{\sqrt{n}}.

  • (a) What is the margin of error for a poll of 25002500 people?
  • (b) About how many people would you need for a margin of error of ±4\pm 4 percentage points?
Solution

(a) 12500=150=0.02\dfrac{1}{\sqrt{2500}} = \dfrac{1}{50} = 0.02, or ±2\pm 2 percentage points.

(b) Solve 1n=0.04\dfrac{1}{\sqrt{n}} = 0.04: n=25\sqrt{n} = 25, so n=625n = 625 people.

6. (Core) A poll of 10001000 randomly chosen voters in a small town shows the mayoral candidates at 48%48\% (Candidate A) and 44%44\% (Candidate B), accurate within ±3\pm 3 percentage points, 1919 times out of 2020. A headline says “A leads B.” Is that fair?

Solution

A’s interval is 45%45\% to 51%51\% and B’s is 41%41\% to 47%47\%. The intervals overlap (from 45%45\% to 47%47\%), so it’s quite possible that B actually has as much support as A, or more. The poll doesn’t give strong evidence that A is ahead. A fairer headline would be “Race too close to call.”

7. (Core) Two schools ran the same survey question. At School P, 250250 randomly chosen students were asked; at School Q, 10001000 were asked. Both found that 50%50\% said yes. Find each margin of error at 95%95\% confidence and explain the difference.

Solution

School P: 1.960.25250≈0.0621.96\sqrt{\dfrac{0.25}{250}} \approx 0.062, or about ±6.2\pm 6.2 points.

School Q: 1.960.251000≈0.0311.96\sqrt{\dfrac{0.25}{1000}} \approx 0.031, or about ±3.1\pm 3.1 points.

School Q’s sample is four times as big, so its margin of error is half as big. Its estimate is more precise.

8. (Challenge) A school council wants to estimate the percentage of students who support a new dress code to within ±2\pm 2 percentage points at 95%95\% confidence. Using p=0.5p = 0.5 (the “safest” choice, because it gives the largest margin), how many students should they survey? If they only want ±4\pm 4 points, how many?

Solution

Solve 1.960.25n=0.021.96\sqrt{\dfrac{0.25}{n}} = 0.02:

0.25n=0.021.960.5n=0.021.96n=0.5(1.96)0.02=49n=2401\begin{aligned} \sqrt{\frac{0.25}{n}} &= \frac{0.02}{1.96} \\ \frac{0.5}{\sqrt{n}} &= \frac{0.02}{1.96} \\ \sqrt{n} &= \frac{0.5(1.96)}{0.02} = 49 \\ n &= 2401 \end{aligned}

They need 24012401 students. For ±4\pm 4 points (twice the margin), they need a quarter as many: n=24.5\sqrt{n} = 24.5, so n=600.25n = 600.25, and they should survey 601601 students. (A school would need more than 24012401 students for the first plan to even be possible!)

9. (Challenge) A website invites readers to vote online on whether a city should ban cars downtown. Of 50005000 votes, 81%81\% say yes. The website reports a margin of error of ±1.4\pm 1.4 percentage points. Where does the ±1.4\pm 1.4 come from, and why is the result still not trustworthy?

Solution

The quick estimate gives 15000≈0.014\dfrac{1}{\sqrt{5000}} \approx 0.014, or ±1.4\pm 1.4 percentage points.

But the margin of error only applies to a random sample. Here, people chose to vote themselves (a voluntary response sample). People with strong opinions, and readers of that particular website, are much more likely to vote, and some people may vote more than once. The sample is biased, so the true percentage of all city residents could be very different from 81%81\%, no matter how many votes there were.