Free tool · 3–5 min

A/B Test Planner + Hypothesis Guidance

Find A/B test sample size and duration from baseline rate, relative MDE, confidence, and power, plus hypothesis guidance.

Test design

Plan A/B test sample size and duration for a two-variant, 50/50 design. Relative lift is not the same as percentage-point change. Duration is an estimate, not a guarantee of significance.

Example: 20 means +20% relative (3% → 3.6%), not +20 percentage points.

Hypothesis guide

Sample size and duration for search intent

Teams searching for how many visitors an A/B test needs usually need two answers: sample size per variation at a stated sensitivity, and a rough duration given weekly eligible traffic.

This planner sizes a two-sided, two-proportion test with equal (50/50) allocation. Duration is a planning estimate under steady traffic, not a promise that the test will be significant.

Baseline rate, MDE, confidence, power, and duration

Baseline conversion rate is the current primary-metric rate for eligible traffic. Minimum detectable effect (MDE) here is a relative lift (for example +20% relative means 3% → 3.6%), not +20 percentage points.

Confidence level maps to Type I error (α). Statistical power is 1 − β: the chance of detecting a true effect of the planned size. Higher confidence or power, and smaller relative MDE, all increase required sample size.

Estimated weeks ≈ total sample ÷ eligible visitors per week (with 50/50 split already baked into total sample).

Formulap2 = p1 × (1 + relative MDE). Absolute MDE (pp) = (p2 − p1) × 100. n per arm uses the normal approximation for two proportions; total n = 2 × n per arm.

Worked numerical example

Numbers below match the planner’s calculation code for a common planning scenario.

3% baseline, +20% relative MDE, 95% confidence, 80% power, 10,000 eligible visitors / week

  1. Variant rate target = 3% × 1.20 = 3.6% (absolute MDE = 0.6 percentage points)
  2. Sample size ≈ 13,913 visitors per variation (27,826 total)
  3. At 10,000 eligible visitors / week with 50/50 split ≈ 3 weeks (~20 days)
  4. At only 2,000 visitors / week the same design needs ≈ 14 weeks, often too long to treat as a single stable experiment

Meeting sample size makes an effect of that size reasonably detectable under the model. It does not guarantee a significant outcome, and peeking early inflates false positives.

Statistical warnings to keep intact

Avoid optional stopping and repeated significance peeks. Watch seasonality, promotions, bots, and sample quality. Multiple metrics or sequential looks need different methods than this planner provides.

Frequently asked questions

How many visitors do I need for an A/B test?

It depends on baseline rate, the relative lift you care to detect, confidence, and power. Use the planner above; a 3% baseline with +20% relative MDE at 95%/80% needs about 13,913 visitors per variation.

What is relative MDE vs percentage points?

Relative MDE scales the baseline (3% + 20% relative → 3.6%). Percentage points are the absolute gap (0.6 pp). Confusing them massively mis-sizes tests.

Does reaching sample size prove the test will win?

No. Sample size planning only makes a true effect of the planned size reasonably detectable. The result can still be inconclusive or negative.

Why is duration only an estimate?

Duration assumes steady eligible traffic, 50/50 allocation, and one primary metric evaluated at the planned sample. Real traffic and seasonality often differ.

Should I stop the test when it looks significant early?

Repeated peeking and optional stopping inflate false positives. Pre-commit to sample size or use a proper sequential design. This planner does not cover sequential monitoring.