A/B Test Sample Size & Test Duration Calculator
HOTDetermine required sample sizes and test duration per variation for conversion rate A/B tests using statistical power and significance thresholds.
๐ Recommended WorkflowWorkflow Chain
Tools recommended next in your workflow based on your current task.
Conversion Funnel Drop-off & Bottleneck Analyzer
Verify your business margins and operational metrics next.
Customer Churn, Retention & LTV Simulator
Verify your business margins and operational metrics next.
Influencer Engagement Rate & Ad Rate Calculator
Verify your business margins and operational metrics next.
A/B Testing Sample Size Mechanics & Statistical Power
In conversion rate optimization (CRO) and digital experimentation, the most frequent failure mode is premature declaration of a winning variantโknown formally as the Peeking Problem. If Variant B exhibits a 25% conversion lift after only 3 days of testing with a few hundred visitors, there is an extraordinarily high probability that this apparent lift represents random sampling noise rather than genuine consumer preference.
Halting an A/B test before reaching the mathematically prescribed minimum sample size inflates Type I errors (False Positives) from the intended 5% to over 30% to 50%. This results in engineering and marketing teams permanently deploying changes that either provide zero true value or actively harm long-term revenue.
This statistical calculator models required sample sizes per variant based on baseline conversion rates, minimum detectable effects (MDE), statistical confidence (95%), and power (80%), forecasting the exact calendar duration required based on daily inbound traffic.
A/B Testing Sample Size Mechanics & Hypothesis Testing
Ending an experiment prematurely before reaching statistical power leads to false discoveries (Type I errors). Determining necessary sample size beforehand guarantees decision integrity.
Step-by-step practical calculation breakdown demonstrating the formula in action.
๐ The experiment must run for a full 14 days without early peeking until both variations accumulate 13,000 unique visitors, guaranteeing decision validity.
- Two-Tailed Standard Formula: n = [ 2 ร (Z_ฮฑ/2 + Z_ฮฒ)^2 ร p ร (1 - p) ] / (p1 - p2)^2
- Confidence Level (95%): Limits false positives (Type I error) to under 5% (Z_ฮฑ/2 = 1.96).
- Statistical Power (80%): 80% probability of successfully detecting a genuine lift if one truly exists (Z_ฮฒ = 0.84).
- Inverse Square Rule: Detecting a tiny 2% lift requires massive traffic cohorts, whereas targeting a bold 20%+ redesign lift resolves with compact sample sizes.
- Full Business Cycle Rule: Always run tests for at least 7 to 14 full days to account for day-of-week behavioral variance.
Required Sample Size per Variant Matrix (95% Confidence, 80% Power)
Standard sample sizes required per variation across combinations of baseline rates and relative MDE targets.
| Baseline Conversion Rate | MDE +10% Relative Lift | MDE +15% Relative Lift | MDE +20% Relative Lift | MDE +30% Relative Lift |
|---|---|---|---|---|
| 1.0% (E-Commerce Purchase) | 152,000 / variant | 68,000 / variant | 38,500 / variant | 17,200 / variant |
| 2.0% (B2B Lead Submission) | 76,000 / variant | 34,000 / variant | 19,200 / variant | 8,600 / variant |
| 3.0% (Standard Landing Page) | 50,500 / variant | 22,500 / variant | 12,700 / variant | 5,700 / variant |
| 5.0% (Free Trial Signup) | 30,000 / variant | 13,400 / variant | 7,500 / variant | 3,400 / variant |
| 10.0% (Key Product Click) | 14,200 / variant | 6,300 / variant | 3,600 / variant | 1,600 / variant |
| 20.0% (Top-of-Funnel Micro-Action) | 6,300 / variant | 2,800 / variant | 1,600 / variant | 700 / variant |
How to Use
11. Enter Baseline Conversion Rate
Input your current historical conversion rate for the control page (e.g., 3.0% or 5.0%).
22. Set Minimum Detectable Effect (MDE)
Specify the minimum relative lift you expect to reliably detect (e.g., 15% relative improvement).
33. Choose Statistical Confidence & Power
Select confidence level (default 95%, ฮฑ=0.05) and statistical power (default 80%, ฮฒ=0.20).
44. Review Sample Size per Variation & Test Duration
Identify required sample size per variation (A vs B) and calculate estimated test runtime given daily traffic.
A/B Experiment Duration Scenarios
Sample size requirements across contrasting traffic volumes.
Requires ~13,800 visitors per variant (27,600 total). At 2,000 visitors/day, the test concludes cleanly in 14 days.
Demands ~11,000 visitors per variant; high-traffic retailers can resolve this test within 3โ4 days.
Testing subtle 3% button color changes is mathematically infeasible; bold UX overhauls (MDE > 35%) are required.
Isolating seasonal promotional spikes to prevent temporary purchasing frenzy from corrupting evergreen baseline models.
๐ก Pro Tips & Critical Pitfalls
Do not check conversion results daily and stop the test early when one variant appears ahead; this inflates false-positive errors to over 30%.
Even if your sample size is achieved within 3 days, run tests for at least one full week to balance weekday versus weekend buying psychology.
If your monthly traffic is under 20,000 visitors, test radical architectural value proposition redesigns rather than subtle copy tweaks.
โ ๏ธ Common Pitfalls & Mistakes to Avoid
Frequently Asked Questions (FAQ)
Expert answers to the most frequently asked questions and edge cases.
Known as the 'Peeking Problem', calling early winners based on temporary random fluctuations inflates false positive error rates from 5% to over 30%, destroying experiment validity and leading you to implement false positive changes.
MDE is the smallest relative percentage improvement in conversion that your experiment is statistically powered to detect. Smaller MDEs (e.g., 2%) require exponentially larger sample sizes than bold changes (e.g., 20%).
80% power represents the optimal balance between sample collection speed and certainty, ensuring an 80% likelihood of correctly detecting a real conversion difference when one truly exists.
Early-stage sites should test radical overhauls (targeting MDEs of 30%+), combine micro-conversion metrics, or prioritize qualitative user testing over quantitative split testing.
User behavior shifts markedly between Monday morning and Saturday evening. Completing full 7-day cycles ensures day-of-week seasonality does not skew experiment findings.
None. All statistical algorithms execute strictly inside your local browser memory with total confidentiality.