Margin of Error Calculator

STATISTICS & PROBABILITY

Find the margin of error for a survey from its sample size, proportion, and confidence level. Enter the sample size and pick the confidence.

Margin of Error
—
Plus or minus.

Usage Tip

To halve the margin of error, you need about four times the sample size.

THE MATH
E = z × √(p(1 − p) ÷ n)
The plus-or-minus around a survey estimate
The margin of error is the plus-or-minus range around a survey result at a given confidence level.
It shrinks with larger samples and grows with higher confidence.
Enter the sample size and the proportion (50 percent is the most conservative).
Choose the confidence level.
The margin assumes simple random sampling.
Practical Notes

The margin of error describes how far a survey or sample result is likely to fall from the true value because of random sampling alone. It shrinks as the sample grows, but only with the square root of the sample size, so cutting the margin in half takes about four times as many responses.

The result only accounts for sampling variation. It says nothing about bias from a poorly chosen sample, badly worded questions, or people who did not respond. A narrow margin of error on a biased sample is still a misleading result, so check how the sample was collected before trusting the number.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.