A/B Test Statistical Significance Without the Jargon

What a p-value and confidence level mean in plain language, how to plan sample size, and why peeking at results early gives false winners.

By Utkarsh Garg · 2026-10-27 · 5 min read

What significance is asking

An A/B test compares two versions, usually by conversion rate. The key question is whether the difference you see is real or could easily be random noise. Statistical significance is a way of answering that.

The p-value is the probability of seeing a difference at least this large if the two versions were actually the same. A small p-value means the result would be unusual by luck alone. The common threshold is 0.05, which corresponds to a 95 percent confidence level.

What a result does not mean

A p-value below 0.05 does not mean there is a 95 percent chance that version B is better. It does not tell you how big the improvement is either. And a significant result can still be tiny. With a very large sample, a 0.1 percent lift can be statistically significant and still not worth the cost of the change. Always look at the size of the effect as well as the p-value.

Decide the sample size first

The most reliable tests fix their sample size before they start. Three inputs decide it: your current conversion rate, the smallest improvement you care about detecting, and how much risk of error you accept. Smaller improvements need far larger samples. Detecting a lift from 5.0 to 5.1 percent takes many times more visitors than detecting a lift from 5 to 6 percent.

If your site cannot reach the needed sample in a reasonable time, test a bigger change rather than a tiny tweak.

Do not stop the test when it first looks good

Checking the result every day and stopping the moment it crosses the threshold is called peeking, and it inflates false positives badly. Early results swing a lot, and if you give yourself many chances to see a winner, you will eventually see one that is not real.

Set the end date or sample size up front and judge the result only then. Also run tests for at least one full week, and ideally two, so that weekday and weekend behavior are both included.

Practical rules

These habits prevent most bad decisions.

  • Change one thing at a time so you know what caused the difference.
  • Split traffic randomly and keep each visitor in the same version.
  • Do not run the test during an unusual period, such as a big sale, unless the result is only meant for that period.
  • Record the result either way. A test that finds no difference is still useful information.
  • Treat a significant result as strong evidence, not as proof, and confirm important wins with a follow up test.

A worked example with real numbers

Version A, the current page, is shown to 10,000 visitors and 500 of them convert, which is 5.0 percent. Version B is shown to another 10,000 visitors and 600 convert, which is 6.0 percent. Is B really better?

Step one: pool the results. Together there are 1,100 conversions in 20,000 visitors, so the pooled rate is 5.5 percent.

Step two: work out the standard error of the difference. It is the square root of 0.055 x 0.945 x (1/10000 + 1/10000), which is about 0.00322, or 0.32 percentage points.

Step three: divide the observed difference by that error. The difference is 1.0 percentage point, so the z score is 0.01 / 0.00322, about 3.10.

Step four: convert to a p-value. A z score of 3.10 gives a two sided p-value of about 0.002. That is well below 0.05, so a gap this large would be very unlikely if the two pages truly converted at the same rate.

Now repeat it with 1,000 visitors per version and the same rates, 50 and 60 conversions. The z score falls to about 0.98 and the p-value rises to about 0.33. The rates are identical, but the smaller sample cannot rule out luck. This is why sample size matters as much as the observed lift.

How much traffic different lifts need

Approximate visitors needed per version, from a 5 percent baseline, at 95 percent confidence and 80 percent power
Target rateRelative liftVisitors per version
5.1 percent2 percentabout 752,700
5.5 percent10 percentabout 31,200
6.0 percent20 percentabout 8,200

Power is the chance of detecting a real lift of that size. These figures come from the standard two proportion formula. A calculator may differ a little depending on whether it uses a one sided or two sided test, so treat them as a guide to the order of magnitude.

Common mistakes and how to spot them

  • Testing many variants or many metrics at once. Each extra comparison is another chance for luck to look like a win. If you test ten metrics at the 0.05 level, one false win is not surprising. Pick one primary metric before you start.
  • Slicing the result after the fact. Finding that B won among mobile users in one city, when the overall result was flat, is a hypothesis for a new test, not a finding.
  • Uneven traffic split without checking it. If you planned 50 and 50 but see 52 and 48 on a large sample, something in the assignment is broken, and the result cannot be trusted.
  • Counting visitors who never saw the change. If only the checkout page changed, measure people who reached checkout, not everyone who landed on the site.
  • Reading a non significant result as proof of no effect. It usually means the test was too small to tell.

Frequently asked questions

  • What does a p-value of 0.03 mean? If the two versions were truly identical, you would see a difference this large or larger about 3 percent of the time by chance. It is not the chance that B is better.
  • Is 95 percent confidence always required? No. It is a convention. A low risk change might accept 90 percent, while a costly change might need 99 percent. Choose the level before the test.
  • How long should I run an A/B test? Until you reach the planned sample size, and for at least one full week so every weekday is covered. Do not stop early because the number looks good.
  • What if my result is not significant? You may keep the current version, run a longer test, or try a bigger change. The result tells you the effect, if any, is smaller than the test could detect.
  • Can I use a conversion rate test for revenue? Not this way. Revenue per visitor is not a yes or no outcome, so it needs a different test that compares averages.