How to read your result
An A/B test compares two versions of something (a landing page, a subject line, a button) by showing each to a different group of people and counting how many convert. The question this calculator answers is simple: is the difference you saw big enough that it's unlikely to be luck?
The p-value is the chance of seeing a gap at least this large if the two versions were really identical. At the standard 95% confidence level, a p-value below 0.05 counts as significant. A p-value of 0.30 means that a gap this size would turn up three times in ten even with no real difference, so it proves nothing.
The confidence interval is more useful than the yes/no verdict. It gives the range the true difference most likely falls in. If it runs from +0.2 to +2.6 percentage points, B is probably better, but by somewhere between "barely" and "a lot". If the interval includes zero, you can't rule out that the versions perform the same.
Relative lift is B's rate divided by A's, minus one. Going from 10% to 11.4% is a 14% lift, even though it's only 1.4 percentage points. Reports often quote lift because it sounds bigger, so check both numbers.
The formula
This is a two-sided, two-proportion z-test, the same test most A/B testing platforms use for conversion rates.
p₁ = conversions A ÷ visitors A p₂ = conversions B ÷ visitors B
pooled p = (conv A + conv B) ÷ (visitors A + visitors B)
SE = √( p(1 − p) × (1/n₁ + 1/n₂) )
z = (p₂ − p₁) ÷ SE p-value = 2 × (1 − Φ(|z|))
The confidence interval uses the unpooled standard error, √(p₁(1−p₁)/n₁ + p₂(1−p₂)/n₂), multiplied by 1.96 at 95% confidence.
The sample size calculator uses the standard formula for comparing two proportions at your chosen confidence and power (the chance of detecting a real effect of the size you entered). It returns visitors per variant.
Worked example
A newsletter sign-up page converts 500 of 5,000 visitors (10%). A new headline converts 570 of 5,000 (11.4%). The pooled rate is 10.7%, the standard error is 0.62 points, and z = 1.4 ÷ 0.62 ≈ 2.27. That gives a p-value of about 0.023, which is significant at 95% but not at 99%. The 95% interval for the difference is roughly +0.2 to +2.6 points: the new headline is probably better, but the true gain could be small.
Before running that test, the sample size tool would have said: to detect a 20% relative lift from a 10% baseline (10% → 12%) at 95% confidence and 80% power, you need about 3,841 visitors per version. A 14% lift is smaller than that, which is why the result only just cleared the bar.
Mistakes that make A/B tests lie
- Peeking and stopping early. If you check every day and stop the moment p drops below 0.05, your real false-positive rate can be several times higher than 5%. Decide the sample size first, then wait.
- Testing too many things at once. Compare ten variants and one will look like a winner by chance. With many variants, use a stricter confidence level (99%) or a correction.
- Running less than a week. Behaviour on Monday morning differs from Saturday night. Cover at least one full weekly cycle, ideally two.
- Counting the wrong unit. This test assumes each visitor is counted once. If you count page views or sessions, a single heavy user can skew both groups.
- Ignoring practical significance. With huge traffic, a 0.1% lift can be "significant" and still not worth the engineering time.
When not to use this calculator
Use it for yes/no outcomes such as converted or didn't, clicked or didn't. For averages, like revenue per visitor or time on page, you need a t-test on the raw values, not a test of proportions. For tests with very few conversions (fewer than about 10 in either group), the normal approximation behind the z-test gets unreliable; use Fisher's exact test instead.
Questions
What confidence level should I use?
95% is the convention and a sensible default. Use 90% for low-risk changes you can easily reverse, and 99% when a wrong call is expensive or when you're comparing many variants at once.
My test isn't significant. Does that mean A and B are the same?
No. It means you don't have enough evidence to tell them apart. Look at the confidence interval: if it's wide, you need more traffic; if it's narrow and centred near zero, the versions probably perform about the same.
Is this one-tailed or two-tailed?
Two-tailed. It checks for a difference in either direction, which is the safer choice because a "better" version can turn out worse.
Can I use this for email subject lines or ads?
Yes. Use recipients (or impressions) as visitors and opens (or clicks) as conversions, as long as each person sees only one version.
Last reviewed 2026-11-25