Lab

A/B test calculator

Size a test from your traffic, then read a verdict that says when the data is too thin to call.

Enter your traffic and the result you saw, and read whether the data is enough to call.

The tool

Plan a test, then read it

The example tests an approval reminder email: does nudging the approver lift the share of trip requests that end in a completed booking from 18%? Plan the sample first, then check the result against it.

Your test

%

Today's rate for the step you are testing, from a few normal weeks of data.

%
Effect measured as

The smallest lift worth finding: 18.0% to 19.8%.

Confidence
Power
Groups, control included
Traffic counted as

Split evenly: 2,000 a week per group.

Per group

7,426

In total

14,852

Duration

3.7 wk

26 days

With 4,000 visitors a week you need about 4 weeks to detect a 10% lift, from 18.0% to 19.8%.

Smaller effects cost more visitorsVisitors per group (log scale) for each effect size. Hover or focus the chart and use the arrow keys to read it.

How it's calculated

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

z1−α/2 = 1.960, z1−β = 0.842, p₁ = 0.180, p₂ = 0.198, p̄ = 0.189

The formula
A two-sided, two-proportion z-test: the sum most calculators use. It lands on 3,841 per group for a 10% baseline and a 20% relative lift at 95% and 80% power.
Minimum detectable effect
Not the lift you hope for: the smallest one that would change your decision. Halve it and you need roughly four times the visitors.
Confidence and power
Confidence guards against false wins (1 in 20 at 95%). Power is the chance of catching a real effect of your chosen size (4 in 5 at 80%).
More than one variant
Each variant is compared with control, so the false-win budget is split across the comparisons (Bonferroni). Three groups test at 97.5% each.

When I reach for it

Before any test goes live, I size it. In B2B travel the traffic is modest: a few thousand trip requests a week, not millions of sessions. That changes everything. A test that would finish in a day on a consumer site can take two months here, and I would rather know that before I promise a result in a sprint review.

The planner answers three questions: how many visitors each group needs, how long that takes at our traffic, and what the smallest lift is that I could realistically see in a month.

The traps

  • Choosing the effect you hope for. The minimum detectable effect should be the smallest lift that would change the decision, not the one in the pitch deck. Halve it and the sample roughly quadruples.
  • Adding variants for free. Every extra variant is another chance of a false win, so each comparison has to clear a higher bar. Three groups need more than one and a half times the visitors of two.
  • Peeking. Checking the numbers every morning and stopping at the first p below 0.05 turns a 5% false-win rate into something much worse. I plan the sample, run whole weeks, and read it once.

How I read a result

The verdict has three states on purpose. Significant with enough data means I can act, and I plan on the lower end of the interval, not the headline lift. Not significant with enough data means the effect, if there is one, is probably too small to matter.

The third state is the one people skip: underpowered. The groups are smaller than an effect of the observed size needs, so a win is likely to shrink when it ships and a loss proves nothing. Saying “we do not know yet” is a better answer than a confident one that turns out wrong.

The overlap chart

The dot-and-whisker chart shows each rate with its interval. When the bars do not touch, the difference is clearly significant. When they overlap a little, it can still be significant, which surprises most people: the test on the difference is narrower than the two separate bars suggest. That is why the p-value and the interval for the difference sit next to the chart rather than being replaced by it.

Start a conversation

Have something in mind?

Start a conversation