Skip to main content

Statistical significance calculator for A/B tests

Statistical significance tells you whether your A/B test's winner really sold better or got lucky. Check a finished test, then plan how many visitors the next one needs.

Check a finished test

Enter each version’s visitors and orders. The less the two curves below overlap, the likelier the difference is real.

Control: visitors, conversions · 3.00%

Variant: visitors, conversions · 3.80%

1.55%3.40%5.25%Control 3.00%Variant 3.80%
  • Control 3.00%
  • Variant 3.80%
  • Overlap: rates both versions could really have

Chance the variant beats the control

98.6%

Significant

The variant converts 26.7% better than the control, and a gap this size is unlikely to be chance (p < 0.05).

Confidence (two-sided)
97.27%
p-value and z-score
0.0273 · z = 2.21
95% interval for the gap
+0.09 pts to +1.51 pts

Plan a test: sample size and length

Before you start a test, find out how many visitors it needs. The smaller the improvement you want to catch, the more traffic it takes to tell it apart from luck.

A page converting at with visitors a day, looking for a lift of .

1 week of traffic2 weeks of traffic4 weeks of traffic8 weeks of traffic2%10%20%30%40%50%Smallest lift worth finding →10% lift · 53,211 each
  • 10% lift: 53,211 visitors per version
  • Dotted lines: visitors per version that whole weeks of your traffic reach
  • Across: smallest lift worth finding, 2% to 50%

Visitors per version

53,211

To catch a 10% lift on a 3% rate, each version needs 53,211 visitors: about 54 days at 2,000 a day split two ways. Run at least 7 days so weekdays and weekends both count, and don't stop early when one version pulls ahead.

In four weeks your traffic can reliably catch lifts of 14% or more.

Two-sided, 95% significance and 80% power, the settings most testing tools default to.

See where shoppers click for free. Replo records where visitors click and how far they scroll, so you know what to fix first.

Formula

Statistical significance tells you how unlikely an A/B test's gap would be if the two versions really converted the same.

z = (p₂ − p₁) ÷ √(p(1 − p)(1/n₁ + 1/n₂))

This is a two-tailed, two-proportion z-test. p₁ and p₂ are the two conversion rates, n₁ and n₂ the visitors, and p the pooled rate. The p-value comes from the normal distribution; the 95% interval uses each version's own rate. Sample sizes use the standard two-proportion formula at 95% significance and 80% power.

New to the term? Read what A/B testing means.

Stanley's product page for the Quencher H2.0 Flowstate tumbler, 20 oz, at $40.00 with size and color swatches and Add to Cart
9:41
Stanley 1913

Quencher H2.0 tumbler, 20 oz, $40

Stanley's Quencher sells for $40.00. A thousand visits that convert at 2% bring 20 orders, $800.00; at 3% they bring $1,200.

See the live page

How to read the result

  • Chance the variant beats the control is the probability the variant's true rate is the higher one, worked out from the two curves on the chart. It's one-sided, so 97.5% lines up with the usual 95% two-sided bar.
  • Confidence is 1 minus the p-value. At 95% or above, the calculator calls the result significant.
  • The p-value is how often you'd see a gap at least this big if the two versions truly converted the same. Below 0.05 is the usual bar.
  • The 95% interval is the range the real gap in conversion rate probably sits in. If it runs from just above zero to well above it, the variant likely wins, but maybe by less than the headline lift.
Stumptown's product page for Hair Bender whole bean coffee: the green bag, 220 reviews and a $19.00 price
9:41
Stumptown Coffee Roasters

Hair Bender coffee, 12 oz, $19

Stumptown's Hair Bender sells for $19.00. A thousand visits that convert at 2% bring 20 orders, $380.00; at 3% they bring $570.00.

See the live page

A significant result tells you the gap is probably real. It doesn't tell you the gap is big enough to matter, so read the interval as well as the verdict.

How to calculate statistical significance: a worked example

Tatcha's Silk Cream page leads with the product name. Say your moisturizer page does too, and you test that headline (control) against the hook from your best ad (variant), with a 50/50 split.

  • Control: 5,000 visitors, 150 orders, a 3.0% conversion rate
  • Variant: 5,000 visitors, 190 orders, a 3.8% conversion rate
  • The variant converts 26.7% better; p = 0.027 and z = 2.21
  • The interval for the gap runs from +0.09 to +1.51 points

