What Is a Margin of Error? Definition, Formula & Examples

First published Nov 11, 2024Updated August 19, 20269 min read
Valentin Radu, Founder and CEO of Omniconvert
Valentin Radu
Founder & CEO, Omniconvert · Author, The CLV Revolution
Published: Nov 11, 2024Updated: Aug 19, 2026
Reviewed by Cristina Stefanova, Head of Content
Quick Answer
A margin of error is the range around a sample estimate within which the true value for the whole population is likely to fall, at a stated confidence level (usually 95%). Because a sample is not the whole population, its result is an estimate, not the exact truth, and the margin of error quantifies that uncertainty: 60% preference with a margin of error of plus or minus 3 points at 95% confidence means the true figure is very likely between 57% and 63%. For a proportion, margin of error = z times the square root of p(1-p)/n, where p is the proportion, n the sample size, and z is 1.96 for 95% confidence, so with p = 0.5 and n = 1,000 the margin of error is about plus or minus 3.1 points. Precision comes from sample size through a square root, so halving the margin of error means roughly quadrupling the sample, and higher confidence widens the interval. It matters most in A/B testing: a conversion difference that sits inside the margin of error is noise, not a result, which is why calling a winner early is a costly mistake. Omniconvert Explore reports significance and confidence per experiment, across 70,000+ experiments and 7,000+ websites, with 23.2% average uplift.
Key Takeaways
  • A margin of error is the range around a sample estimate within which the true population value likely falls, at a stated confidence level (usually 95%).
  • For a proportion, margin of error = z times the square root of p(1-p)/n; with p = 0.5, n = 1,000 and z = 1.96 that is about plus or minus 3.1 percentage points.
  • Precision comes from sample size through a square root, so halving the margin of error means roughly quadrupling the sample; higher confidence widens the interval.
  • It matters most in A/B testing: a conversion difference that sits inside the margin of error is noise, not a result, so calling a winner early is a common, costly mistake.
  • Report the margin of error with every sample estimate; Omniconvert Explore reports significance and confidence per experiment, with 23.2% average uplift.
7,000+ websites 15+ industries 70,000+ experiments 23.2% average uplift

Any number drawn from a sample, a survey result, a poll, an A/B test conversion rate, is an estimate, not the exact truth. Ask a different thousand people and you would get a slightly different figure. The margin of error is the number that admits this honestly: it is the range around an estimate within which the real value likely sits. Ignore it and a difference that is pure chance can look like a discovery. This guide explains what a margin of error is, gives the formula for a proportion with a worked example, shows what makes it wider or narrower, explains why it is decisive in A/B testing, and shows how Omniconvert Explore reports significance so you act on real differences, drawing on 70,000+ experiments across 7,000+ websites in 15+ industries [CROBenchmark Report 2026, Omniconvert].

The formulas here are standard statistics, not Omniconvert figures. One idea ties them together: a difference smaller than the margin of error is not a result, it is noise.

What a margin of error is

A margin of error is the range around a sample estimate within which the true population value is likely to fall, at a stated confidence level (usually 95%). Because a sample is not the whole population, its result is an estimate, not the exact truth, and a different sample would give a slightly different result; the margin of error quantifies that uncertainty. If a survey finds 60% preference with a margin of error of plus or minus 3 points at 95% confidence, the true figure is very likely between 57% and 63%. It is always tied to a confidence level, which says how often the interval would contain the true value if you repeated the study many times. A smaller margin of error means a more precise estimate; a larger one means more uncertainty. It is one of the most important, and most often ignored, numbers behind any sample result.

A margin of error is the range around a sample estimate within which the true value for the whole population is likely to fall, at a stated level of confidence. When you measure something from a sample rather than the entire population, a survey of 1,000 customers, an A/B test on a fraction of your traffic, the number you get is an estimate, not the exact truth, because a different sample would give a slightly different result. The margin of error quantifies that uncertainty.

If a survey finds that 60% of customers prefer a feature with a margin of error of plus or minus 3 percentage points at 95% confidence, it means the true figure is very likely between 57% and 63%. The margin of error is always tied to a confidence level, usually 95%, which says how often the interval would contain the true value if you repeated the study many times. A smaller margin of error means a more precise estimate; a larger one means more uncertainty, and how you get one or the other comes straight from the formula.

The formula, with an example

For a proportion, margin of error = z times the square root of p(1-p)/n, where p is the observed proportion, n the sample size, and z the critical value for the confidence level (1.96 for 95%, 2.58 for 99%). Worked example: with p = 0.5 and n = 1,000, the standard error is the square root of (0.5 x 0.5 / 1,000) which is about 0.0158, and 1.96 x 0.0158 gives about 0.031, or plus or minus 3.1 percentage points. Two things follow. Precision comes from sample size through a square root, so halving the margin of error means roughly quadrupling the sample. And the margin of error is largest near a proportion of 50%, which is why 0.5 is often used as a conservative worst-case assumption when planning a study.

