StatGardenREF. DESK
Calculators/Statistics/Margin of error (proportion)
Statistics

Margin of error (proportion) calculator

Margin of error for a survey proportion at a chosen confidence level.

What this calculator does

Margin of error (proportion) works out margin of error for a survey proportion at a chosen confidence level. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

FormulaE = z × √(p(1−p)/n) with z = 1.645 (90%), 1.96 (95%), 2.576 (99%)

The inputs explained

FieldWhat to enter
Sample proportion (%)A number, measured in %. Starts at 50.
Sample sizeA number. Starts at 400.
Confidence levelChoose from 90%, 95%, 99%.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with sample proportion

Every other input is held at the calculator’s starting values while sample proportion varies. Select any row to load that scenario into the calculator.

How the answer changes with sample proportion
Sample proportion (%)Margin of errorConfidence intervalStandard error
254.24%20.8% to 29.2%0.0217
37.54.74%32.8% to 42.2%0.0242
504.90%45.1% to 54.9%0.0250
754.24%70.8% to 79.2%0.0217
1000.000%100.0% to 100.0%0
150N/A%N/A% to N/A%N/A