Free tools / A/B Test Calculator

Free tool

A/B Test Calculator

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

Confidence level

Result

B wins

p = 0.0123
A
5.00%
B
5.80%

B converts at 5.80% against 5.00% for A, a lift of +16%. At 95% confidence the difference is real, not chance.

A conversion rate
5.00%
B conversion rate
5.80%
Lift of B over A
+16%
Difference
+0.8 pts
Range of the difference (95%)
+0.2 to +1.4 pts
z score
2.50
p-value (two-sided)
0.0123

You have the number. Now ask the question.

Say it in a sentence. SegmentOS writes the survey, and real people answer it.

Free to start. No card needed.

How to use it

Two versions in, a verdict out.

A and B
A: visitors, conversions10,000 · 500
B: visitors, conversions10,000 · 580
01

Enter both versions

For the control and the variant, type how many visitors saw it and how many converted: bought, signed up or clicked.

ResultB wins
Lift of B over A+16%
p0.0123
02

Read the verdict

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.

5% now, 10% lift
Visitors per version31,234
Total62,468
03

Or plan the test first

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

A winner only when chance can’t explain the gap.

Some difference between two versions always shows up. The test tells you whether it’s bigger than chance alone would make it.

Example
A5.00%
B5.80%
Range of the gap+0.2 to +1.4 pts

The lift comes with a range

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.

Good practice
Visitors set in advanceyes
Run full weeksyes

Don't stop at the first win

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.

Visitors per version, 5% now
10% lift31,234
20% lift8,158

Small lifts need big tests

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

How the winner is called

The test

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.

Visitors per version, before you start

At 95% confidence and 80% power. The lift is relative: 10% turns 5% into 5.5%.

Current rate10% lift20% lift
2%80,68221,109
5%31,2348,158
10%14,7513,841

Questions

About A/B tests

Comparing survey groups instead? Use the significance calculator

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

Related studies and tools

Test the idea before the page.

SegmentOS writes the survey from one sentence. Send it to your own list or to a verified audience.

Free to start. No card needed.