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.
Per group
7,426
In total
14,852
Duration
3.7 wk
With 4,000 visitors a week you need about 4 weeks to detect a 10% lift, from 18.0% to 19.8%.
How it's calculated
n = (z1−α/2√(2p̄(1−p̄)) + z1−β√(p₁(1−p₁) + p₂(1−p₂)))² ÷ (p₂ − p₁)²
- 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.
- Control rate
- 18.00%
- Variant rate
- 20.71%
- Absolute lift
- +2.71 pts
- Relative lift
- +15.1%
- p-value
- 0.002
- 95% interval, difference
- +1.03 to +4.40 pts
Significant
The variant converts better, and a gap this size would be unlikely if there were no real difference.
How it's calculated
z = (pB − pA) ÷ √(p(1−p)(1/nA + 1/nB))
- p-value
- Not the chance the variant is better. It is how surprising your data would be if there were no difference at all.
- Interval for the difference
- The range of lifts consistent with the data. If it runs from barely above zero to large, plan on the low end.
- Underpowered
- The groups are smaller than a lift of the size you saw needs for 80% power. A win on thin data tends to shrink when you roll it out; a loss on thin data proves nothing.
- Stopping early
- Checking daily and stopping at the first p below 0.05 inflates false wins. Decide the sample in the planner first and read the result once.
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.