Skip to main content
Back to Blog

Sample Size Before the Test Starts: The A/B Math, Computed

•Digital Marketing Toolset Team•5 min read

Detecting a +2pp lift on a 10% baseline at 80% power takes 3,841 visitors per variant — but halve the lift to +1pp and the bill is 14,751. At 500 visitors per variant a week, that is 3.8 weeks vs 29.5. Compute the bill before the test starts, from this site's own sample-size calculator.

Sample Size Before the Test Starts: The A/B Math, Computed

Listen to this article

Browser text-to-speech

An A/B test that cannot reach its sample size is not a slow test — it is an already-answered negative. Detecting a +2 percentage-point lift on a 10% baseline at the standard 80% power and 5% significance takes 3,841 visitors per variant; at 500 visitors per variant a week, that is 7.7 weeks of running before the data can legitimately speak. Most "inconclusive" tests were inconclusive by construction: the traffic needed to detect the lift was never budgeted. The fix is arithmetic, and it belongs before the test — this study computes the bill from the exact formula this site's A/B Sample Size Calculator encodes.

The formula, and the default bill

The calculator runs the standard two-proportion z-test power formula: n per variant = (z_alpha x sqrt(2 x pooled x (1 − pooled)) + z_power x sqrt(p1(1−p1) + p2(1−p2)))² / (p2 − p1)², with p2 = baseline + lift, z_alpha = 1.95996 at the two-sided 5% level, z_power = 0.84162 at 80% power. Its own defaults — 10% baseline, +2pp lift, 80% power, 5% alpha — bill 3,841 per variant, 7,682 total.

Grid 1: the lift is the whole price

Hold the defaults and vary only the minimum detectable effect:

MDE (absolute)Relative liftPer variantTotalWeeks at 500/wkat 1,000/wk
+0.5pp5%57,763115,526115.557.8
+1.0pp10%14,75129,50229.514.8
+1.5pp15%6,69313,38613.46.7
+2.0pp20%3,8417,6827.73.8
+3.0pp30%1,7743,5483.51.8
+5.0pp50%6861,3721.40.7

The pattern is the inverse-square law: sample size divides by the square of the lift, so halving the lift quadruples the bill. The +0.5pp row is the one worth internalizing — 115,526 total visitors to detect a 5% relative improvement is beyond most sites' yearly traffic, which is why "we'll just run it and see" quietly becomes "we'll run it forever."

Grid 2: baselines, power and alpha

LeverChangePer variant
Baseline (at +2pp)1% / 5% / 10% / 20% / 30%769 / 2,213 / 3,841 / 6,510 / 8,394
Power80% → 90% → 95%3,841 → 5,142 → 6,358
Alpha (two-sided)10% → 5% → 1%3,026 → 3,841 → 5,716

Three readings. Mid-range baselines are the expensive ones — a proportion's variance p(1−p) peaks near 50%, so a 30% baseline costs 8,394 per variant where a 1% baseline costs 769 for the same +2pp (and at 1%, +2pp is a 2x relative lift — small absolute, enormous relative). Going from 80% to 90% power costs a third more traffic (5,142 vs 3,841) to cut the chance of missing a real effect from 20% to 10%. Tightening alpha from 5% to 1% costs 5,716 — the price of fewer false positives.

What an underpowered finished test looks like

The site's A/B Test Significance Calculator ships a default scenario that is exactly this failure mode: 250/5,000 (5.0%) against 290/5,000 (5.8%) — a +0.8pp, 16% relative lift. The pooled z-score computes to 1.770 and the two-sided p-value to 0.0768: not significant at the 95% standard, significant at 90%. A 16% lift is real money on paper, and the test still cannot swear to it at 5,000 visitors per arm — because the pre-test bill at a 5% baseline and +0.8pp lift runs to roughly five figures per variant, not five thousand. The Conversion Rate Calculator supplies the rate half of every one of these inputs.

Methodology

Every figure is computed from the A/B Sample Size Calculator's own implementation — the two-proportion z formula with pooled variance under H0, inverseNormalCdf for z_alpha (1.959964 at 5% two-sided) and z_power (0.841621 at 80%), ceiling at the end — transcribed exactly and recomputed in python3 (2026-11-14), with the z-values cross-checked against standard tables and the significance calculator's default scenario re-derived with the pooled z-test (z = 1.770, p = 0.0768). Runtime rows divide sample size by stated weekly traffic; no peeking, sequential or multi-armed designs are modeled — this is the fixed-horizon bill. Decide the lift worth detecting first; the arithmetic decides everything else.


This article is general information computed from the site's own calculator encodings, not statistical consulting. Figures verified on 2026-11-14.


Related Tools:

See what our calculators can do for you

Ready to take control of your finances?

Explore our free financial calculators and tools to start making informed decisions today.

Explore Our Tools

Frequently Asked Questions

Common questions about the Sample Size Before the Test Starts: The A/B Math, Computed

It depends on four inputs, and the bill is nonlinear. At this site's A/B Sample Size Calculator defaults - 10% baseline conversion, a +2 percentage-point minimum detectable effect, 80% power, 5% significance (two-sided) - the two-proportion z-test formula requires 3,841 visitors per variant, 7,682 total. Halve the detectable lift to +1pp and the requirement quadruples to 14,751 per variant. Shrink the lift to +0.5pp and it is 57,763 per variant.