Statistics

Margin Of Error Calculator

The margin is z* times a standard error — see it priced at your sample size, for a proportion and for a mean, with the square-root law of diminishing returns re-derived on your own numbers.

Margin Of Error Calculator

Results recalculate instantly on every keystroke. Nothing you type is transmitted.

Sample
Margin for a proportion
—
Interval that margin implies—
Margin for a mean (σ known)—
The √n law, live—
Where z* came from—
What the margin does and does not say—

What this result does not account for

  • Sampling noise only — selection bias is not priced
  • Proportion flavour assumes n large enough that p̂(1−p̂)/n is well-behaved; mean flavour needs a KNOWN σ
● Zero-Server Execution Updated 11 Aug 2026 Reviewed by Sana Khalid IEEE-754 Double Precision

In short: At 95% confidence with n = 400, the margin of error for a proportion is z*×√(p̂(1−p̂)/n) = 1.959964 × 0.025 = 0.0489991 — about ±4.9 percentage points, the number behind every poll that says “plus or minus five.” For a mean with known σ = 5 the same sample gives ±0.489991. The margin shrinks with the SQUARE ROOT of n, not n itself: quadruple the sample to 1,600 and the margin only halves to ±2.449955. Precision is priced by √n, and the pollster’s ±3% is a budget decision, not a technicality.

Formula

E = z* × √(p̂(1−p̂) / n) · E = z* × σ/√n

z* is computed by bisection from the erf-series normal curve, never read from a table — the same engine the confidence-interval page uses.

Worked Example

  1. Set the confidence level — z* is computed for whatever you type, not just the chip values.
  2. Enter the sample size n and the observed proportion p̂ (or a planning value).
  3. Optionally give σ to price the same n for a MEAN.
  4. Read the margin, the interval it implies, and the quadrupling law computed live on your n.

95%, n = 400, p̂ = 0.5: margin ±4.89991 percentage points, interval (45.10009%, 54.89991%). At n = 1,600 the margin halves to ±2.449955. For a mean with σ = 5 the same n prices ±0.489991.

Strengths & Limits Of This Model

Where this engine is strong

  • Both flavours (proportion and known-σ mean) priced on one panel
  • The √n law re-derived live on your own n

Where it stops

  • No finite-population correction
  • No design effects or clustering — simple random samples only

Risk & accuracy notice. A margin of error attached to a biased sample is precision theater: it prices the randomness you cannot control and stays silent about the bias you didn’t.

Practical Use Cases

Polling

the ±3.1% printed under every headline

Survey planning

what the current n can honestly claim

Lab QC

the mean-flavour margin at stated coverage

Methodology & Editorial Standards

Computation runs in IEEE-754 double precision at full internal precision; rounding to two decimal places occurs strictly at the display layer, so no cumulative drift enters the result. All monetary outputs use accounting presentation — grouped thousands, two decimals, negatives in parentheses — so figures can be transcribed directly into a model or working paper. Division-by-zero and out-of-domain inputs return an em-dash rather than a misleading number.

This engine was reconciled against an independent reference implementation and hand-verified for the worked example above before release. Our full five-stage review process is published on the About Us page.

Sana Khalid Principal Front-End Engineer · ApexConverter

Statistical inference, experiment design and numerical stability. Last reviewed: 11 August 2026.

Disclaimer. This calculator is provided for informational and modelling purposes only and does not constitute financial, tax, legal, medical, or engineering advice. Verify all figures with a qualified professional before acting on them.


Margin Of Error Calculator — 8 Expert FAQs

8 analyst-written answers to the questions practitioners actually ask — optimised for voice and answer-engine retrieval.

Why is the margin biggest at p̂ = 0.5?

Because p̂(1−p̂) is largest there: 0.25 against 0.21 at p̂ = 0.3. A coin-flip split is the hardest to pin down, which is why cautious planning uses 0.5 even when the expected result is not a tie.

Why does doubling the sample barely help?

The margin carries a √n: doubling n divides the margin by √2 ≈ 1.414, and quadrupling halves it. The pollster’s jump from ±3% to ±1.5% costs four times the fieldwork — the law this page re-derives on your numbers.

Is the margin the same thing as the confidence interval?

The margin is HALF the interval. The interval is p̂ ± E; the margin is the E. News reports that quote “a margin of error of three points” are handing you half a width and trusting you to double it mentally — this page prints both.

Does the margin cover bias?

No. It is pure sampling noise at the stated level. A non-representative sample is wrong by however much the bias is, and no z* will price that. The margin says what randomness does to an honest sample — nothing more.

What level should I use?

Whatever your audience can be held to. 95% is convention; typing 90 or 99 recomputes z* by bisection. The honest statement names the level beside the margin — an unnamed level makes the margin unreproducible.

Why is z* computed live instead of 1.96?

Because the bisection is cheap and the six decimals are honest: z* for 95% is 1.959964, and the familiar 1.96 is its rounded shadow. The confidence-interval page runs the same engine, so margins there and here agree to the last digit.

Why plan the margin on p = 0.5 before any data exists?

Because the margin formula needs a proportion to price, and before collection the honest input is the worst case: p = 0.5 maximizes p(1−p), so its margin covers any outcome. After the data arrive, re-price with the observed p̂ — the sample-size page runs that planning question backwards.

Does the margin apply to rates, like errors per 1,000?

Only through their proportion form. A rate per thousand is a count over exposure, and small counts bend the normal approximation this page leans on — the chi-square and proportion pages describe where those boundaries sit.

Related Statistics Engines