A/B Test Sample Size Calculator
FreeFind how many visitors per variant your A/B test needs, with support for multiple variants (Bonferroni-corrected) and a test duration estimate.
Runs entirely in your browser. Your numbers are never uploaded anywhere.
Baseline & Effect
Test Parameters
More than 2 variants applies a Bonferroni correction to keep the overall error rate at your chosen confidence level across all pairwise comparisons against the control.
Estimate Test Duration (optional)
Recent Activity
Visible to everyone. Last 20 uses across all visitors, newest first.
No activity yet. Be the first.
What this tool does
This A/B test sample size calculator finds how many visitors per variant you need before running a test, based on your baseline conversion rate, the smallest effect you want to reliably detect, your desired confidence level, and statistical power. It uses the standard two-proportion z-test formula that underlies most A/B testing platforms.
Beyond a basic 2-variant calculation, it supports testing more than one variant against a control by automatically applying a Bonferroni correction, so the overall false-positive risk across all comparisons still matches your chosen confidence level rather than silently creeping higher. An optional daily traffic field also estimates roughly how many days the test would need to run.
Problems it solves
- Deciding how many visitors an A/B test needs before launching it, instead of guessing or stopping early.
- Understanding the sample size cost of chasing a smaller minimum detectable effect.
- Correctly sizing a test with 3 or more variants without underestimating the overall false-positive risk.
- Estimating roughly how many days a test needs to run given your site's actual daily traffic.
- Comparing how confidence level, power, and effect size trade off against required sample size.
Frequently asked questions
›What is the minimum detectable effect (MDE)?
It's the smallest real difference between your control and variant you actually want the test to be able to detect. Setting it too small (chasing tiny improvements) demands a huge sample size, while setting it too large means the test might miss a genuinely meaningful but smaller improvement. Absolute mode adds percentage points directly to the baseline (10% + 2pp = 12%); relative mode scales the baseline by a percentage (10% x 1.20 = 12%).
›What do confidence level and statistical power actually control?
Confidence level controls your tolerance for a false positive, declaring a winner when there really is no difference (a 95% confidence level means a 5% chance of that happening). Statistical power controls your tolerance for a false negative, missing a real difference that's actually there (80% power means an 80% chance of correctly detecting the effect if it exists, a 20% chance of missing it).
›Why does testing more than 2 variants need a correction?
Every extra comparison against the control is another chance for a false positive to slip through, so testing more variants at the same per-comparison confidence level quietly raises your true overall error rate. The Bonferroni correction tightens the confidence level for each individual comparison so the combined risk across all of them still matches your originally chosen confidence level, at the cost of needing a larger sample size per variant.
›Why is the required sample size so much larger than I expected?
Detecting small effects reliably is inherently expensive in terms of sample size, the required size grows roughly with the inverse square of the effect you're trying to detect, so cutting the MDE in half roughly quadruples the sample size needed. This is a real statistical constraint, not a flaw in the calculation, it's the same tradeoff every A/B testing platform faces.
›How is the test duration estimate calculated?
It divides the total sample size needed across all variants by your daily visitor count (split however your traffic is actually divided among variants) and rounds up to the nearest whole day. It's a planning estimate assuming steady, consistent traffic, actual test duration can run longer if traffic dips or if you also want to account for weekly cycles in user behavior.
›What statistical test does this assume will be used to analyze the results?
It assumes a standard two-proportion z-test comparing conversion rates, the most common approach for typical A/B tests measuring a binary outcome like "converted or didn't." If you're measuring a continuous metric instead, like revenue or time on page, a different sample size formula based on that metric's variance would apply.
Related Tools
Calculators
Amps To Watts Calculator
Convert between amps and watts for DC, AC single-phase, and AC three-phase circuits.
FreeCalculators
ANC Calculator
Calculate Absolute Neutrophil Count (ANC) from CBC values and see the NCI CTCAE neutropenia grade, right in your browser.
FreeCalculators
Angel Number Calculator
Discover the numerology meaning of a recurring number or your birth date Life Path Number, right in your browser.
FreeCalculators
Angle Converter
Convert angles between degrees, radians, gradians, turns, arcminutes, arcseconds, and milliradians with live DMS support.
Comments (0)
Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.
No comments yet. Be the first to share your thoughts!