A/B test calculators

Plan a test before you launch it, and read one honestly when it ends. Free, no signup.

How the calculators work

Both calculators run the same statistics Echo uses on real tests. Here is what they compute, two worked examples, and the cases where you shouldn’t trust the answer.

Sample size: how many visitors a test needs

You give it your current conversion rate, the smallest lift worth finding (the minimum detectable effect), how sure you want to be (confidence, usually 95%) and how often a real lift should show up (power, usually 80%). It returns the visitors each version needs, with the standard formula for comparing two proportions:

n = (z1−α/2 · √(2p̄(1−p̄)) + z1−β · √(p₁(1−p₁) + p₂(1−p₂)))² / (p₂ − p₁)²

p₁ is your conversion rate, p₂ the rate after the lift, p̄ their average. Multiply by the number of versions and divide by your daily visitors to get the test’s length.

Example. A store converting at 3% that wants to catch a 10% relative lift (3.0% to 3.3%) at 95% confidence and 80% power needs 53,211 visitors per version, 106,422 for an A/B test. At 20,000 visitors a month, that’s 160 days. Looking for a 20% lift instead needs 13,914 per version, about a quarter. That’s why small stores should test bold changes, not button colours.

Significance: did B really beat A?

Enter the visitors and conversions of each version. You get three numbers, each answering a different question:

  • Relative lift, with a 95% range: how much better or worse B did, and where the true difference probably sits (computed on the log of the ratio of the two rates).
  • The p-value, from a two-sided two-proportion z-test. Below 0.05 means a gap this big would be rare if A and B were really the same.
  • The chance B beats A: a Bayesian estimate with flat Beta(1, 1) priors. It answers the question most people actually ask.

Example. A: 300 orders from 10,000 visitors (3.0%). B: 345 from 10,000 (3.45%). Lift +15%, 95% range −1.2% to +33.9%, p = 0.072, chance B beats A 96.4%. The p-value misses the usual 0.05 bar and the range still includes zero, so B looks promising but isn’t proven. Decide at the size you planned, not the moment the number looks good.

When not to trust the result

  • You stopped the first time it looked good. Checking every day and stopping on a win multiplies false winners. Pick the size first, read the result once.
  • The test ran less than a full week. Weekdays and weekends buy differently; run whole weeks.
  • The split is off. If a 50/50 test shows clearly uneven visitor counts, something is breaking the assignment. Fix that before you read anything.
  • You checked many metrics and kept the one that won. Look at 20 numbers and one will clear p < 0.05 by chance alone.
  • There are only a handful of conversions. These numbers rest on normal approximations, which get rough with very few orders per version.

Want this done for every test? See how Echo runs A/B tests, or browse test ideas for online stores.