A/B Test Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free A/B test calculator. Enter visitors and conversions for two versions to see the uplift, p-value and whether the result is significant.
- Conversion rate A
- 0
- Conversion rate B
- 0
- Uplift
- 0
- p-value
- 0
- Confidence
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the A/B test calculator
Enter the number of visitors (or emails sent, or people who saw it) and the number of conversions for each version:
- A: the original, or control.
- B: the new version you're testing.
Choose a confidence level (95% is standard). The A/B test calculator shows:
- Conversion rate for A and B.
- Uplift: how much better or worse B converted than A, relative to A.
- p-value: the probability of seeing a difference at least this large if the two versions actually performed the same.
- Confidence: 1 minus the p-value, as a percentage.
- A verdict: whether the result is statistically significant at your chosen level.
- A confidence interval for the real difference between the two conversion rates.
It also warns you when a group has fewer than five conversions (or non-conversions), where the result is unreliable. Everything is calculated in your browser.
What an A/B test is
An A/B test compares two versions of something to see which works better: two subject lines, two headlines, two landing pages, two prices, two buttons. Visitors are split at random between the versions, and you compare what share of each group does what you want, such as buying, signing up or clicking.
The challenge is that results vary by chance. If you flip a coin 100 times, you won't get exactly 50 heads. In the same way, two identical pages will rarely get exactly the same conversion rate. The A/B test calculator answers the key question: is the difference big enough that it's unlikely to be chance?
How the calculator works
It uses a two-proportion z-test, the standard method for comparing two conversion rates:
- It calculates each version's conversion rate, and a combined (pooled) rate.
- It works out how much the difference would normally vary by chance, given the sample sizes (the standard error).
- It divides the observed difference by that standard error to get a z-score.
- It converts the z-score into a two-sided p-value using the normal distribution.
Take 10,000 visitors on each version, with 200 conversions for A (2.0%) and 250 for B (2.5%). The uplift is 25%. The z-score is about 2.38, and the p-value is about 0.017. Because 0.017 is below 0.05, the result is significant at 95% confidence: B is very likely genuinely better.
Now take the same conversion rates with only 1,000 visitors each: 20 conversions for A, 25 for B. The uplift is still 25%, but the p-value is about 0.45: not significant. With so few visitors, a difference of five conversions could easily be luck.
Understanding the results
p-value
The p-value is the probability of getting a difference at least as big as yours if there were really no difference between A and B. A small p-value means your result would be surprising if the versions were the same.
- At 95% confidence, a result is significant if p is below 0.05.
- At 90%, below 0.10; at 99%, below 0.01.
The p-value is not the probability that B is better. It's a measure of how surprising your data would be under "no difference".
Confidence level
The confidence level is the standard you set before the test. 95% is the usual choice. Use 99% for decisions that are expensive to reverse, and 90% for quick, low-risk tests where you're happy to accept a higher chance of a false positive.
Confidence interval
The interval shows the range the true difference probably lies in. "Between 0.09 and 0.91 percentage points" means B's real conversion rate is probably between 0.09 and 0.91 points higher than A's. If the interval includes zero, the test hasn't shown a difference. A wide interval means you need more data to know how big the effect really is.
Two-sided test
The A/B test calculator uses a two-sided test, which checks for a difference in either direction. That's the safer choice: B could turn out worse than A, and you want to know.
Running a good A/B test
Decide the sample size before you start
Work out how many visitors you need before launching the test, and wait until you have them. Small effects need large samples: detecting a 10% improvement on a 2% conversion rate takes tens of thousands of visitors per version. The sample size calculator helps with survey samples; for A/B tests, many testing tools include a sample size planner.
Don't stop as soon as it's significant
Checking results every day and stopping the moment p dips below 0.05 ("peeking") greatly increases the chance of a false winner, because chance results cross the line and come back. Set the sample size or duration in advance and stick to it.
Run for full weeks
Visitors behave differently on weekdays and weekends. Run tests for at least one full week, ideally two, even if you reach your sample size sooner.
Test one change at a time
If B has a new headline, new image and new price, you won't know which change made the difference. Test the most important change first.
Split traffic randomly
Each visitor should be assigned to A or B at random, and see the same version if they return. Testing tools and email platforms handle this.
Measure what matters
A headline that gets more clicks but fewer sales isn't a winner. Measure the conversion closest to revenue that you have enough data for.
What to A/B test
- Email subject lines: split a list in two and compare open or click rates.
- Ad copy: most ad platforms rotate versions and report results; use the CTR calculator and this calculator to compare them.
- Prices and offers: free delivery versus a discount, for example.
Use the conversion rate calculator for the rates of single versions.
Common mistakes
- Declaring a winner too early, with too few conversions.
- Peeking and stopping at the first significant result.
- Testing tiny changes on small traffic, which can never reach significance.
- Ignoring the confidence interval, which may show the effect could be tiny.
- Running many tests and reporting only the winners. With 20 tests at 95%, about one will look significant by chance alone.
- Not checking that the split was even and random.
Statistical and practical significance
A result can be statistically significant but too small to matter. With enough visitors, even a 1% relative uplift can be significant. Before switching, ask whether the difference is worth the change, and look at the lower end of the confidence interval: if B might be only slightly better, a costly redesign may not pay off.
A worked example
A bakery tests two versions of its office catering landing page. A has the headline "Office catering in Austin"; B has "Fresh breakfast for your whole office, delivered by 8:30". Over three weeks, each version gets 10,000 visitors from ads. A gets 200 enquiries (2.0%); B gets 250 (2.5%).
The A/B test calculator shows a 25% uplift, a p-value of 0.017 and a significant result at 95% confidence, with B's rate between 0.09 and 0.91 percentage points higher than A's. The bakery switches to B and plans the next test: the photo at the top of the page.
Turn these numbers into paid growth
Metrics like these show where growth is stuck; Google Ads is often the fastest way to unstick it, when every click is tracked. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.
The NPS calculator and the percentage calculator help with other numbers you'll report.
Frequently asked questions
How does the A/B test calculator decide if a result is significant?
It runs a two-sided two-proportion z-test and compares the p-value with your chosen confidence level. At 95%, a p-value below 0.05 is significant.
What does the p-value mean?
The probability of seeing a difference at least this large if the two versions really performed the same. It isn't the probability that B is better.
How many visitors do I need?
It depends on your conversion rate and the size of the difference. Small differences on low conversion rates need many thousands of visitors per version.
Can I stop the test as soon as it's significant?
It's better not to. Stopping at the first significant result raises the chance of a false winner. Decide the sample size or duration in advance.
Can I use it for email tests?
Yes. Use emails delivered as visitors and opens or clicks as conversions for each version.
Is the A/B test calculator free?
Yes. It's free with no sign-up, and it runs entirely in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.