For a proportion, the margin of error is the critical z-value for your confidence level multiplied by the standard error of the proportion:

margin of error = z × √(p(1 − p) / n)

Here p is the observed proportion (for example 0.5 for 50%), n is the sample size, and z is the number of standard deviations for the confidence level: 1.96 for 95% confidence, 2.58 for 99%. A worked example: with an observed proportion of 0.5 and a sample of 1,000, the standard error is √(0.5 × 0.5 / 1,000) ≈ 0.0158, and multiplying by 1.96 gives a margin of error of about 0.031, or plus or minus 3.1 percentage points.

Two things fall out of the formula. First, precision comes from sample size through a square root, so to halve the margin of error you must roughly quadruple the sample. Second, the margin of error is largest when the proportion is near 50%, which is why 0.5 is often used as a conservative, worst-case assumption when planning a study. Those two facts explain everything about what moves the number.

What makes it larger or smaller

Three things drive the size of a margin of error: sample size, confidence level, and variability. Sample size is the lever you usually control: a larger sample gives a smaller margin of error, but through a square root, so quadrupling the sample only halves it and precision gets expensive. Confidence level sets how sure you want to be, and higher confidence widens the interval: a 99% margin of error is wider than a 95% one for the same data. Variability is the spread; for a proportion, uncertainty is greatest near 50% and shrinks toward 0% or 100%. So you narrow a margin of error mainly by collecting more data and widen it by demanding higher confidence, a genuine trade-off between precision and certainty that only more data can ease.

Three factors set the size of a margin of error:

Source: Omniconvert. What drives the margin of error.
Factor Effect on the margin of error Practical note
Sample size (n) Larger n → smaller margin of error Enters through a square root; quadruple n to halve it
Confidence level Higher confidence → wider margin of error 99% is wider than 95% for the same data
Variability (proportion) Greatest near 50%, smaller toward 0% or 100% Use p = 0.5 as the conservative worst case when planning

So you narrow a margin of error mainly by collecting more data, and you widen it by demanding higher confidence, a real trade-off between precision and certainty. Nowhere does that trade-off bite harder than in an A/B test.

Why it matters in A/B testing

Margin of error matters in A/B testing because every conversion rate in a test is a sample estimate, and the margin of error tells you how much to trust it. If variation B converts at 5% and the control at 4%, that looks like a win, but if each estimate carries a margin of error of plus or minus 1.5 points, the ranges overlap heavily and the difference could be noise. Only when the samples are large enough that the margins of error are small, and the difference is bigger than that uncertainty, can you trust the result. This is what statistical significance expresses: a significant result is one unlikely to be explained by sampling variation alone. The lesson: run tests to an adequate sample size and significance rather than calling a winner early on a difference inside the margin of error, one of the most common and costly mistakes in experimentation.

Margin of error matters in A/B testing because every conversion rate you measure is a sample estimate, not an exact truth, and the margin of error tells you how much to trust it. Suppose variation B converts at 5% and the control at 4%. That looks like a win, but if each estimate carries a margin of error of plus or minus 1.5 percentage points, the two ranges overlap heavily and the apparent difference could easily be noise. Only when the samples are large enough that the margins of error are small, and the difference between variations is bigger than that uncertainty, can you trust the result.

This is the same idea that statistical significance and confidence intervals express: a significant result is one where the observed difference is unlikely to be explained by sampling variation alone. The practical lesson is to run tests until they reach an adequate sample size and significance, rather than calling a winner early on a difference that sits inside the margin of error, one of the most common and costly mistakes in experimentation. Which raises the natural question: how do you make the margin of error small enough?

How to reduce it

The main way to reduce a margin of error is to increase the sample size, but through a square root, so gains diminish: halving it means roughly quadrupling the sample, and cutting it to a third needs about nine times the data. Beyond more data, you can lower the confidence level if a little less certainty is acceptable (a 90% interval is narrower than 95%, though 95% is standard), or reduce variability where the design allows, for example by measuring a more homogeneous group. What you cannot do is wish it away: a small sample carries real uncertainty, and reporting an estimate without its margin of error hides that. The honest approach is to plan the sample size for the precision you need before you start, and to report the margin of error alongside every estimate drawn from a sample.

The main way to reduce a margin of error is to increase the sample size, but because sample size enters through a square root, the gains diminish, so be deliberate. To halve the margin of error you must roughly quadruple the sample; to cut it to a third you need about nine times the data. Beyond collecting more, you can lower the confidence level if a little less certainty is acceptable, since a 90% interval is narrower than a 95% one, though most work keeps 95% as the standard. You can also reduce variability where the study design allows, for example by measuring a more homogeneous group or a metric with less spread.

