A/B test calculator: did the change really work?

Before a test: how many visitors and weeks it needs. After it: whether version B really beat version A, or the difference is still chance.

Try an example:

Free · no sign-up · runs in your browser · reviewed October 2026

1Your numbers
Run the test for8 weeks
Your visitors in 2 weeks10,000
Your visitors in 4 weeks20,000
Your visitors in 8 weeks40,000
The test needs39,724

Possible, but long.Test a bolder change - a bigger lift needs far fewer visitors.

Visitors per version
19,862
Orders per version
278
Finds a change of
1.40% → 1.75%

Nothing you type leaves your browser. The link keeps your numbers, so you can send it to someone.

In short

  • Plan before you start. At a 1.4% conversion rate and 5,000 visitors a week, finding a 25% lift takes about 8 weeks: 19,862 visitors per version.
  • A result counts when it is significant - a p-value below 0.05, or 95% confidence - and the test ran its planned visitors and full weeks.
  • Small stores should test big changes. Doubling the lift you look for cuts the visitors you need to about a quarter.

How to use the A/B test calculator

  1. Plan a test: enter the visitors the tested pages get in a week, your conversion rate and the smallest lift worth finding. You see the visitors per version and the weeks.
  2. Run the test until it reaches those visitors - in full weeks, without stopping early.
  3. Check my result: enter the visitors and orders of each version. You see whether B won, lost, or is not proven yet. Copy the link to keep the result.

How long should an A/B test run?

Weeks a test needs at the average Shopify conversion rate of 1.4%, by the visitors the tested pages get and the smallest lift you want to find:

Visitors a week10% lift20% lift30% lift50% lift
1,0002+ years61 weeks29 weeks12 weeks
2,50093 weeks25 weeks12 weeks5 weeks
5,00047 weeks13 weeks6 weeks3 weeks
10,00024 weeks7 weeks3 weeks2 weeks
25,00010 weeks3 weeks2 weeks2 weeks

Every test runs at least two full weeks, so each weekday is in both versions. Anything past eight weeks is too long to be practical: seasons, ads and prices change while it runs.

How the sample size is calculated

FormulaVisitors per version = (1.96 + 0.84)² × [p₁(1 − p₁) + p₂(1 − p₂)] ÷ (p₂ − p₁)²

p₁ is your rate now, p₂ the rate after the lift. 1.96 and 0.84 set the usual 95% confidence and 80% power. At 1.4% and a 25% lift (p₂ = 1.75%): 19,862 visitors per version.

Power is the chance the test finds a lift that is really there. At 80%, one real winner in five still looks like "no difference" - one more reason to test changes big enough to matter.

How to read the result

The calculator runs a standard test for two conversion rates. Three numbers matter:

  • Lift: how much better or worse B converts than A. 1.40% → 1.80% is a lift of 28.6%.
  • p-value: the chance of a difference at least this big if the two versions really sold the same. Below 0.05, the result is significant.
  • Confidence: 1 − p-value, as a percentage. 95% or more is the usual line.

A p-value is not the chance that B is better, and 95% confidence does not promise the same lift after launch - the lift you measured is an estimate, and the real one is often smaller.

Rules for a fair A/B test

  1. One change at a time, so you know what made the difference.
  2. Decide the metric, the visitors and the weeks before you start - orders or sales per visitor, not clicks.
  3. Run full weeks, at least two, and don't stop early when one version leads.
  4. Avoid sale weeks and holidays, when shoppers behave differently.
  5. Expect most ideas to fail. In Optimizely's analysis of 127,000 experiments, only 12% produced a significant win on their main metric.

What to test first on a Shopify store

Test changes big enough to move orders, at the step that loses the most buyers. Find that step with the leak finder in the conversion rate calculator. Good first tests:

  • Shipping costs and delivery dates on the product page instead of at checkout.
  • A free shipping threshold a little above your average order.
  • New product photos: on a model, in use, at real size.
  • Reviews near the buy button.
  • A shorter product page on phones, with the buy button on the first screen.

The conversion rate guide lists the ten most common leaks and how to fix each one. On Shopify, Rollouts (Grow plan and above) runs a test between two versions of your theme with no app.

Not enough traffic for an A/B test?

Make the change and compare four full weeks before with four full weeks after, in the same season, with no other change in between. It is weaker evidence than an A/B test, but much better than guessing. Keep a change log - one line per change, with the date - so you know what to compare.

What this calculator does not tell you

  • Whether the test was set up right. Uneven traffic between versions, a broken page in one of them, or bots in one group give a wrong result with a convincing p-value.
  • Order value. The test compares conversion rates. A version that sells more orders of smaller value may earn less - check sales per visitor too.
  • The long run. A discount banner can win a two-week test and train shoppers to wait for discounts.

By Bart Ziem, Adeagle · Method: two-sided test for two proportions, 95% confidence, 80% power - the defaults of common testing tools · Shopify benchmark: Littledata, via Nudgify · Experiment win rate: Optimizely, 127,000 experiments · Examples, not promises

More Conversion rate tools

Measure the rate you are testing, and see where your store loses buyers.

Questions about A/B testing

Until each version has the visitors your sample size needs, and never less than two full weeks, so every weekday is in both versions. At a 1.4% conversion rate and 5,000 visitors a week, finding a 25% lift takes about 8 weeks.

It depends on your conversion rate and on the smallest change you want to find. At 1.4%, a 20% lift needs about 30,000 visitors per version, a 50% lift about 5,500. Small changes on small stores need more visitors than they get.

That a difference this big would rarely happen by chance if the two versions really sold the same. The usual line is a p-value below 0.05, often shown as 95% confidence.

No. Early leads often vanish, and checking every day until one version "wins" finds false winners. Decide the visitors and weeks before you start, and read the result at the end.

Yes. Shopify Rollouts can run an experiment between two versions of your theme on the Grow plan and above, and reports conversion rate and add-to-cart rate for each. Testing apps cover other plans and other kinds of test.

It is weaker evidence than the usual 95%: about one test in ten with no real difference reaches it by chance. For a cheap, easy-to-undo change that may be enough; for a price or a checkout change, run the test to the planned end.

Test bigger changes - a bigger lift needs far fewer visitors. Or make the change and compare four full weeks before with four full weeks after, in the same season and with no other change in between.

Want another tool? Tell us which one: [email protected]