What "±3 points" really means
Under almost every published poll sits a small line of text: "1,050 likely voters, margin of error ±3 percentage points". Most readers skip it. Then the headline says the Yes side is ahead with 47 %, and a week later another poll shows 49 %, and commentators talk about momentum when nothing at all may have changed. The margin of error is the number that tells you how much a poll result can wobble simply because only a sample of people was asked, and it is surprisingly easy to calculate in Excel.
This free first lesson of Polling & Survey Sampling in Excel is for journalists and editors who report on polls, campaign and public-affairs staff, market researchers, students in statistics, politics or social science, and anyone who runs a customer or employee survey and wants to know how precise its percentages are. You need basic Excel and no statistics package. By the end you can put an honest ± on every share in a survey and spot the most common misreadings in the news.
The lab uses a fictional referendum. The city of Harbourton votes on Measure T, a tram extension along the river. Civica Polls, also fictional, interviewed 1,050 likely voters: 47 % say Yes, 41 % No and 12 % are undecided. The poll also breaks the Yes share down by age. Your job is to calculate the margin of error for each number, build the confidence intervals, and find the single margin a pollster would print under the headline.
The core idea: standard error, z value and margin
Imagine Civica could repeat the same poll many times, each time with a fresh random sample of 1,050 voters. The Yes share would not be exactly 47 % every time. It would scatter around the true share in the electorate, and for samples of this size the scatter follows a normal (bell-shaped) curve. The typical size of that scatter is the standard error:
standard error = √( p × (1 − p) / n ), where p is the share and n the number of interviews. In Excel: =SQRT(C7*(1-C7)/B7).
The standard error is one "step" of random noise. To cover the true value in 95 % of repeated samples you need about 1.96 such steps on each side. That multiplier is the z value, and Excel returns it with =NORM.S.INV(1-(1-0.95)/2), which is NORM.S.INV(0.975) = 1.96. The 0.975 comes from leaving 2.5 % in each tail of the curve: 5 % in total outside the interval, split between too high and too low.
The margin of error is z × standard error, and the 95 % confidence interval is the share minus the margin up to the share plus the margin. For the Yes share of 47 % with 1,050 interviews, the standard error is √(0.47 × 0.53 / 1,050) ≈ 0.0154, and the margin is 1.96 × 0.0154 ≈ 0.030, or ±3.0 percentage points. The interval runs from about 44.0 % to 50.0 %.
Worked example: the Measure T poll
Here is the whole lab table, calculated with the formulas below. The confidence level in B3 is 95 % and B4 holds the z value 1.96:
| Group · answer | n | Share | Margin (±) | Low | High |
|---|---|---|---|---|---|
| All voters · Yes | 1,050 | 47% | 3.0 pts | 44.0% | 50.0% |
| All voters · No | 1,050 | 41% | 3.0 pts | 38.0% | 44.0% |
| Under 35 · Yes | 240 | 58% | 6.2 pts | 51.8% | 64.2% |
| 35–64 · Yes | 520 | 45% | 4.3 pts | 40.7% | 49.3% |
| 65+ · Yes | 290 | 41% | 5.7 pts | 35.3% | 46.7% |
| Reported margin (p = 50%) | 1,050 | 50% | 3.0 pts |
The formulas that produce it. Note the dollar signs on $B$4: the z value must stay fixed while the share and n change from row to row.
| Cell | Formula | Result |
|---|---|---|
| B4 (z value) | =NORM.S.INV(1-(1-B3)/2) | 1.96 |
| D7 (margin, filled down to D11) | =$B$4*SQRT(C7*(1-C7)/B7) | 0.0302 = ±3.0 pts |
| E7 (low end) | =C7-D7 | 44.0% |
| F7 (high end) | =C7+D7 | 50.0% |
| D9 (under-35 margin) | =$B$4*SQRT(C9*(1-C9)/B9) | 0.0624 = ±6.2 pts |
| B13 (reported margin) | =B4*SQRT(0.5*(1-0.5)/B7) | 0.0302 = ±3.0 pts |
Three lessons jump out of the chart. First, the full-sample Yes share of 47 % has an interval from 44.0 % to 50.0 %, so this poll alone cannot rule out that Yes is already at half of the vote, and it cannot show a Yes majority either. Second, the subgroups are much less precise. The 240 voters under 35 give a margin of about ±6.2 points, more than twice that of the full poll, and the 290 voters aged 65 and over give about ±5.7. Third, the under-35 Yes share of 58 % has a low end of about 51.8 %, so within sampling error it is a clear majority, while the 45 % of the 35–64 group is clearly below half.
The pollster still needs one number for the headline. The convention is to report the margin at p = 50 %, the worst case, because that is where p × (1 − p) peaks. With 1,050 interviews: =B4*SQRT(0.5*(1-0.5)/B7) = 0.0302, so "±3.0 points". It applies to the full sample only. A news story that quotes ±3 for the under-35s understates their uncertainty by half.
The curve explains why so many national and city polls settle on roughly 1,000 interviews. Below a few hundred, the margin grows quickly. Above about 1,000, each extra point of precision costs a lot of extra interviews. If you rearrange the margin formula for n you get the sample size you need for a target margin: n = z² × p(1 − p) / margin². For ±3 points at p = 50 %, =ROUNDUP(NORM.S.INV(0.975)^2*0.25/0.03^2,0) returns 1,068 interviews. Lesson 2 builds a full planning sheet on that idea, including invitations and cost.
How to do it in Excel, step by step
- Enter the confidence level as a percentage in B3 (type
95%). Keeping it in a cell lets you switch to 90 % or 99 % later and watch every interval change. - In B4, enter
=NORM.S.INV(1-(1-B3)/2). Format it with two decimals (Home › Number › Increase Decimal). It shows 1.96. - List each share you want to report in one row: the group and answer in column A, the number of interviews behind that share in column B, the share in column C. Use the subgroup's own n, never the full sample size.
- In D7, enter
=$B$4*SQRT(C7*(1-C7)/B7). Press F4 after clicking on B4 to lock it. Select D7:D11 and press Ctrl+D. - In E7 enter
=C7-D7and in F7=C7+D7, then fill both down. Select C7:F11 and press Ctrl+Shift+%, then add one decimal place. - In B13, enter the headline margin
=B4*SQRT(0.5*(1-0.5)/B7), which uses p = 50 % and the full sample in B7. - Optional check:
=CONFIDENCE.NORM(1-B3,SQRT(C7*(1-C7)),B7)returns the same margin as D7, because it calculates z × standard deviation / √n. - To chart it, select A7:A11 and C7:C11, choose Insert › Charts › Clustered Bar, then Chart Elements (+) › Error Bars › More Options › Custom › Specify Value and point both the positive and the negative error value at D7:D11.
Changing the confidence level
Because the confidence level sits in its own cell, you can see what 95 % actually buys. Type 90 % into B3 and the z value drops to about 1.645, so the Yes margin shrinks to roughly ±2.5 points. Type 99 % and z rises to about 2.576, and the margin widens to roughly ±4.0 points. Nothing about the poll changed: the same 1,050 interviews simply support a narrower range at lower confidence and a wider range at higher confidence.
Ninety-five per cent is a convention, not a law of nature, but it is the one almost every pollster and newspaper uses, so stick with it when you compare your numbers with published polls. If you use a different level, say so next to the margin. A ±2.5 that silently means 90 % looks better than a ±3.0 at 95 %, yet it describes exactly the same data.
What the margin of error does not cover
The margin of error measures one thing only: the random luck of which people happened to land in the sample. It assumes every likely voter had a known chance of being interviewed and that everyone answered honestly. Real polls face several other errors that no ± can capture.
Coverage and non-response. If the phone or online panel misses some voters, or if certain groups refuse more often, the sample can be skewed in a way that more interviews do not fix. Pollsters reduce this with weighting, which you build in lesson 5. Question wording. "A tram extension along the river" and "a costly new tram line" may get different answers from the same people. Likely-voter models. Deciding who will actually vote is a judgement, and different pollsters make it differently. Timing. A poll describes the weeks it was in the field, not election day.
This is why a single poll is best read as a range, and why combining several polls, weighted by size and recency, usually gives a steadier picture. The course builds such a poll average in lesson 7.