What you cannot do is wish the margin of error away: a small sample carries real uncertainty, and reporting an estimate without its margin of error hides that. The honest approach is to plan the sample size for the precision you need before you start, and to report the margin of error alongside every estimate, which is exactly the discipline a good testing tool enforces.

Margin of error with Omniconvert Explore

Margin of error is why an A/B result can look convincing and still be noise, and Omniconvert Explore is designed to keep you on the right side of that line. Explore is an A/B testing and experimentation platform that reports statistical significance and confidence for each experiment, the applied form of the margin-of-error idea: it tells you whether the difference between a variation and the control is large enough, relative to the uncertainty in the samples, to be trusted rather than explained by chance. That steers you away from calling a winner early on a difference inside the margin of error. Its segmentation helps too: each slice is a smaller sample with a wider margin of error, and reading significance per segment keeps you from over-interpreting a thin slice. Across 70,000+ experiments and 7,000+ websites, with 23.2% average uplift.

Margin of error is the reason an A/B test result can look convincing and still be noise, and Omniconvert Explore is designed to keep you on the right side of that line. Explore is an A/B testing and experimentation platform that reports statistical significance and confidence for each experiment, the applied form of the margin-of-error idea: it tells you whether the difference between a variation and the control is large enough, relative to the uncertainty in the samples, to be trusted rather than explained by chance.

Because Explore surfaces this, you are steered away from the classic mistake of calling a winner early on a difference that actually sits within the margin of error, before the samples are big enough to be sure. Its segmentation is useful here too: when you slice results by audience, each segment is a smaller sample with a wider margin of error, and reading significance per segment keeps you from over-interpreting a thin slice. Drawing on more than 70,000 experiments across 7,000+ websites, with an average uplift of 23.2%, Explore helps you act on differences that are real, not on noise inside the margin of error.

Ready to trust your test results instead of guessing at them?

See how Omniconvert Explore reports significance →

Frequently Asked Questions

1What is a margin of error?

A margin of error is the range around a sample estimate within which the true value for the whole population is likely to fall, at a stated level of confidence. When you measure something from a sample rather than the entire population, a survey of 1,000 customers, an A/B test on a fraction of your traffic, the number you get is an estimate, not the exact truth, because a different sample would give a slightly different result. The margin of error quantifies that uncertainty. If a survey finds that 60% of customers prefer a feature with a margin of error of plus or minus 3 percentage points at 95% confidence, it means the true figure is very likely between 57% and 63%. The margin of error is always tied to a confidence level, usually 95%, which says how often the interval would contain the true value if you repeated the study many times. A smaller margin of error means a more precise estimate; a larger one means more uncertainty. It is one of the most important, and most often ignored, numbers behind any result drawn from a sample.

2What is the formula for margin of error?

For a proportion, the margin of error is the critical z-value for your confidence level multiplied by the standard error of the proportion: margin of error = z × √(p(1 − p) / n). Here p is the observed proportion (for example 0.5 for 50%), n is the sample size, and z is the number of standard deviations for the confidence level, which is 1.96 for 95% confidence and 2.58 for 99%. A worked example: with an observed proportion of 0.5 and a sample of 1,000, the standard error is √(0.5 × 0.5 / 1,000) ≈ 0.0158, and multiplying by 1.96 gives a margin of error of about 0.031, or plus or minus 3.1 percentage points. Two things fall out of the formula. First, precision comes from sample size through a square root, so to halve the margin of error you must roughly quadruple the sample. Second, the margin of error is largest when the proportion is near 50%, which is why a proportion of 0.5 is often used as a conservative, worst-case assumption when planning a study.

3What makes a margin of error larger or smaller?

Three things drive the size of a margin of error: the sample size, the confidence level, and the variability in the data. Sample size is the lever you usually control. A larger sample gives a smaller margin of error, but because it enters the formula through a square root, the return diminishes: quadrupling the sample only halves the margin of error, so precision gets expensive. Confidence level sets how sure you want to be, and higher confidence widens the interval: a 99% margin of error is wider than a 95% one for the same data, because being more certain that the interval contains the true value means casting a wider net. Variability is the spread in what you are measuring; for a proportion, uncertainty is greatest near 50% and shrinks as the proportion moves toward 0% or 100%. So you narrow a margin of error mainly by collecting more data, and you widen it by demanding higher confidence, a genuine trade-off between precision and certainty that no amount of analysis can escape, only more data can.

4Why does margin of error matter in A/B testing?

