A/B Test Sample Size Calculator
Visitors per variant for a two-proportion test.
Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.
A/B Test Sample Size Calculator
How to use this tool
- Enter the baseline conversion rate as a decimal (0.10 means 10%) and the smallest absolute lift you need to detect.
- Pick confidence and power, then press Generate. The tool shows the visitors needed per variant.
- Use Load sample for baseline 10%, effect 2 points, 95% confidence and 80% power, or Clear to start again.
Worked example
For baseline 0.10, minimum detectable effect 0.02, 95% confidence (z = 1.96) and 80% power (z = 0.84), the per-variant size is 2 x (1.96 + 0.84)^2 x 0.10 x 0.90 / 0.02^2, which is about 3,532 visitors per variant (rounded up).
What this tool does not do / Limits
This is a normal-approximation calculation for teaching and planning. It assumes a two-sided two-proportion test with equal split and independent visitors; it ignores peeking, segmentation, multiple variants and real-world variance, so treat the result as a planning figure, not a guarantee.
Frequently asked questions
Why is the number so large for a small effect?
Sample size grows with the square of the inverse effect: halving the effect you want to detect roughly quadruples the visitors needed. Small lifts need large samples.
Is this per variant or in total?
Per variant. Double it for the total across both variants, and remember that reaching it takes as long as your traffic allows.
Related tools
UTM Campaign Builder
Create UTM-tagged URLs with validation, naming presets, bulk CSV mode and saved presets in your browser.
LivePricing and Break-Even Simulator
Simulate price, profit, margin and break-even units with all fees included and every formula on display.
LivePercentage Calculator
Calculate percentages, percentage-of figures and percentage change with plain results.
Live