Conversion optimization

A/B test significance calculator: did variant B really win?

Enter visitors and conversions for each variant to see the uplift, p-value and statistical confidence, plus how many visitors you need before calling a winner.

FreeNo sign-up

Inputs

Variant A (control)

Users or sessions that saw the control

Purchases, sign-ups or leads from the control

Variant B (challenger)

Users or sessions that saw the variant

95% is the usual standard for marketing tests

Calculations run in your browser — nothing you type is stored.

Uplift (B vs. A) — Relative change in conversion rate
Conversion rate A —
Conversion rate B —
Statistical confidence — 1 − p-value (two-sided z-test)
p-value — Odds of a gap this large if A and B were equal
Sample size needed per variant — To detect this difference with 80% power

What statistical significance means in an A/B test

When variant B converts better than A, the question is whether the gap is real or just random variation. Statistical significance answers that: it tells you how unlikely the observed difference would be if both versions actually performed the same. The p-value is that probability, and confidence (1 − p-value) is how it is usually reported in testing tools.

If the p-value is below your threshold (0.05 for 95% confidence), the result is called significant. That does not prove B is better by exactly the uplift you see; it means a difference this large is unlikely to be pure chance.

How the calculator works (with a worked example)

The calculator runs a two-sided, two-proportion z-test:

CR = conversions ÷ visitors
uplift = (CR B − CR A) ÷ CR A
pooled p = (conv. A + conv. B) ÷ (visitors A + visitors B)
SE = √(p × (1 − p) × (1/visitors A + 1/visitors B))
z = (CR B − CR A) ÷ SE
p-value = 2 × (1 − Φ(|z|))

Example with the defaults: 5,000 visitors and 150 conversions on A, 5,000 visitors and 190 conversions on B, 95% confidence.

  • CR A = 3.00%, CR B = 3.80%, uplift = +26.7%
  • Pooled rate = 3.4%, z ≈ 2.21, p-value ≈ 0.0273
  • Confidence ≈ 97.3%, which clears the 95% bar: significant (but not at 99%)

The sample size estimate uses 80% power: n = (z(1−α/2) + 0.8416)² × (CR A(1 − CR A) + CR B(1 − CR B)) ÷ (CR B − CR A)². For these numbers that is about 8,050 visitors per variant.

Significant but underpowered: why peeking is dangerous

The example is a classic trap. The test is already significant at 95%, yet it has only 5,000 of the roughly 8,050 visitors per variant needed to reliably detect a 0.8-point difference. Results like this often shrink, or vanish, as more data comes in.

The cause is usually peeking: checking the dashboard every day and stopping the moment it turns green. Each look is another chance for noise to cross the threshold, so the real false-positive rate ends up far higher than 5%. To avoid it:

  • Decide the sample size and duration before launching, and stick to them.
  • Run full weeks (at least one, ideally two business cycles) so weekday and weekend traffic are both represented.
  • Pick one primary metric up front instead of hunting for whichever metric moved.
  • Check that traffic split as planned; a 50/50 test that lands at 55/45 points to a tracking problem.

How to read the result

As a rule of thumb, 95% confidence is the default for most marketing decisions, 90% can be acceptable for low-risk changes you can easily revert, and 99% is worth it for pricing or checkout changes. What counts as a meaningful uplift varies by niche, traffic and baseline conversion rate: a 5% lift on a high-volume checkout can be worth more than a 30% lift on a page few people see.

An inconclusive result is still useful. It tells you the change probably has no large effect, so you can move on to bolder ideas instead of polishing details.

How to run better A/B tests

  • Test where the traffic is: high-volume pages reach significance faster. Use the sales funnel calculator to find the stage where a lift matters most.
  • Make bold changes: offers, headlines and page structure move results more than button colors.
  • Tag your traffic with the UTM builder so you can segment results by channel.
  • Test ads, too: compare creatives by CTR and conversion rate with the CPM, CPC and CTR calculator.

Frequently asked questions

How do you calculate statistical significance for an A/B test?
Divide conversions by visitors for each variant, then run a two-proportion z-test: compute the pooled conversion rate, the standard error, and z = (CR B − CR A) ÷ SE. The two-sided p-value is 2 × (1 − Φ(|z|)). If it is below 1 minus your confidence level, such as 0.05 for 95%, the difference is significant.
What p-value is considered significant?
In marketing and product testing, a p-value below 0.05 (95% confidence) is the usual threshold. Some teams accept 0.10 (90%) for low-risk tests and require 0.01 (99%) for high-stakes changes like pricing. Choose the threshold before the test starts; changing it after seeing the data defeats the purpose.
How many visitors do I need for an A/B test?
It depends on your baseline conversion rate and the size of the difference you want to detect. Small differences on low conversion rates need many thousands of visitors per variant. This calculator estimates the sample per variant for 80% power at your chosen confidence, based on the conversion rates you entered.
How long should an A/B test run?
Run it until you reach the planned sample size and for at least one full week, ideally two, so every day of the week is represented. Stopping early because the result looks significant inflates false positives. Running for months is not ideal either, since cookies expire and seasonality creeps in.
Can I stop an A/B test as soon as it reaches significance?
Not safely. Checking repeatedly and stopping at the first significant reading, known as peeking, makes false positives much more likely than your confidence level suggests. Set the sample size in advance and evaluate once you reach it. If you need to monitor continuously, use a sequential testing method designed for that.
Tools