virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
tools / a/b test calculator

A/B test calculator with revenue per visitor

Enter the visitors and conversions for each variant of your test to see its conversion rate, the lift of B over A and whether the difference is statistically significant. Add the revenue from each variant to compare revenue per visitor too. Everything runs in your browser.

VariantConversion rateRevenue per visitorAverage order value

Significance uses a two-sided two-proportion z-test on conversion rate with a pooled standard error. Revenue per visitor is shown for comparison but not tested for significance, since that needs the revenue of every single order.

A test that lifts conversions can still lose money if the extra buyers spend less. Virling links every visit to the payment it led to, so you see the real revenue behind each page and channel from your payments. 14 days free.

Start free trial

Related: revenue per visitor calculator, conversion rate calculator, what revenue per visitor is.

How the significance is calculated

Each variant's conversion rate is its conversions divided by its visitors. Lift is how much higher or lower B converts than A, relative to A:

conversion rate = conversions / visitors
lift = (rate B - rate A) / rate A

To judge whether the difference is real or chance, the calculator pools both variants into one conversion rate, works out how much the difference between two samples of this size would vary if the variants were identical, and measures the observed difference in those units:

pooled rate = (conversions A + conversions B) / (visitors A + visitors B)
standard error = √(pooled rate × (1 - pooled rate) × (1 / visitors A + 1 / visitors B))
z = (rate B - rate A) / standard error

The p-value is the chance of seeing a difference at least this large, in either direction, if A and B really convert the same. Below 0.05 the result is significant at 95% confidence.

A worked example

With the defaults above, A got 10,000 visitors and 200 conversions, a 2.00% conversion rate. B got 10,000 visitors and 250 conversions, 2.50%. The lift is (2.50% - 2.00%) / 2.00% = 25%.

The pooled rate is 450 / 20,000 = 2.25%. The standard error is √(0.0225 × 0.9775 × (1 / 10,000 + 1 / 10,000)) = √0.0000043988 = 0.002097. So z = 0.005 / 0.002097 = 2.38, which gives a two-sided p-value of 0.017, or 98.3% confidence. B's higher conversion rate is significant at 95%.

Now the revenue. A's 200 orders brought $10,000, an average order of $50 and $1.00 per visitor. B's 250 orders brought only $9,500, an average order of $38 and $0.95 per visitor. B wins more orders but each visitor is worth 5% less, so B made less money.

When a result is not significant yet

A p-value above 0.05 does not mean A and B are the same. It means the test has not collected enough visitors to tell a real difference apart from chance. Small differences and low conversion rates need many more visitors before they show up clearly. Keep the test running for the number of visitors or full weeks you planned before it started, and do not stop the moment the p-value dips below 0.05: checking every day and stopping at the first good reading makes chance results look significant far more often than 5% of the time.

Why revenue per visitor can disagree with conversion rate

Conversion rate counts orders, not money. A variant with a discount, a cheaper default plan or a less prominent upsell can turn more visitors into buyers while each buyer spends less. Revenue per visitor is conversion rate times average order value, so it is the number that tells you which variant earns more from the same traffic. When the two disagree, as in the example above, the winner on conversion rate is not the winner on revenue. See what revenue per visitor is and how to calculate it, or work it out per channel with the revenue per visitor calculator.

questions

A/B test calculator FAQ

How do you know if an A/B test is significant?

Compare the conversion rates with a two-proportion z-test and look at the p-value. If it is below 0.05, a difference this large would happen by chance less than 5% of the time when the variants convert the same, so the result is significant at 95% confidence.

How is lift calculated in an A/B test?

Subtract A's conversion rate from B's and divide by A's. A going from 2.00% to 2.50% is a 25% lift, even though the rate rose by only half a percentage point.

What should I do if my A/B test is not significant?

Keep it running until it reaches the number of visitors you planned. A result that is not significant means there is not enough data yet to tell the difference from chance, not that the variants are equal.

Why look at revenue per visitor in an A/B test?

Because a variant can win more orders with smaller baskets. Revenue per visitor is conversion rate times average order value, so it shows which variant earns more from the same traffic, not only which one converts more often.

Test against revenue, not just clicks

These tools estimate. Virling measures: it links every visit to the payment it led to, so you see the customers and revenue each channel and page brings from your real numbers. 14 days free.

Start free trial See the demo