Enter both versions
For the control and the variant, type how many visitors saw it and how many converted: bought, signed up or clicked.
Free tools / A/B Test Calculator
Free tool
Enter visitors and conversions for version A and version B. See whether B really beats A, by how much, and how many visitors a test needs before you start.
Your A/B test
Change any number. The result updates as you type.
A: control
B: variant
Result
B wins
p = 0.0123B converts at 5.80% against 5.00% for A, a lift of +16%. At 95% confidence the difference is real, not chance.
How to use it
For the control and the variant, type how many visitors saw it and how many converted: bought, signed up or clicked.
The calculator tests whether the gap could be chance and shows the lift with its range. A winner is called only when chance can't explain it.
Switch to the visitors you need. Enter your current rate and the smallest lift worth finding, and get the visitors per version.
What the result means
Some difference between two versions always shows up. The test tells you whether it’s bigger than chance alone would make it.
B's 5.80% against A's 5.00% is a lift of 16%, but the true gap could be anywhere from 0.2 to 1.4 points.
Checking every day and stopping as soon as B looks ahead calls far more false winners. Set the visitors before you start, then read the result once.
From a 5% rate, finding a 10% lift takes almost four times the visitors of a 20% lift.
An A/B test compares two versions shown to people at the same time. The same test works for survey results: two groups and the share who said yes.
The math
z = (rate B − rate A) ÷ √(p × (1 − p) × (1 ÷ visitors A + 1 ÷ visitors B))
p is both versions’ conversions over both versions’ visitors. The p-value is the two-sided chance of a z this far from 0 if A and B truly convert the same. Worked example: p = 1,080 ÷ 20,000 = 5.4%, so z = 0.008 ÷ 0.0032 = 2.50 and the p-value is 0.0123, under 0.05, so B wins at 95% confidence.
At 95% confidence and 80% power. The lift is relative: 10% turns 5% into 5.5%.
| Current rate | 10% lift | 20% lift |
|---|---|---|
| 2% | 80,682 | 21,109 |
| 5% | 31,234 | 8,158 |
| 10% | 14,751 | 3,841 |
How do I know if my A/B test is significant?
Enter the visitors and conversions for each version. If the p-value is under 1 minus your confidence level, 0.05 at 95%, the difference is significant: a gap this big would rarely happen by chance.
How long should an A/B test run?
Until it reaches the visitors you planned, and in whole weeks, so weekdays and weekends are both in. Work out the visitors first, then divide by your daily traffic.
What is a minimum detectable effect?
The smallest lift your test is built to find. Smaller lifts need many more visitors, so pick the smallest change that would be worth acting on.
What does 80% power mean?
If the lift you planned for is real, the test will call it significant 80% of the time. 90% power finds it more often but needs more visitors.
Can I stop the test as soon as it's significant?
Better not. Looking every day and stopping at the first significant result makes false winners much more likely. Decide the visitors in advance and read the result when you reach them.
Is this the same as the significance calculator?
The test is the same two-proportion z test. This page speaks in visitors and conversions and adds a planner for the visitors a test needs; the significance calculator is set up for survey groups.
Keep going
SegmentOS writes the survey from one sentence. Send it to your own list or to a verified audience.
Free to start. No card needed.
Free calculators
Templates
Learn