Free tool

A/B Test Significance Calculator

Your test is finished — but did the variant actually win? Enter the visitors and conversions for each version and see the p-value, the confidence interval and a plain-English verdict. Everything is calculated in your browser as you type.

+20.0%

The variant beats the control — the difference is statistically significant.

p = 0.0283 at 95% confidence

Control rate
5.00%
Variant rate
6.00%
p-value
0.0283
Difference range
+0.1% … +1.9%

The math

How statistical significance is calculated for an A/B test

The calculator runs a two-proportion z-test, the standard test for comparing two conversion rates:

  • Conversion rates: p₁ = conversions A ÷ visitors A and p₂ = conversions B ÷ visitors B.
  • Pooled rate, assuming for the moment that A and B are the same: p = (conversions A + conversions B) ÷ (visitors A + visitors B).
  • Standard error of the difference: SE = √[p(1 − p) × (1/n₁ + 1/n₂)].
  • Test statistic: z = (p₂ − p₁) ÷ SE. The p-value is the chance of a z at least this far from zero if there were no real difference.

Worked example: the default inputs

  • A: 250 conversions from 5,000 visitors = 5.00%. B: 300 from 5,000 = 6.00%. That is a 20% relative lift.
  • Pooled rate: 550 ÷ 10,000 = 0.055.
  • SE = √(0.055 × 0.945 × (1/5,000 + 1/5,000)) ≈ 0.00456.
  • z = 0.01 ÷ 0.00456 ≈ 2.19, which gives a two-sided p-value of 0.0283.

0.0283 is below 0.05, so at 95% confidence B is a significant winner. At 99% confidence it is not: that needs p below 0.01.

Reading the result

What the p-value, lift and confidence interval each tell you

  • p-value. How surprising the gap would be if A and B were really identical. It says nothing about how big the effect is. A tiny, useless lift can have a tiny p-value on enough traffic.
  • Lift. The relative change from A to B: (6.00% − 5.00%) ÷ 5.00% = +20% in the example. It is your best single estimate, but it is noisy.
  • Confidence interval. The range of true differences that fit the data, in percentage points. For the example at 95% it runs from about +0.1 to +1.9 points: B is better, but the real gain could be anywhere from almost nothing to nearly double what you measured. Use it to decide whether the change is worth shipping, not only whether it is real.

If the interval crosses zero, the result is not significant at that confidence level. At 99% the example’s interval is −0.2 to +2.2 points, which is exactly why it fails there.

Sample size

Why the same lift can be significant or not

The same 5% → 6% result (a 20% lift), with different numbers of visitors in each variant:

Visitors per variantzp-value (two-sided)95% interval (points)
1,0000.980.327−1.0 to +3.0
2,5001.550.121−0.3 to +2.3
5,0002.190.028+0.1 to +1.9
10,0003.100.002+0.4 to +1.6
20,0004.39< 0.0001+0.6 to +1.4

A “not significant” result at 1,000 visitors does not mean B made no difference. It means the test was too small to tell. Work out the traffic you need before launching with the sample size calculator: a 20% lift on a 5% baseline needs 8,156 visitors per variant at 95% confidence and 80% power.

Before you ship

Checks to run before you trust a significant result

  • You reached the planned sample. Stopping the first time p dips under 0.05 inflates false positives well beyond 5%. Read the result once, at the sample size you chose up front.
  • The split is what you set. On a 50/50 test, 5,000 vs 4,700 visitors is too uneven to be chance (chi-square p ≈ 0.002). A sample ratio mismatch usually means a redirect, a bot filter or a tracking bug is dropping one variant’s visitors, and the conversion rates cannot be trusted.
  • It ran whole weeks. Weekday and weekend visitors convert differently; a test that ends mid-week over-weights some days.
  • The lift is worth having. Look at the low end of the interval. If the smallest plausible gain would not pay for the change, a significant result is not a reason to ship it.
  • You did not go looking for it. Slicing a flat test by device, country and source until one segment turns significant is a reliable way to find a false positive. Test a segment only if you planned to.

No winner

What to do when the result is not significant

  • Check whether the test could have found the effect. If you had fewer visitors than the sample size calculator asks for, the test was underpowered and the honest verdict is “unknown”, not “no difference”.
  • Read the interval. An interval of −0.3 to +2.3 points rules out a large loss but leaves a worthwhile gain possible. That can still justify shipping a low-risk change, as a judgment call rather than a test result.
  • Do not keep extending the test. Adding traffic until it turns significant is peeking with extra steps. Plan a new test with a bigger change or a busier page instead.
  • Find out why nothing moved. Watch session replays of visitors in each variant and check where the funnel loses them. A variant nobody noticed is a different problem from one people noticed and ignored.

FAQ

About statistical significance

What does statistical significance actually mean?

It means the difference you measured is unlikely to be a fluke. A p-value of 0.03 says that if the two versions were really identical, you would see a gap this big (or bigger) about 3% of the time. It is evidence that something changed — not proof, and not a measure of how big the change is.

Which p-value counts as a winner?

The convention is p below 0.05, which matches 95% confidence. Raise the bar to 99% when the change is expensive to ship or hard to reverse, and accept 90% for low-risk copy tweaks where being roughly right quickly is worth more than being certain slowly.

Can I stop the test the moment it turns significant?

No. Checking repeatedly and stopping at the first green result — peeking — inflates false positives badly. Decide the sample size before you launch, run to it, then read the result once. The sample size calculator gives you that number.

Does this calculator send my data anywhere?

No. The whole test runs in your browser with plain JavaScript. Nothing you type is uploaded, logged or stored, and the page works offline once loaded.

How do you calculate statistical significance for an A/B test?

Use a two-proportion z-test. Compute each conversion rate, the pooled rate across both variants, and the standard error √[p(1 − p)(1/n₁ + 1/n₂)]. Divide the difference in rates by the standard error to get z, and convert z to a p-value. 250/5,000 against 300/5,000 gives z ≈ 2.19 and a two-sided p-value of 0.028, significant at 95%.

What is a p-value in A/B testing?

The probability of seeing a difference at least as large as the one you measured if the two versions actually performed the same. A p-value of 0.03 means a gap this big would show up about 3% of the time by chance alone. It is not the probability that B is better, and it does not measure the size of the effect.

Why is my test not significant when B converted better?

Usually because the sample is too small for the size of the difference. A 5% → 6% result is not significant with 2,500 visitors per variant (p = 0.12) but is with 5,000 (p = 0.028). Check the planned sample size before reading a flat result as “no effect”.

Should I use a one-sided or two-sided test?

Two-sided, unless you decided before the test that a loss and no change would lead to the same decision. One-sided halves the p-value when B is ahead (0.028 becomes 0.014 in the default example), which is why switching to it after seeing the data is not legitimate.

Can I use this calculator for more than two variants?

Yes, by comparing each variant with control separately. Each extra comparison raises the chance of a false winner, so use a stricter threshold per comparison: for two variants against control, test each at 97.5% confidence instead of 95%.

Related

More from PulsePanda

See why the winner won

A p-value tells you that something changed. PulsePanda's session replay, heatmaps and funnels tell you what people actually did.

Start for free