A/B Testing Power & Sample Size Calculator (Interactive Sample Plan)
An interactive sample-plan builder that helps teams specify a defensible A/B test: enter baseline rates or means, select MDE, power, alpha, allocation, and traffic. Saves a reproducible plan and explains calculations, common pitfalls (peeking, multiple comparisons, sequential testing), and how to estimate test duration. Designed to store plans and integrate with a calculation engine or CSV export.
A/B Testing Power & Sample Size Calculator
Design tests that can actually answer your question
This tool helps you build a clear, reproducible sample-size and timing plan for common A/B experiments. Enter your baseline (conversion rate or mean and SD), choose a minimum detectable effect (MDE), and set statistical choices such as power, significance, sidedness, allocation and traffic. The form saves a complete test plan you can share, export, or run through an automatic calculator when your team enables the calculation engine.
Why this matters: Underpowered tests or vague MDEs lead to wasted time and misleading null results. Being explicit about assumptions (baseline, MDE, allocation) helps you interpret outcomes and avoid quietly post‑hoc rationalization.
Quick guidance and formulas
For two-sample proportions (equal allocation) a commonly used approximate formula for the sample size per group is:
n ≈ [ (Z_{1-α/2} * sqrt(2 * p̄ * (1 - p̄)) + Z_{power} * sqrt(p1*(1-p1) + p2*(1-p2)))^2 ] / (p1 - p2)^2
Where p1 is baseline, p2 = p1 ± MDE, and p̄ = (p1 + p2)/2. For continuous outcomes (means) you need an estimate of the standard deviation and can use the familiar two-sample t-test approximations.
The tool supports both conversion-rate (proportion) and continuous-mean scenarios, along with options for absolute/relative MDE and one- or two-sided tests.
Practical cautions
- Peeking & sequential testing: Repeatedly checking results inflates false positives. Pre-specify stopping rules or use sequential methods and appropriate corrections.
- Multiple comparisons: If you test many variants, adjust significance (e.g., Bonferroni, BH) or use multi-arm methods to avoid excess Type I error.
- External validity: Ensure the experiment environment reflects the population you want to generalize to; implementation differences can invalidate results.
Using this form
Fill required fields and press Calculate & Save Plan. The platform will store the plan for your team. If the calculation engine is available, the form will also compute sample sizes and estimate duration from traffic inputs; otherwise use the guidance and formula above or export the inputs as CSV for an offline calculation.
Save a personal copy, bring it to your team, or tailor the questions and workflow to fit what you are hungry to improve.
Discussion
Comments and conversation will live here.