Margin of error matters in A/B testing because every conversion rate you measure in a test is a sample estimate, not an exact truth, and the margin of error tells you how much to trust it. Suppose variation B converts at 5% and the control at 4%. That looks like a win, but if each estimate carries a margin of error of plus or minus 1.5 percentage points, the two ranges overlap heavily and the apparent difference could easily be noise. Only when the samples are large enough that the margins of error are small, and the difference between variations is bigger than that uncertainty, can you trust the result. This is the same idea that statistical significance and confidence intervals express: a significant result is one where the observed difference is unlikely to be explained by sampling variation alone. The practical lesson is to run tests until they reach an adequate sample size and significance, rather than calling a winner early on a difference that sits inside the margin of error, which is one of the most common and costly mistakes in experimentation.

5What is the difference between margin of error and confidence level?

They are two parts of the same statement and are always used together, but they answer different questions. The confidence level is how sure you are, expressed as a percentage, usually 95%. It describes the reliability of the method: if you repeated the study many times, about 95% of the intervals you built would contain the true population value. The margin of error is how wide the interval is, expressed in the units of what you measured, such as plus or minus 3 percentage points. It describes the precision of this particular estimate. A complete result needs both: 60% preference, plus or minus 3 points, at 95% confidence, ties the estimate to a precision and a reliability. The two are linked: for the same data, asking for a higher confidence level widens the margin of error, because being more certain that the range contains the truth forces the range to be wider. So confidence level is your chosen certainty, and margin of error is the precision you get as a result, at that certainty and that sample size.

6How do you reduce the margin of error?

The main way to reduce a margin of error is to increase the sample size, but because sample size enters the formula through a square root, the gains diminish, so it pays to be deliberate. To halve the margin of error you must roughly quadruple the sample, and to cut it to a third you need about nine times the data, which is why chasing a very tight margin can be costly. Beyond collecting more data, you can lower the confidence level if a little less certainty is acceptable, since a 90% interval is narrower than a 95% one, though most work keeps 95% as the standard. You can also reduce variability where the study design allows, for example by measuring a more homogeneous group or a metric with less spread, which tightens the interval for the same sample size. What you cannot do is wish the margin of error away: a small sample carries real uncertainty, and reporting an estimate without its margin of error hides that. The honest approach is to plan the sample size for the precision you need before you start, and to report the margin of error alongside every estimate drawn from a sample.

7How does Omniconvert Explore handle margin of error?

Margin of error is the reason an A/B test result can look convincing and still be noise, and Omniconvert Explore is designed to keep you on the right side of that line. Explore is an A/B testing and experimentation platform that reports statistical significance and confidence for each experiment, which is the applied form of the margin-of-error idea: it tells you whether the difference between a variation and the control is large enough, relative to the uncertainty in the samples, to be trusted rather than explained by chance. Because Explore surfaces this, you are steered away from the classic mistake of calling a winner early on a difference that actually sits within the margin of error, before the samples are big enough to be sure. Its segmentation is useful here too: when you slice results by audience, each segment is a smaller sample with a wider margin of error, and reading significance per segment keeps you from over-interpreting a thin slice. Drawing on more than 70,000 experiments across 7,000+ websites, with an average uplift of 23.2%, Explore helps you act on differences that are real, not on noise inside the margin of error.

The takeaway

A margin of error is the honesty of a sample. Whenever you measure something from a sample rather than the whole population, a survey of a thousand customers, an A/B test on part of your traffic, the number you get is an estimate, and the margin of error is the range around it within which the true value likely falls, at a stated confidence level. The formula makes the trade-offs plain: precision comes from sample size through a square root, so halving the margin of error means roughly quadrupling the data, and higher confidence buys certainty at the cost of a wider interval. The practical stakes are highest in experimentation. Every conversion rate in an A/B test is a sample estimate, and a difference that sits inside the margin of error is not a result, it is noise, which is why calling a winner early is such a common and costly mistake. The discipline is simple to state: report the margin of error with every estimate, plan the sample for the precision you need, and trust a difference only when it is larger than the uncertainty around it.

Valentin Radu, Founder and CEO of Omniconvert
Founder & CEO, Omniconvert
Valentin Radu is the founder and CEO of Omniconvert. He is an entrepreneur, data-driven marketer, CRO expert, CVO evangelist, international speaker, father, husband, and pet guardian. Valentin is also an Instructor at the Customer Value Optimization (CVO) Academy, an educational project that aims to help companies understand and improve Customer Lifetime Value.

A difference smaller than the margin of error is noise, not a result. See how Omniconvert Explore reports significance and confidence for every experiment, so you act on real differences.

See Omniconvert Explore →

Act on real differences, not noise, with Omniconvert Explore

Every conversion rate in a test is a sample estimate with a margin of error. Omniconvert Explore reports statistical significance and confidence for each experiment, so you trust a difference only when it is bigger than the uncertainty, not before.