What statistical significance tells you
In an A/B test, or split test, you show two versions of a page, email or ad to similar visitors and count how many of each group convert. Variant B will almost never land on exactly the same conversion rate as A, even if the change made no difference at all, because visitors behave randomly. Statistical significance answers one question: is the gap big enough that chance alone is an unlikely explanation?
The p-value is the probability of seeing a difference at least this large if A and B actually performed the same. A small p-value means the result would be surprising under "no real difference", so you conclude that B is really better (or worse). At 95% confidence the p-value has to be below 0.05.
This calculator runs a two-proportion z-test. The pooled standard error is √(p × (1 − p) × (1 ÷ nA + 1 ÷ nB)), where p is the combined conversion rate of both groups. The z-score is turned into a p-value with the normal distribution. The confidence interval for the difference uses each group's own rate.
An example
Variant A had 10,000 visitors and 500 conversions, a 5.00% conversion rate. Variant B had 10,000 visitors and 580 conversions, 5.80%. That is an absolute uplift of 0.80 percentage points and a relative uplift of 16%. The z-score is 2.50 and the two-sided p-value is 0.0123, below 0.05, so B wins with 95% confidence. The 95% confidence interval for the difference runs from about +0.17 to +1.43 points: B is very likely better, but the real lift could be much smaller than the 0.80 points you measured.
Common mistakes
- Peeking and stopping early. If you check every day and stop the moment the result turns significant, you will crown far more false winners than your confidence level suggests. Fix the sample size first and stick to it.
- Samples that are too small. With a few hundred visitors only huge differences can reach significance, and a lift that does reach it in a small test tends to overstate the true effect. Use the sample size helper before you launch.
- Running too short. Visitors on a Monday morning can behave differently from those on a Saturday night. Run tests for whole weeks, even if you reach the sample size sooner.
- Testing many things at once. Compare ten independent variants or metrics at 95% confidence and the chance that at least one looks significant by luck alone is about 40% (1 − 0.95¹⁰). Pick one main metric before the test.
- Treating "not significant" as "no difference". It only means the data cannot tell yet. The confidence interval shows how large or small the true effect could still be.
Testing more than two variants
Click Add variant to test up to five versions at once, often called an A/B/n test. Each variant is compared with control A using the same z-test as above. The catch: every comparison is another chance for a false winner. With m comparisons, each at a significance level α (1 minus the confidence level), the chance that at least one looks significant by luck can be as high as m × α. The Bonferroni adjustment tests each comparison at α ÷ m instead, which keeps that chance at or below α. It is on by default, and you can switch it off to see the plain results.
Example: A has 10,000 visitors and 500 conversions, and B, C and D have 580, 540 and 610 conversions from 10,000 visitors each. At 95% confidence the Bonferroni threshold is 0.05 ÷ 3 ≈ 0.0167. B has a p-value of 0.0123 and D one of 0.0007, so both beat A. C, at 0.2027, is not significant.
The chance to beat A is a Bayesian figure shown next to the p-value. Each conversion rate gets a Beta(1 + conversions, 1 + visitors − conversions) distribution, which is what a uniform prior updated with your data gives. The calculator integrates the two distributions numerically to get the probability that the variant's true rate is higher than A's: 99.4% for B, 89.9% for C and 100.0% for D in the example. It is computed without random sampling, so the number does not change between visits. It does not depend on the confidence level, and it is shown for a plain A/B test too.
How many visitors you need
The sample size depends on your baseline conversion rate, the minimum detectable effect (the smallest relative lift worth finding), the confidence level and the power. Power is the chance of detecting a real effect of that size; 80% is the common default. Visitors needed per variant at 95% confidence, two-sided, 80% power:
| Baseline rate | Lift to detect | Visitors per variant |
|---|---|---|
| 2% | 10% relative | 80,682 |
| 2% | 20% relative | 21,109 |
| 5% | 10% relative | 31,234 |
| 5% | 20% relative | 8,158 |
| 10% | 10% relative | 14,751 |
| 10% | 20% relative | 3,841 |
With more than two variants and the Bonferroni adjustment on, the sample size helper uses the adjusted significance level for each comparison, so every variant needs more visitors, and the total is the visitors per variant times the number of variants, A included.
Halving the effect you want to detect roughly quadruples the traffic you need, which is why small sites are better off testing bold changes than small tweaks.
How to use the A/B test significance calculator
- 1Enter the number of visitors and conversions for variant A (the control) and variant B. Use Add variant to compare up to five versions.
- 2Choose the confidence level (90%, 95% or 99%) and a two-sided or one-sided test.
- 3Read the conversion rates, uplift, z-score, p-value and the verdict. Before your next test, use the sample size helper to plan how long to run it.
Guides on this topic
- Z-Table: Negative and Positive Standard Normal Table
- What a p-Value Means (and What It Does Not)
- Margin of Error: Why Polls Say Plus or Minus 3 Points
Frequently asked questions
What does statistical significance mean in an A/B test?
It means the difference between the variants is large enough that random chance alone would rarely produce it. At 95% confidence, a difference this big would show up less than 5% of the time if A and B really converted at the same rate. It does not tell you how big the true effect is, which is what the confidence interval is for.
What p-value counts as significant?
The p-value has to be below 1 minus your confidence level: below 0.10 at 90%, below 0.05 at 95% and below 0.01 at 99%. Choose the level before you start the test. 95% is the usual default; use 99% for changes that are expensive to roll out or hard to undo.
Should I use a one-sided or a two-sided test?
Two-sided is the safe default. It checks whether B is different from A in either direction, so it also tells you when B is worse. A one-sided test only asks whether B is better, which makes it reach significance sooner, but it cannot detect a loss and is easy to misuse when chosen after looking at the data.
Can I stop my test as soon as it shows significance?
No. Checking the result every day and stopping at the first significant reading, often called peeking, makes false winners much more likely. Decide the sample size up front with the sample size helper, run the test until you reach it, and ideally cover full weeks so weekday and weekend visitors are both included.
How many visitors do I need for an A/B test?
It depends on your baseline conversion rate and the smallest lift you care about. Small rates and small lifts need a lot of traffic: at a 5% conversion rate, detecting a 10% relative lift with 95% confidence and 80% power takes about 31,234 visitors per variant. Enter your own numbers in the sample size helper.
Can I test more than two variants?
Yes. Click Add variant to compare up to five versions, A to E. Each variant is tested against control A. Every extra comparison is another chance to crown a false winner, so the calculator applies the Bonferroni adjustment by default: with three variants (A, B and C, so two comparisons with A) at 95% confidence, a p-value has to be below 0.05 ÷ 2 = 0.025 instead of 0.05. You can switch the adjustment off to see the plain results.