← All free tools

The A/B Test Significance Calculator

Add your numbers to see if your test won or how long it should run.

Version A (original)
Version B (new)

From your testing app's report. Orders can be any conversion you're counting.

Confidence level

Your Result

Example

Example: A with 250 orders from 10,000 visitors and B with 290 from 10,000. Add your numbers to replace it.

Add your numbers to see the result

Change (B vs A)
+16.0%
Likely real lift
−2.0% to +34.0%
Conversion rate A
2.50%
Conversion rate B
2.90%
Confidence
91.9%
p-value
0.081

Uses a two-tailed, two-proportion z-test. Confidence is 1 − p-value. Sample size assumes a 50/50 split and 80% power. It measures conversion rate. Revenue per visitor needs a different test.

Add your numbers to see yours

See breakdown

How To Read Your A/B Test Result

Significance formulaWith the example
z=(rate B − rate A) ÷ standard error
=(2.90% − 2.50%) ÷ 0.229%
=1.75
confidence=1 − p-value
two-tailed p-value from z
=1 − 0.081
=91.9%

This A/B test calculator turns the gap between your two conversion rates into a p-value, the chance of seeing a gap this big if both versions convert the same. Under 0.05 is significant at 95% confidence. With 250 orders from 10,000 visitors on A (2.50%) and 290 from 10,000 on B (2.90%), B converts 16% more, but that's only 91.9% confidence, so it could still be chance. With 41% power, the test is still too small to call.

How Long An A/B Test Should Run

Test length formulaWith the example
weeks=visitors per version × 2 ÷ weekly visitors
=64,199 × 2 ÷ 10,000
=12.8
full weeks, minimum 2
=13 weeks

Visitors per version come from your conversion rate, the smallest lift worth finding and 80% power. A page at 2.5% looking for a 10% lift at 95% confidence needs about 64,200 visitors per version, so 13 weeks at 10,000 a week. Look for a 20% lift and it's about 16,800 per version, or 4 weeks. Stop only at full weeks, because people shop differently on weekends.

A/B Test Calculator FAQ

How long does it take to run an A/B test?

Until it reaches the sample size you planned. Count full weeks, with two as the minimum, so it covers the weekly shopping cycle. The How long should it run? tab gives you the number for your traffic.

How do I calculate the p-value for an A/B test?

Work out the conversion rate of each version and the combined rate of both. Divide the gap between the two rates by its standard error to get a z-score, then turn the z-score into a p-value. The calculator does all three steps when you add your numbers.

How do I find the minimum sample size for an A/B test?

You need your current conversion rate, the smallest lift worth finding, the confidence level and the power. Add the first three in the How long should it run? tab. It uses the standard two-proportion formula and sets power at 80%, the usual minimum.

What is statistical significance in A/B testing?

It means that, with your traffic, a gap this big is unlikely to be chance alone. To see how big the real lift could be, check the likely real lift range.

What is statistical power?

The chance your test detects a real lift of a given size. 80% is the usual minimum. With low power, a "no clear winner" result could be a real lift the test missed.

One-tailed or two-tailed test?

One-tailed checks only whether B is better than A. Two-tailed checks whether B is different in either direction. It needs more data and gives fewer false wins, so this calculator always uses two-tailed.

What if my store doesn't have enough traffic to test?

Test bigger changes, like a new offer or a rebuilt product page, on your highest-traffic page. If the How long should it run? tab gives you more than 8 weeks, ship the change with the strongest customer research behind it and track the numbers before and after. That's how we work with stores that don't have the traffic to test.

My test won. Why didn't sales go up?

It may have stopped early, the real lift may be smaller than it looked, the test measured conversion and not revenue, or the traffic mix changed. An audit finds which one.

More Free Tools

Find Out What's Worth Testing On Your Store