The variant very likely wins, but the true lift could be much smaller than 26.7%. With 170 orders on the variant instead (3.4%), p = 0.26: that 13% lift could easily be chance.

Tatcha's product page for The Silk Cream moisturizer, 1,167 reviews, 50 ml at $125.00
9:41
Tatcha

The Silk Cream, 50 ml, $125

Tatcha's Silk Cream sells for $125.00. A thousand visits that convert at 2% bring 20 orders, $2,500; at 3% they bring $3,750.

See the live page

How many visitors a test needs

The smaller the lift you want to detect, the more visitors you need; the A/B test sample size calculator adds significance, power and the formula with your numbers. At a 3% conversion rate, finding a 10% lift takes 53,211 visitors per version; finding a 20% lift takes 13,914.

At 2,000 visitors a day split across two versions, that's about 54 days or 14 days. The table gives more starting points, all at 95% significance and 80% power.

Most stores stop sooner: half of the thousands of finished tests on Replo ended within a week. See what stores A/B test and how long tests run.

The chart the Statistical significance calculator draws from its numbers

Visitors each version needs (95% significance, 80% power)

Visitors each version needs (95% significance, 80% power)
Current conversion rateTo find a 10% lift20% lift30% lift
1%163,09542,69319,827
2%80,68221,1099,798
3%53,21113,9146,455
5%31,2348,1583,780

Experiments

A/B test your pages in Replo

Split traffic between two versions of a Replo page and see which one sells, with the result next to your sales.

Five ways to fake a winner

  • Stopping when it first hits 95%. Confidence swings early. Decide the sample size first and stop when you reach it.
  • Running less than a week. Weekend shoppers behave differently. Run whole weeks.
  • An uneven split. If a 50/50 test ends at 5,400 vs 4,600 visitors, something in the setup is broken. Fix it before you trust the result.
  • Too many versions. Each extra version is another chance of a false winner. Test two, or raise the bar.
  • Changing the page mid-test. Any edit restarts the clock.
Lodge's product page for the 11 inch Essential Enamel cast iron skillet, on sale at $49.90 from $59.95
9:41
Lodge Cast Iron

11 inch enamel cast iron skillet, $49.90

Lodge's enamel skillet sells for $49.90. A thousand visits that convert at 2% bring 20 orders, $998.00; at 3% they bring $1,497.

See the live page

Run the test where you build the page

A/B testing on Replo sites splits traffic between two versions of a page; check the result here. Theme Builder, Replo's Shopify page builder, has A/B testing built in for pages in your theme today. See A/B testing with Replo for how it works.

Ooni's product page for the Karu 12 multi-fuel pizza oven, marked Save 29% and Price Drop, at $249.00
9:41
Ooni

Karu 12 pizza oven, $249

Ooni's Karu 12 sells for $249.00. A thousand visits that convert at 2% bring 20 orders, $4,980; at 3% they bring $7,470.

See the live page

Questions about statistical significance

  • Statistical significance means a result is unlikely to be chance. In an A/B test, a significant result at 95% means a gap as big as yours would show up less than 5% of the time if both versions really converted the same. It says the gap is probably real, not that it's big.

  • Use a two-proportion z-test. Work out each version's conversion rate, divide the gap by its standard error to get a z-score, then turn the z-score into a p-value. A z-score beyond ±1.96 (p below 0.05) is significant at 95%. The calculator above does all of it from visitors and conversions.

  • Below 0.05, which this calculator shows as 95% confidence or more. For a change that's costly to undo, such as a price, use a stricter bar like 0.01, and plan a bigger sample to match.

  • The minimum detectable effect (MDE) is the smallest lift a test can reliably catch, set before the test starts. A 10% MDE on a 3% conversion rate means the test is sized to spot 3% becoming 3.3%. A smaller MDE needs far more visitors, so pick the smallest lift that would change what you do. The A/B test sample size calculator shows how many.

  • Until each version reaches the sample size you planned, and for at least one full week, so weekdays and weekends both count. At low traffic, test bigger changes: a 20% lift needs about a quarter of the visitors a 10% lift does.

  • No. Checking every day and stopping at the first 95% inflates false winners. Decide the sample size before you start with the planner above, and call the test only when both versions reach it.

  • Yes. Paste the visitors and conversions from any tool, such as Intelligems, VWO or Shopify Rollouts, and the math is the same. Those tools still work with pages you build in Replo.

More free tools

Browse all tools