A/B test statistical significance calculator

Compare conversion rates and check the statistical significance of your result. Planning a test? Switch to sample size to work out the traffic you need.

Version A (control)

Version B (variant)

Relative lift
20.0%
Significant at the 95% level. Version B converted higher than version A.
Conversion rate A
3.00%
95% range 2.68% to 3.35%
Conversion rate B
3.60%
95% range 3.25% to 3.98%
p-value (two-sided)
0.0175

How statistical significance is calculated

The calculator compares the two conversion rates with a two-proportion z-test. It measures the gap between them in standard errors:

p = (conversions A + conversions B) ÷ (visitors A + visitors B)
SE = √( p × (1 − p) × (1 ÷ visitors A + 1 ÷ visitors B) )
z = (rate B − rate A) ÷ SE

The p-value is the probability of a result at least this extreme under the test model if the two versions had the same conversion rate. A p-value below 0.05 meets the 95% significance level.

Worked example

Version A converts 300 of 10,000 visitors (3.0%). Version B converts 360 of 10,000 (3.6%), a 20% relative lift.

Relative lift = 20% · p-value = 0.018 · Significant at the 95% level

That result meets the 95% significance level. With 1,000 visitors per version and the same rates (30 against 36), it would not: the observed lift is the same, with less evidence behind it. In a real store, also read the result in revenue per visitor, not just conversion rate.

How to calculate A/B test sample size

n per version = (zα/2 + zβ)² × (p₁(1 − p₁) + p₂(1 − p₂)) ÷ (p₂ − p₁)²

At 95% significance and 80% power, zα/2 is 1.96 and zβ is 0.84. To detect a 10% relative lift on a 3% conversion rate (3.0% → 3.3%), you need 53,208 visitors per version, 106,416 in total. Divide by daily traffic to estimate how long the test has to run.

With Ordinary

Find the storefront changes that earn more.

See what each version earns alongside its conversion rate, so you can choose the change that makes the stronger business case.

Ordinary brings Shopify A/B tests, revenue per visitor and a plain-English verdict together, with the evidence behind your next move.

Frequently asked questions

What does statistically significant mean in an A/B test?

At the 95% significance level, a difference at least this large would occur less than 5% of the time under the test model if the two versions had the same conversion rate.

What is a p-value?

The p-value is the probability of seeing a difference at least this large if there were no real difference between the versions. A p-value below 0.05 is significant at 95%. It is not the probability that version B is better.

Why does this calculator use a two-sided test?

A two-sided test checks for a difference in either direction, so the result can identify a version that converts higher or lower than the control.

Can I stop a test as soon as it reaches significance?

For this calculator, choose your sample size before you start and read the result when that sample is complete. The sample size tab helps you plan it.

How many visitors do I need for an A/B test?

It depends on your current conversion rate and the smallest lift you care about. Detecting a 10% relative lift on a 3% conversion rate takes about 53,000 visitors per version at 95% significance and 80% power. Halving the lift roughly quadruples the traffic needed.

What test does this calculator use?

A pooled two-proportion z-test on conversion rates, two-sided, with Wilson score intervals for each version's conversion rate. Sample size uses the standard two-proportion power formula with a 50/50 split.