Common mistakes and how to spot them
- Using the full-sample n for a subgroup. If the under-35 margin comes out at ±3 points, the formula points at 1,050 instead of 240. Subgroup margins should always be wider than the headline margin.
- One-sided z.
NORM.S.INV(0.95)returns 1.64, not 1.96. If your margins look about 16 % too small, you put all 5 % in one tail. - Forgetting the square root. Without
SQRT, the margin of a 47 % share comes out as a tiny 0.0005. A margin far below one point for a normal poll means a missing square root. - Halving the margin. The ± already applies on each side. The interval is share ± the full margin, not ± half of it.
- Applying the margin to the lead. Yes leads No by 6 points. The margin of that difference is not ±3; for two answers from the same poll it is about ±5.7 points here. Lesson 8 covers the right formula.
- Mixing percentages and points. A margin of 0.030 is 3.0 percentage points, not 3 %. "3 % of 47 %" would be 1.4 points, a very different claim.
- Treating the margin as the whole error. If a poll's sample is unrepresentative, its margin is still ±3 on paper. Check how it was drawn and weighted before trusting the precision.
Quick reference: Excel functions and shortcuts in this lesson
| Function or shortcut | What it does | Example |
|---|---|---|
NORM.S.INV(probability) | z value of the standard normal curve with that probability to its left | =NORM.S.INV(0.975) → 1.96 |
SQRT(number) | Square root | =SQRT(C7*(1-C7)/B7), the standard error |
CONFIDENCE.NORM(alpha, sd, n) | Margin z × sd / √n; for a share use sd = √(p(1−p)) | =CONFIDENCE.NORM(0.05,SQRT(0.47*0.53),1050) |
ROUNDUP(number, 0) | Rounds up to the next whole interview | =ROUNDUP(B4^2*0.25/0.03^2,0) → 1,068 |
TEXT(value, "0.0%") | Formats a share for a headline or label | ="Yes "&TEXT(C7,"0%")&" ±"&TEXT(D7*100,"0.0") |
| F4 | Locks a reference with $ signs | Keep $B$4 fixed when filling D7 down |
| Ctrl+Shift+% | Applies the percent format | Format C7:F11 as percentages |
| Ctrl+D | Fills the top formula down | Copy D7 to D8:D11 |
Real-world uses
- Reporting an election or referendum poll. Put a margin on every number you publish, including the subgroups, and avoid calling a race that the intervals show is open.
- Customer and employee surveys. "62 % of staff are satisfied" from 180 responses has a margin of roughly ±7 points. Before celebrating a 4-point rise from last year, check whether the intervals overlap heavily.
- Market research. A brand-awareness study needs margins for each region or age band; the sample-size formula tells you how many interviews each cell needs.
- Quality control by sampling. The share of defective items in an audit sample is a proportion too, and the same formula puts a range around it.
- A/B tests and conversion rates. A conversion rate is a share of visitors, and its margin tells you whether a week of traffic is enough to measure it.
What you will build in the rest of this course
This first lesson is free. The labs that follow are part of the full course, a one-time purchase of $9.90, and they continue with the same Harbourton referendum so that every step builds on the last.
Sample Size for a Target Margin of Error. You plan the next poll: how many completed interviews, invitations and dollars a margin of ±5, ±3 or ±2 points requires, and what it costs to report every district.
Small Electorates: the Finite Population Correction. You see how much the margin shrinks when a poll reaches a large part of a small ward, and plan an island poll with the corrected sample size.
Stratified Sampling: Proportional vs Equal Allocation. You split 1,200 interviews over four districts in two ways and compare the district margins with the margin for the whole city.
Post-Stratification Weighting by Age and Region. You weight six age × area cells so each counts as much as it does in the electorate, and measure how far the Yes share moves.
Design Effect and Effective Sample Size (Kish). You find out how many interviews the weighted poll is really worth, widen the margin accordingly, and estimate the design effect of a clustered door-to-door poll.
Poll Averages: Weighting by Sample Size and Recency. You combine eight polls into one average that trusts big and recent polls more, compare it with a simple average and chart the trend.
Lead vs Margin of Error: the Difference of Two Shares in One Poll. You calculate the margin of error of a lead, decide whether each lead is clear, and put a probability on Yes being ahead.
Summary
A poll share from a random sample comes with a margin of error of z × √(p(1 − p)/n). In Excel, NORM.S.INV(1-(1-B3)/2) gives z = 1.96 for 95 %, SQRT builds the standard error, and share ± margin gives the confidence interval. Subgroups have their own, wider margins, the headline margin uses p = 50 % and the full sample, and none of it covers errors from who answers or how questions are asked. For Measure T, Yes at 47 % ±3.0 is not yet a majority, while the under-35s are clearly in favour.
Now scroll up to the lab and calculate the z value, the five margins, the intervals and the reported margin yourself. The coach checks each cell and explains the most common slip if a number does not match.
Frequently asked questions
How do you calculate the margin of error for a poll?
Multiply the z value for your confidence level by the standard error of the share: margin = z × √(p(1 − p)/n). For 95 % confidence z is 1.96, so a 47 % share from 1,050 interviews has a margin of about ±3.0 points.
How do I calculate a margin of error in Excel?
Put the z value in a cell with =NORM.S.INV(1-(1-0.95)/2), then use =z*SQRT(p*(1-p)/n) with cell references, for example =$B$4*SQRT(C7*(1-C7)/B7). CONFIDENCE.NORM(0.05,SQRT(p*(1-p)),n) gives the same result.
Why is the z value 1.96 for 95 % confidence?
A 95 % interval leaves 5 % outside, 2.5 % in each tail of the normal curve. The point with 97.5 % of the curve to its left is 1.96, which is what NORM.S.INV(0.975) returns.
Why do pollsters report the margin of error at 50 %?
The term p(1 − p) is largest when p is 50 %, so the margin is widest there. Reporting that worst case gives one number that is valid for every share in the full sample.
Does the margin of error apply to subgroups?
No. A subgroup such as voters under 35 has its own, smaller number of interviews, so its margin must be calculated with its own n and is wider than the headline margin.
What does the margin of error not include?
It only covers random sampling error. Errors from who could be reached, who refused, question wording, the likely-voter model and late changes of opinion are not included.
Keep going: Polling & Survey Sampling: Margin of Error, Weighting & Poll Averages
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.
- Sample Size for a Target Margin of Error
- Small Electorates: the Finite Population Correction
- Stratified Sampling: Proportional vs Equal Allocation
- Post-Stratification Weighting by Age and Region
- Design Effect and Effective Sample Size (Kish)
- Poll Averages: Weighting by Sample Size and Recency
- Lead vs Margin of Error: the Difference of Two Shares in One Poll
- Did Support Really Move? The Change Between Two Independent Polls
- Undecided Voters: Leaners, the Two-Way Share and Allocation Scenarios
- Likely Voters: Turnout Probabilities vs a Cut-Off Screen
- Fieldwork Dispositions: Response, Cooperation and Contact Rates (Chart)
- Small Groups and Extreme Shares: the Wilson Interval vs the Simple Margin
- Systematic Sampling from a Voter Register: Interval, Random Start and Deadwood
- Two-Stage Samples: Picking Precincts with Probability Proportional to Size
- Quota Fieldwork Tracking: Targets, Shortfalls and a Progress Chart
- Rating Questions: the Margin of Error for a Mean Score with T.INV.2T
- House Effects: Each Pollster's Typical Lean and Adjusted Polls (Chart)
- Panel Re-Interviews: Gross Switching vs Net Change in a Turnover Table
- Final Project: The Poll Release Dashboard (Weighted Topline, Lead Margin and Chart)