Free CRO tool

Sample Size Calculator

How many visitors do you need before your A/B test results are reliable? Calculate the exact sample size with your preferred confidence level and power.

Your numbers

%

Your control variation's current conversion rate.

%

Smallest relative improvement you want to reliably detect.

Significance level
Statistical power

Your results

Baseline rate
—
Target rate
—
Significance
—
Power
—

Fill in your baseline rate and MDE to calculate sample size.

Not sure what to test next? Run a free CRO audit

Understanding sample size for A/B tests

Sample size is one of the most misunderstood concepts in A/B testing. Most teams either run tests that are wildly underpowered (stopping after a few hundred visitors), or they run tests for far longer than necessary because they never calculated upfront how much traffic they need.

The required sample size per variation depends on four variables: your baseline conversion rate, the minimum effect size you want to detect, your significance threshold, and your desired statistical power. Changing any one of these dramatically affects how much traffic you need.

Significance level vs. statistical power

Significance level (α) controls your false positive rate: the probability of declaring a winner when there's actually no real difference. At 95% significance (α = 0.05), you'll incorrectly declare a winner 5% of the time by pure chance. Lower α means fewer false positives, but requires more traffic.

Statistical power (1 − β) controls your true positive rate: the probability of detecting a real effect when one exists. At 80% power, you'll correctly identify a true winner 80% of the time. The other 20% are false negatives: real improvements you miss. Higher power requires more traffic.

How MDE affects your sample size

Your minimum detectable effect has the biggest impact on sample size requirements. Here's how different MDEs compare on a 2% baseline with 95% significance and 80% power:

MDETarget rateSample per variationFeasibility
5%2.10%~156,000Very high traffic
10%2.20%~39,000High traffic
15%2.30%~17,500Moderate traffic
20%2.40%~9,900Most sites
30%2.60%~4,500Low traffic OK

Frequently asked questions

Is the sample size per variation or total?

Per variation. For a standard A/B test with two groups (control + one variation), multiply the result by 2 to get total visitors needed. For a three-way test (A/B/C), multiply by 3, though multivariate tests with more than two variations require even more traffic and are harder to reach significance on.

What significance level should I use?

95% is the industry standard for most A/B tests. Use 90% for low-stakes decisions where you want shorter test durations and can accept a slightly higher false positive rate. Use 99% for high-impact changes like pricing, payment flow, or major checkout redesigns, where shipping the wrong winner would be very costly. Never go below 90%.

What power should I choose?

80% power is the standard for most CRO programs. It means you'll miss 20% of real effects, which is acceptable in most cases. Choose 90% if you have high traffic and can afford longer tests. 70% is acceptable only for early-stage exploratory tests where you're looking for directional signal rather than definitive decisions.

What if my required sample size is unreachable?

If the required sample size would take 3+ months at your current traffic levels, you have a few options: increase your MDE (only test bolder changes that produce larger effects), reduce the number of variations, focus testing on higher-traffic pages, or consolidate traffic to fewer test pages. Low-traffic sites often benefit more from qualitative CRO research (user sessions, heatmaps, user testing) than from statistically-powered A/B testing.

The formula

p₂ = p₁ × (1 + MDE)n = (Zα/2 + Zβ)² × (p₁(1 − p₁) + p₂(1 − p₂)) / (p₂ − p₁)²
n
Visitors needed in each variation (rounded up).
p₁, p₂
Baseline conversion rate and the rate you want to be able to detect.
Zα/2
Two-sided critical value for your significance level (1.6449 at 90%, 1.96 at 95%, 2.5758 at 99%).
Zβ
Critical value for your statistical power (0.5244 at 70%, 0.8416 at 80%, 1.2816 at 90%, 1.6449 at 95%).

This is the standard two-proportion z-test sample size formula: the minimum number of observations needed in each group to detect a difference of (p₂ − p₁) with the specified significance level (α) and power (1 − β).

Ready to find your hidden revenue?

Run your free CRO audit today.

Paste a URL and get a deterministic score with prioritized findings in minutes. Free single-page audits, no credit card required.