Margin of error calculator

A poll of 1,000 people in which 52% answer yes has a margin of error of ±3.1 percentage points at z = 1.96 (95% confidence), so the interval runs from 48.9% to 55.1%.

Calculate a normal-approximation margin of error for a sample proportion: z√(p(1 − p)/n).

Privacy: runs in your browser

This tool processes your input in this browser. Inputs and results are excluded from analytics. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. When a button sends your result to another tool, it waits in this tab until that tool opens it, for up to a minute, and is then deleted.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

Example: a poll of 1,000 people in which 52% answer yes, at 95% confidence. Type your own numbers over it.

More options

Approximate margin (percentage points)

3.10

More results
Compare with other numbers

Save the current answer, then change an input to compare. This clears when you leave.

Rounding and decimal places

Rounding changes how numbers are shown, not how they are calculated.

Automatic precision rounds answers for reading: up to six significant digits, with whole numbers kept in full. Thousands separators such as 1,000 are accepted; use a dot for decimals.

More
Quick calculator

Use +, −, ×, ÷, parentheses and %. This doesn’t change the tool above.

Keyboard shortcuts

Sharing and starting over

A copied link includes what you entered and your settings, so anyone with it can see them. Leave private text out. Files and results are not included; random draws are made again.

Start over puts the tool back to its starting values and closes any open file or device. Drafts you saved stay on this device until you delete them.

How it works

Simple random sample and independent observations. Wald bounds can fall outside 0–100% and become misleading near the extremes or with small samples; they are shown without clipping. A zero margin at 0% or 100% is an approximation failure, not certainty.

Next: Sample size calculator

Next: T test calculator

How the approximate margin changes with sample size

Other inputs keep their starting values: Observed proportion (%): 52; Normal critical value z: 1.96. Examples only, not recommendations.

Sample sizeApproximate margin (percentage points)
5004.38
1,0003.1
2,0002.19
Cite this page

ToolOctopus. “Margin of error calculator.” Updated . https://tooloctopus.com/margin-of-error-calculator.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.

Find a tool

Type a task, a unit pair, a sum or a time zone. ↓ to choose, Enter to open.