Your new landing page converted at 6.1% against the old page's 5.0%. The team wants to switch everything over and call it a 22% improvement. But with a few thousand visitors per version, how sure can you be that the new page is really better, and not just luckier this week? That question is what statistical significance tries to answer.
This guide explains the key ideas behind A/B test statistics in plain terms: what a p-value does and doesn't mean, how confidence levels and one- or two-sided tests change the result, why sample size must be planned before the test starts, and the habits that most often produce false winners.
The core question
Even if two versions of a page were identical, their conversion rates would differ slightly in any sample, just by chance. A significance test asks: if there were really no difference, how surprising would a gap this large be?
The two-proportion z-test
For conversion rates, a common method is the pooled two-proportion z-test:
- Calculate each version's rate:
pA = conversionsA ÷ visitorsA,pB = conversionsB ÷ visitorsB. - Calculate the pooled rate across both:
p = (conversionsA + conversionsB) ÷ (visitorsA + visitorsB). - Calculate the standard error:
SE = √[p × (1 − p) × (1/visitorsA + 1/visitorsB)]. - Calculate the z-score:
z = (pB − pA) ÷ SE. - Convert z into a p-value using the normal distribution.
With 5,000 visitors each, 250 conversions for A and 305 for B, z is about 2.4 and the two-sided p-value is about 0.016.
What the p-value means
The p-value is the probability of seeing a difference at least this large if the two versions truly performed the same. A p-value of 0.016 means that would happen about 1.6% of the time. It is not the probability that B is better, and it says nothing about how big the real improvement is.
Confidence level
Before the test, you choose a threshold, commonly 95% confidence, which means a p-value below 0.05 counts as significant. 90% is more permissive and gives more false positives; 99% is stricter and needs more data.
One-sided or two-sided
A two-sided test asks whether B is different from A in either direction. A one-sided test asks only whether B is better. One-sided tests reach significance with less data, but they cannot detect that B is worse. Two-sided is the safer default unless you have a strong reason and decided in advance.
Uplift and its uncertainty
Relative uplift is (pB − pA) ÷ pA. In the example, (6.1% − 5.0%) ÷ 5.0% = 22%. But a confidence interval for the difference shows the plausible range, which can be wide: the true improvement might be much smaller, or larger, than the observed one.
Check a result, or plan a test
The A/B Test Significance Calculator has two tabs: one for evaluating a finished test, one for planning a new one.
Significance test
- Open the A/B Test Significance Calculator on the Significance test tab.
- Enter Visitors and Conversions for Variant A (control) and Variant B.
- Choose the Confidence level (90%, 95% or 99%) and the Hypothesis (Two-sided or One-sided).
- Read the verdict at the top of the Result panel: significant or not significant at your chosen level, and whether B converts better or worse.
- Check the details: Conversion rate A, Conversion rate B, Relative uplift (B vs A), p-value, Confidence (1 − p), z-score and the confidence interval of the difference in percentage points.
Sample size
- Switch to the Sample size tab.
- Enter your Baseline conversion rate and the Minimum detectable effect (relative), the smallest lift worth detecting. A 10% effect on a 5% baseline means detecting a move from 5% to 5.5%.
- Choose Statistical power (80% or 90%), plus the confidence level and hypothesis.
- Optionally enter Daily visitors in the test (optional).
- Read Visitors per variant, Total visitors (A + B), Expected rate in B and, with daily traffic, Estimated duration in days.
With a 5% baseline, a 10% relative effect, 95% confidence two-sided and 80% power, the answer is roughly 31,000 visitors per variant. Halving the detectable effect roughly quadruples that figure, which is why small sites struggle to detect small improvements.
Other ways to analyse A/B tests
Built-in testing platforms
Dedicated experimentation tools and many email platforms calculate significance automatically. Some use Bayesian methods, which report a "probability to be best" instead of a p-value. Both approaches are legitimate; just don't mix interpretations.
Spreadsheets and statistics software
The z-test can be built in a spreadsheet using NORM.S.DIST, and statistics packages such as R or Python's statsmodels offer tests for proportions. These are better for analysing many segments or running the same calculation repeatedly.
When a z-test isn't enough
For revenue per visitor, average order value or time on page, you need a test for means rather than proportions. For tests with more than two variants, correct for multiple comparisons.
Mistakes that create false winners
Peeking and stopping early
Checking results every day and stopping the first time p dips below 0.05 greatly increases the chance of a false positive. Decide the sample size in advance and analyse once it is reached, or use a method designed for continuous monitoring.
Too little traffic or time
Run tests for whole weeks so weekday and weekend behaviour are both included, even if the sample size is reached sooner.
Changing the test mid-way
Editing a variant, changing the traffic split or adding new traffic sources during a test mixes different experiments together.
Counting visitors more than once
The test assumes each visitor is counted once and randomly assigned. Using sessions when people return several times breaks that assumption.
Ignoring practical significance
A statistically significant 0.5% uplift may not be worth the cost of implementing the change. Judge results in terms of money and effort as well. The conversion rate calculator turns rates into revenue per visitor, and the percentage calculator handles quick uplift arithmetic; the guide to percentage increase and decrease explains the difference between relative and absolute change. For click-based tests, compute each variant's rate with the CTR calculator.
Frequently asked questions
What p-value means an A/B test is significant?
At a 95% confidence level, a p-value below 0.05 is considered significant. At 90% the threshold is 0.10, and at 99% it is 0.01.
How many visitors do I need for an A/B test?
It depends on your baseline conversion rate and the smallest improvement you want to detect. Low baselines and small effects need tens of thousands of visitors per variant or more.
Does 95% confidence mean B is 95% likely to be better?
No. It means that if there were no real difference, a result this extreme would occur less than 5% of the time. It is a statement about the data under that assumption, not a direct probability that B wins.
Can I stop a test as soon as it becomes significant?
Not if you are using a fixed-sample test like this one. Stopping at the first significant reading inflates false positives. Wait for the planned sample size.
What is statistical power?
Power is the probability that the test detects an effect of the size you specified, if that effect is real. 80% power means a 20% chance of missing a genuine improvement of that size.