Skip to main content
Calcimator

Margin of Error Calculator

Calculate the margin of error for your survey results based on sample size, confidence level, population size, and expected proportion.

About this calculator

This calculator estimates the Margin of Error for a survey statistic using the standard normal approximation: Margin of Error = z × √(Expected Proportion × (1 − Expected Proportion) / Sample Size) (lines 10, 17-18), then widens or narrows the interval with a Finite Population Correction when a positive Population Size at least as large as Sample Size is supplied (lines 21-25). At the calculator's defaults, Expected Proportion sits exactly at 50%, a stationary point of the p×(1−p) term where the first-order (linear) effect vanishes — a small nudge either side of 50% shifts p×(1−p) only to second order, so Margin of Error still moves, just by a tiny, symmetric amount: 5.00% at p=50%, versus 4.98% at both p=45% and p=55%, and 4.90% at p=60%. It's a stationary point, not a flat region — a symmetric ±10% probe around 50% reads zero because the two directions cancel exactly, not because Expected Proportion is inert; away from 50% the effect is larger and no longer symmetric.

Expected Proportion, not Sample Size, is what shifts the Lower and Upper Confidence Interval Bounds the most, since both are built by adding or subtracting the margin from Expected Proportion directly (lines 28-29). The z-score lookup only has exact entries for confidence levels 1 (90%), 2 (95%), and 3 (99%); anything else silently falls back to the 95% value. This calculator does not account for stratified or cluster sampling designs — it assumes simple random sampling, so a survey built on a clustered or stratified design needs the Design Effect from a calculator like Sampling Frame applied on top of this result.

Inputs

%

Results

Margin of Error

5%

Confidence Interval Lower45%
Confidence Interval Upper55%
Z-Score Used1.96
Finite Population Correction1
How to Use This Calculator
  1. Enter the sample size — the number of completed survey responses you have or plan to collect.
  2. Select the confidence level: 1 for 90%, 2 for 95%, or 3 for 99%.
  3. Enter the population size if known, or leave at 0 to treat the population as effectively infinite.
  4. Input the expected proportion or use 50% (most conservative) if unknown.
  5. Review the Margin of Error, Confidence Interval bounds, Z-Score used, and Finite Population Correction factor.
  6. Adjust the sample size or confidence level and compare results on the Margin of Error by Sample Size chart.

How the result changes with Sample Size

Sample SizeMargin of Error
1927.07%
2885.77%
5764.08%
9603.16%

What each input means

Sample Size
The number of completed survey responses you have or plan to collect.
Confidence Level
Select 1 for 90%, 2 for 95%, or 3 for 99%. Higher confidence requires a larger margin of error.
Population Size
Total size of the population being studied. Leave at 0 for infinite/unknown population.
Expected Proportion (%)
The expected proportion answering a certain way. Use 50% for maximum variability (most conservative estimate).

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Sample Size = 384, Confidence Level = 2, Population Size = 0, Expected Proportion (%) = 50 = 4 input(s) provided
  2. Calculate Margin of Error
    Margin of Error = m
    5 = 5
  3. Calculate Confidence Interval Lower
    Confidence Interval Lower
    45 = 45
  4. Calculate Confidence Interval Upper
    Confidence Interval Upper
    55 = 55

Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why does nudging Expected Proportion near 50% barely move the Margin of Error?

At its default of 50%, Expected Proportion sits at the peak of the p × (1 − p) term inside the standard error formula (line 17) — a stationary point where the first-order effect is zero, so a small nudge either side produces only a second-order change. It's real, just tiny and symmetric: Margin of Error is 5.00% at p=50%, 4.98% at both p=45% and p=55% (identical to each other, which is why a symmetric ±10% probe reads exactly zero there), and 4.90% at p=60%. Away from 50%, the effect grows and is no longer symmetric.

Does selecting a fractional Confidence Level, like 2.5, work correctly?

No — the engine looks up the z-score from a table keyed only by the exact integers 1, 2, and 3 (line 10), so any other numeric value, including 2.5, matches none of those keys and silently falls back to the 95% z-score of 1.96 (line 11) rather than interpolating or raising an error.

Why is the Finite Population Correction always 1 by default?

Population Size defaults to 0, and the correction factor only applies when Population Size is entered as a positive number at least as large as Sample Size (line 22) — with the field left at its default, fpcFactor stays fixed at 1 regardless of what you change Sample Size or Expected Proportion to.

Which input has the largest effect on the Confidence Interval's bounds?

Expected Proportion, since both the Lower and Upper Bound are computed by adding or subtracting the margin of error directly from the Expected Proportion percentage (lines 28-29) — a change to Expected Proportion shifts the whole interval, while Sample Size mainly narrows or widens its width.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.