Marketing calculator
A/B test statistical significance calculator
Enter visitors and conversions for each version. A result is significant when the two-sided p-value is below 1 − confidence: 200 of 5,000 for A and 250 of 5,000 for B gives p = 0.016, significant at 95% but not at 99%.
Confidence level
Relative to A's rate, for the sample size at 80% power
At 95% confidence
Significant
B converts better, and a gap this large would be unlikely if A and B performed the same.
- Conversion rate A
- 4%
- Conversion rate B
- 5%
- Relative uplift (B vs A)
- +25%
- p-value (two-sided)
- 0.0159
- Confidence (1 − p)
- 98.41%
- 95% interval of B − APercentage points of conversion rate
- +0.19 to +1.81 pts
- Visitors needed per versionTo detect a 10% change from A's rate at 95% confidence and 80% power
- 39,475
Everything is calculated in your browser; nothing you enter is sent anywhere.
How it's calculated
rate = conversions ÷ visitors pooled rate p = (conversions A + conversions B) ÷ (visitors A + visitors B) z = (rate B − rate A) ÷ √(p × (1 − p) × (1 ÷ visitors A + 1 ÷ visitors B)) p-value = 2 × (1 − Φ(|z|)) interval = (rate B − rate A) ± z* × √(rate A × (1 − rate A) ÷ visitors A + rate B × (1 − rate B) ÷ visitors B) visitors per version = (z* × √(2p̄(1 − p̄)) + z_power × √(p₁(1 − p₁) + p₂(1 − p₂)))² ÷ (p₂ − p₁)²
This is the two-proportion z-test. Φ is the standard normal distribution; z* is 1.645, 1.960 or 2.576 for 90%, 95% or 99% confidence; z_power is 0.842 for 80% power. In the sample size, p₁ is A's rate, p₂ is A's rate changed by the smallest change you care about, and p̄ is their average. To plan a test before it starts, with your own power and traffic, use the A/B test sample size calculator.
The test is two-sided: it asks whether B differs from A in either direction, which is the safer default when B could also be worse.
Worked example
A pricing page test sends 5,000 visitors to each version. A (control) gets 200 sign-ups, B gets 250.
- Rates: A converts 200 ÷ 5,000 = 4.0%, B converts 250 ÷ 5,000 = 5.0%, a relative uplift of 25%.
- Pooled rate: 450 ÷ 10,000 = 4.5%. Standard error: √(0.045 × 0.955 × (1 ÷ 5,000 + 1 ÷ 5,000)) = 0.00415.
- z = (0.05 − 0.04) ÷ 0.00415 = 2.41, so the two-sided p-value is 0.016.
- 95% interval of B − A: +0.19 to +1.81 percentage points.
B wins at 95% confidence. The interval says the real gain could be as small as 0.19 points, so expect less than the measured 25% uplift. At 99% confidence it isn't significant yet.
Mistakes that produce false winners
Most wrong A/B test calls come from how the test was run, not the math:
- Checking every day and stopping the first time p dips below 0.05.
- Testing many variants or many metrics and reporting the one that won.
- Running for a few days, so one weekday's traffic decides the result.
- Counting sign-ups when what you need is paying customers. A version can win on clicks and lose on revenue.
Which version brings paying customers
Conversion rate is the start; the version that matters is the one that brings revenue. In MetricRaven, send the variant as a goal property such as experiment, and each goal shows, for every value, how many people completed it, how many paid afterwards and what they paid (revenue per property value). Click a value to filter the whole dashboard to people who saw that version, including their channels and revenue per visitor.
Questions
- What does statistically significant mean for an A/B test?
- That a gap as large as the one you measured would be unlikely if A and B really converted at the same rate. At 95% confidence, "unlikely" means a p-value below 0.05. It doesn't mean B is 95% likely to be better, or that the uplift will hold at exactly the measured size.
- How long should I run an A/B test?
- Until each version has the sample size you calculated before starting, and for at least one full week so weekdays and weekends are both in it. Stopping the moment the result turns significant inflates false positives.
- Can I test revenue per visitor for significance?
- Not with this calculator. Revenue per visitor needs each visitor's order value, not just totals, to estimate its spread. The calculator shows revenue per visitor for each version but makes no significance claim about it.
- Why does a small sample give no result?
- The z-test relies on a normal approximation that needs at least about 5 expected conversions and 5 expected non-conversions in each version. Below that, p-values are unreliable, so the calculator won't call the result significant.