Research tools · Experimentation
A/B Test Significance & Sample Size Calculator
From a measured difference to a decision worth trusting.
Independent visitors · binary conversions · fixed horizon · expected traffic split 50:50.
Relative lift
15.00%
Absolute lift: 0.750 percentage points
95% lift interval
1.59% to 28.41%
Unpooled delta-method interval
Two-tailed p-value
0.01870
Pooled two-proportion Z-test
Z-score
2.352
Control 5.00% · Variation 5.75%
Projected revenue change
—
If all entered visitors received B, versus A; constant order value.
Allocation χ²
0.000
1 degree of freedom · SRM p 1.000
Reference
A/B Test Calculator Reference
Inputs, outputs, formulas and decision rules for the significance test and sample-size planner.
How to use
- Step 1
Enter unique visitors and conversions for Control (A) and Variation (B), choose a confidence level, and optionally add an average order value for the revenue projection.
- Step 2
Read the verdict banner first, then the lift, interval, p-value and allocation check. Investigate any sample-ratio-mismatch alert before trusting the outcome.
- Step 3
Switch to Sample size & runtime to plan a new test: enter the baseline rate, the smallest relative effect worth detecting, daily traffic, power and α to get the required sample and days.
Metric definitions
- Relative lift
- The percentage change of the variation rate versus control: (B − A) / A. Undefined when the control rate is zero.
- Absolute lift
- The raw difference between conversion rates, in percentage points. Check it alongside relative lift, which scales impressively on small baselines.
- Lift interval
- An unpooled delta-method confidence interval for relative lift at the selected confidence level. An interval spanning a meaningful loss and gain is not a mandate to ship.
- Two-tailed p-value
- The probability of a difference at least this extreme in either direction if both variants truly converted identically. It is not the probability that B is better.
- Z-score
- The standardized difference from the pooled two-proportion test. Larger absolute values mean stronger evidence against equal rates.
- Projected revenue change
- Absolute lift × total entered visitors × average order value. A sizing estimate that assumes every visitor receives the variation at constant order value.
- Allocation χ² / SRM
- Pearson goodness-of-fit of observed visitors against the expected 50:50 split. A mismatch p below 0.001 triggers the alert: investigate redirects, logging and bot filtering before interpreting results.
- Sample per variant
- Visitors required in each arm to detect the specified effect at the chosen α and power with equal allocation.
- Estimated runtime
- Total required traffic divided by daily eligible visitors, rounded up. Plans over 45 days are flagged because long tests drift with seasonality and product changes.
Mathematical formulas
- Pooled rate
- p̂ = (xA + xB) / (nA + nB)
- Two-proportion Z-test
- Z = (p̂B − p̂A) / √[ p̂(1 − p̂)(1/nA + 1/nB) ]
- Relative lift
- lift = p̂B / p̂A − 1
- Sample ratio check (1 df)
- χ² = Σ (O − E)² / E, E = (nA + nB) / 2
- Sample size per variant
- n = [ z1−α/2·√(2p̄(1−p̄)) + z1−β·√(pA(1−pA) + pB(1−pB)) ]² / (pB − pA)²
- Runtime
- days = ⌈ 2n / daily visitors ⌉
All computations run in your browser; no inputs leave the page.
FAQs
Can I stop the test as soon as it becomes significant?
Not with a fixed-horizon test. Repeated looks inflate false positives well beyond the nominal 5%. Use the planned sample, or choose a sequential method such as always-valid inference before launch.
How much sample do I need?
Use the Sample size & runtime tab. Lower baselines, smaller effects, stricter α and higher power all raise the requirement — a 5% baseline with a 10% relative MDE at 80% power needs roughly 31,000 visitors per variant.
What do I do when the SRM alert fires?
Pause interpretation. Check redirect latency, exposure logging, bot filtering and traffic routing — the observed groups may not be comparable, so the lift estimate is unsafe until the cause is fixed.
Is relative lift the same as percentage-point change?
No. Relative lift divides the difference by the control rate; percentage-point change is the raw difference. A 0.5-point gain on a 2% baseline is a 25% relative lift.
Methodology & sources
- Kohavi, Tang & Xu (2020). Trustworthy Online Controlled Experiments. Cambridge University Press.
- Fabijan et al. (2019). Diagnosing Sample Ratio Mismatch in Online Controlled Experiments. ACM SIGKDD.
- Johari, Koomen, Pekelis & Walsh (2022). Always Valid Inference. Operations Research, 70(3).
- Gelman & Carlin (2014). Beyond Power Calculations: Type S and Type M Errors. Perspectives on Psychological Science, 9(6).
