Vibe Engines is free, interactive AI engineering & system design — runs in your browser. Pick a learning path
A/B Test Significance Calculator
An A/B test significance calculator using a two-proportion z-test. Enter the visitors and conversions for a control and a variant to get each conversion rate, the relative uplift, the z-score and two-tailed p-value, and a clear verdict on whether the result is statistically significant. Explains what significance does and does not tell you.
Control (A)
4.00%
Variant (B)
5.25%
An A/B test never hands you a clean answer. It hands you two noisy conversion rates and a question: is the gap real, or is it the same coin landing heads a few more times? This calculator answers that with the standard two-proportion z-test and shows every intermediate number, so the verdict is never a black box.
What it computes
Each group is a count of visitors n and a count of conversions c. The test measures how far apart the two rates are in units of their combined sampling noise:
p_A = c_A / n_A control conversion rate
p_B = c_B / n_B variant conversion rate
uplift = (p_B − p_A) / p_A relative change vs control
p_pool = (c_A + c_B) / (n_A + n_B)
SE = √( p_pool × (1 − p_pool) × (1/n_A + 1/n_B) )
z = (p_B − p_A) / SE
p = 2 × (1 − Φ(|z|)) two-tailed p-value
p_pool is the conversion rate you would expect in both groups if the variant changed nothing, which is the null hypothesis being tested. SE is the standard error of the difference under that assumption. Φ is the standard normal cumulative distribution, which the tool evaluates through a polynomial approximation of the error function accurate to within 0.00000015. The result is flagged significant when p is below 0.05.
A worked example
The defaults are 4,000 visitors with 160 conversions in control and 4,000 visitors with 210 conversions in the variant.
- Rates:
160 / 4,000 = 4.00%and210 / 4,000 = 5.25%, an absolute gap of 1.25 percentage points. - Uplift:
(0.0525 − 0.04) / 0.04 = 31.25%. Floating-point arithmetic lands a hair under that, so the widget prints 31.2%. - Pooled rate:
370 / 8,000 = 0.04625. - Standard error:
√(0.04625 × 0.95375 × 0.0005) = √0.00002206 = 0.004696. - z-score:
0.0125 / 0.004696 = 2.66. - p-value:
2 × (1 − Φ(2.66)) = 0.0078, below 0.05, so the verdict is significant.
The same two rates tell a different story at other sample sizes, which is the whole reason the test exists:
| Visitors per arm | Conversions A / B | z | p-value |
|---|---|---|---|
| 800 | 32 / 42 | 1.19 | 0.2339 |
| 2,000 | 80 / 105 | 1.88 | 0.0598 |
| 4,000 | 160 / 210 | 2.66 | 0.0078 |
| 8,000 | 320 / 420 | 3.76 | 0.0002 |
Assumptions and limits
- Independent, binary outcomes. Each visitor is counted once and either converts or does not. Revenue per visitor, or several conversions per user, needs a different test.
- Large enough counts. The normal approximation is reliable when each group has roughly ten or more conversions and ten or more non-conversions. With fewer, use an exact test.
- One fixed-horizon comparison. The test assumes the sample size was chosen in advance and read once, with one variant against one control. Testing several variants or metrics raises the chance that one looks significant by luck.
- Fixed threshold. The cut-off is 0.05, two-tailed, and cannot be changed in the widget. It does not compute power, a confidence interval or a required sample size.
- Valid inputs. Conversions must not exceed visitors; if they do, the rates pass 100% and the result is meaningless.
How to use the result
A significant p-value says the difference is unlikely to be noise if the variants were truly identical. It does not say there is a 95% chance the variant wins, and it says nothing about size. In the example, a quick 95% interval on the absolute gap runs from about 0.33 to 2.17 percentage points, so the true relative lift could plausibly be anywhere from roughly 8% to 54%. Plan from the low end, not the headline 31%.
- Size the test first. For 80% power at the 5% level, a common rule is
16 × p × (1 − p) / δ²visitors per arm, whereδis the absolute lift you care about. For this example that is about 3,900, which is why 4,000 per arm was just enough. - Ship when the result is significant, the effect is worth the cost of the change, and guardrail metrics such as refunds or latency did not get worse.
- Inconclusive is an answer. Do not keep adding traffic until the number crosses 0.05. Either run to a larger sample you committed to in advance, or record that the change made no detectable difference.
When to use it, and when not
Use it to read a finished experiment: one control, one variant, a yes-or-no outcome per visitor, and a sample size fixed before launch. It also works as a quick check on a dashboard claim. Type in the raw counts behind “the new page converts 20% better” and see whether the gap survives its own noise.
Reach for something else when the question changes shape. Deciding when to stop a live test needs a sequential method. Three or more variants need a correction for multiple comparisons. Averages such as revenue per visitor or session length need a test on means, such as a t-test or a bootstrap. Under about ten conversions in either group, use an exact test.
Trade-offs and limits
The arithmetic is rarely what goes wrong. The test is exact about one narrow question, and most bad calls come from asking it a different one:
| What the test ignores | Effect | How much |
|---|---|---|
| Repeated looks at the p-value | More false wins | Stopping at the first p < 0.05: about 14% false positives over 5 equal looks, 25% over 20 (simulated, no real effect) |
| Several metrics or variants | One wins by luck | 10 independent metrics, no real effect: 40% chance at least one shows p < 0.05 |
| An uneven split | Less power, still valid | The default 8,000 visitors split 2,000 / 6,000 at the same rates: z drops from 2.66 to 2.23 |
| Visits counted instead of users | p too small | A returning visitor’s visits are correlated, so the real sample is smaller than the count |
| Novelty and weekly cycles | Wrong effect size | A first-week lift can fade; run whole weeks and compare early and late lift |
Common mistakes
- Stopping the moment it turns green. A p-value wanders as data arrive and dips under 0.05 by chance. Checking five times and stopping at the first dip gives about a 14% false-positive rate, not 5%.
- Reading p as the chance the variant wins. p = 0.0078 means a gap this large would appear under 1% of the time if the two pages were identical. It is not a 99.2% chance of a win, and it says nothing about the size of the win.
- Ignoring a sample ratio mismatch. A 50/50 split that arrives as 4,000 and 4,300 visitors is itself a warning: a chi-square test on those counts gives p ≈ 0.001. Assignment or logging is broken somewhere, and the conversion result cannot be trusted until it is found.
- Checking many metrics and reporting the winner. Name one primary metric before launch. The rest are guardrails, or leads for the next test.
- Calling “not significant” a failure. The 2,000-per-arm row above has the same 31% lift as the default and p = 0.0598. The test was too small to tell, which is not the same as the change doing nothing.
Check yourself
Control: 10,000 visitors, 500 conversions. Variant: 10,000 visitors, 560. A 12% lift on 20,000 visitors. Significant?
No. Rates 5.00% and 5.60%, pooled 1,060 / 20,000 = 0.053. SE = √(0.053 × 0.947 × 0.0002) = 0.003168, so z = 0.006 / 0.003168 = 1.89 and p = 0.058. The sizing rule asks for 16 × 0.05 × 0.95 / 0.006² ≈ 21,111 visitors per arm to detect a 0.6-point gap, more than twice what this test had.
Same rates as the default, same 8,000 visitors, but split 2,000 control (80 conversions) and 6,000 variant (315). What changes?
Pooled rate 395 / 8,000 = 0.049375. SE = √(0.049375 × 0.950625 × (1/2,000 + 1/6,000)) = 0.005594, so z = 0.0125 / 0.005594 = 2.23 and p = 0.025. Still significant, but weaker: the smaller group sets most of the noise. For a fixed total, an even split gives the most power.
Swap the default counts so control has 210 conversions and the variant 160. What does the tool report?
z = −2.66 and the same p = 0.0078, because the test is two-tailed and uses |z|. The verdict is still significant, but now it names the control as ahead. A two-tailed test catches harm as readily as help.
There is no real effect, and you check the p-value once a day for 10 days, stopping at the first reading below 0.05. Roughly how often do you declare a winner?
About 19% of the time, nearly four times the 5% you think you are running. Each look is another chance for noise to cross the line, and you only need one crossing. Fix the sample in advance, or use a sequential test whose threshold accounts for every look.
How it works
- Pooled two-proportion z-test on control vs variant conversions.
- Shows both conversion rates, relative uplift, z-score and two-tailed p-value.
- Flags significance at p < 0.05, the 95% confidence level.
- Reminds you that significance ≠ a meaningful effect size.
Frequently asked questions
What does statistical significance mean here?
It asks: if the two variants were actually identical, how often would random chance alone produce a difference at least this large? That probability is the p-value. The usual threshold is 0.05, and below it the result is called statistically significant, meaning the gap is hard to explain as noise at your sample size. It is not the probability that the variant is better, and it is not proof of a large effect. It is evidence that the observed difference is unlikely to be pure chance.
How is the p-value computed?
The calculator runs a pooled two-proportion z-test. It pools both groups into one conversion rate, uses that to compute the standard error of the difference between the two rates, and divides the observed difference by it to get a z-score. The two-tailed p-value is the probability of a z-score at least that extreme in either direction under the standard normal curve, which is 2 times (1 minus the normal CDF of the absolute z). It is the standard test for two conversion rates with reasonably large samples.
How many visitors do I need for an A/B test?
A common rule of thumb for 80% power at a 5% significance level is about 16 times p times (1 minus p), divided by the squared absolute difference you want to detect, per variant. For a 4% baseline and a lift to 5.25%, that is 16 times 0.0384 divided by 0.0125 squared, or roughly 3,900 visitors per arm. Halving the lift you want to detect quadruples the sample, which is why small improvements need very large tests. Fix the number before the test starts.
Why can a result flip if I keep peeking?
Because significance testing assumes you fixed your sample size in advance. If you check the p-value repeatedly and stop the moment it dips below 0.05, you inflate the false-positive rate well above 5%, since a random walk crosses the threshold temporarily all the time. Decide the sample size before the test, run to it, then evaluate once. If you need to monitor continuously, use a sequential method designed for it rather than re-reading this fixed-horizon test every day.
Is this a one-tailed or two-tailed test?
Two-tailed. The p-value counts differences as extreme as yours in either direction, so it asks whether the variant is different, not only whether it is better. That is the safer default, because a change can hurt conversion as easily as help it. A one-tailed test would halve the p-value for a lift in the expected direction, but it should only be chosen before the data arrive, never after seeing which way the result went.
Is significance the same as a meaningful result?
No. With a huge sample, a tiny, business-irrelevant difference can be highly significant; with a small sample, a large real effect can miss significance. Always look at the effect size, meaning the actual uplift and the range it plausibly covers, not just the p-value, and ask whether the change is big enough to matter. Statistical significance answers whether the gap is probably real, not whether it is worth shipping, and you need both answers before you decide.