Ana Fernández / SEO
Free tool

A/B test sample size calculator.

Before launching a test, know how many visitors each variant needs to make the result reliable. Enter current CVR, minimum detectable effect and daily traffic to get required sample and estimated test duration.

Test parameters
Sample per variant
95% confidence · 80% statistical power
13,899
Total sample
Across all variants
27,798
Estimated duration
At 1,000 sessions/day
27.8 days

Why sample size decides if your A/B test is serious or theatre

An A/B test without pre-calculated sample size is a coin flip. You can see a 15% difference between variants and be looking at pure noise; you can see a 2% difference and have a statistically valid winner. The only way to separate signal from noise is to start with a pre-calculated sample.

Sample size depends on three decisions: how strict you want to be with false positives (confidence level), how sure you want to be of detecting a real effect (statistical power), and how small the effect you want to detect (MDE).

The two-proportion sample size formula

Formula (per variant)
n = 2 × p̄(1−p̄) × ((Zα/2 + Zβ) ÷ Δ)²

Where p̄ is the expected average CVR across control and variant, Δ is the expected absolute difference, Zα/2 = 1.96 for 95% confidence and Zβ = 0.84 for 80% power. Intimidating on paper; the calculator does it for you.

Key concepts without math

Baseline (current conversion rate)

The starting point. The CVR of your control today. Lower baseline → larger sample required to detect differences.

MDE (Minimum Detectable Effect)

The smallest lift you want to reliably detect. 20% MDE on a 3% base means detecting a move to 3.6% or higher. Small MDEs are ambitious: they demand huge samples.

Statistical confidence

Probability of avoiding a false positive. 95% (α = 0.05) is the marketing standard. Lowering to 90% cuts sample but raises risk. Raising to 99% multiplies sample by 1.7.

Statistical power

Probability of detecting an effect that actually exists. 80% (β = 0.20) is the acceptable minimum. At 70% you miss 3 out of 10 real winners due to lack of sensitivity.

Reference table: sessions needed per variant

Baseline CVRMDE 10%MDE 20%MDE 30%
1%~118,000~29,500~13,100
2%~58,400~14,600~6,500
3%~38,600~9,650~4,300
5%~22,800~5,700~2,550
10%~10,800~2,700~1,200

Approximate values at 95% confidence, 80% power, two variants.

Common mistakes when calculating sample size

1. Stopping the test when "it looks clear"

The most expensive CRO mistake. Stopping before the pre-calculated sample raises the false-positive rate to 30-40%. Wait. Trust the math.

2. Testing too many variants with low traffic

Each extra variant adds sample. With limited traffic, prioritise simple A/B (2 variants) over multivariate. Learnings arrive sooner.

3. Ignoring weekly cyclicality

Even if the sample is reached in 3 days, run the test at least 7 to capture day-of-week variability. Saturday users behave differently than Tuesday ones.

When you don't have enough traffic for an A/B test

If your page doesn't produce statistical traffic, it doesn't mean you can't optimise: it means you should prioritise big value-prop changes, not detail tweaks. Test entire landing restructurings instead of button colors. In parallel, invest in SEO and content to grow the traffic base to the threshold where quantitative CRO becomes viable.

Frequently asked questions

Everything you need to know about A/B test sample size

Why calculate sample size for an A/B test?

+

To know how many visitors per variant you need before the result is statistically valid. Without it, you risk stopping the test early and acting on results that are actually random noise.

How many visitors do I need for an A/B test?

+

Depends on baseline and effect size. With 3% CVR chasing a 20% lift you need ~9,500 sessions per variant for 95% confidence and 80% power. Smaller baseline or smaller effect → sample grows fast.

What is MDE (Minimum Detectable Effect)?

+

The smallest lift you want to reliably detect. A 20% MDE on a 3% baseline means detecting a move to 3.6% (or more) with confidence. Smaller MDE, larger sample required.

What do 95% confidence and 80% power mean?

+

95% confidence (alpha 0.05): the chance of calling a variant a winner when it's not is just 5%. 80% power (beta 0.20): if the variant truly wins, you have 80% chance of detecting it. Industry standard.

Can I A/B test with low traffic?

+

Yes, with caveats. Low traffic only lets you detect big changes (high MDE), which limits what makes sense to test. Practical rule: if your page doesn't get at least 10,000 sessions/month, prioritise big value-prop changes over detail optimisations.

Can I stop a test when it shows a winner?

+

No. Stopping before the pre-calculated sample raises the false-positive rate (the 'peeking problem'). Run the test to the target sample, even if a winner looks clear.

How long should an A/B test run?

+

At least one or two full weeks to capture day-of-week variability, even if the sample is reached earlier. Never less than 7 days. A 3-day test can be biased by different weekend behaviour or one-off campaigns.

Enterprise SEO consultancy

Every paid click has an organic equivalent waiting to be earned.

We design end-to-end SEO programs for brands that want to lower their paid dependency, scale predictable organic traffic and dominate Google plus the new AI search surfaces.

+1B
Organic visits generated
+280%
Average lead growth
-73%
CAC reduction
+2,500%
AI search visibility
What we do

SEO strategy, technical SEO, content, authority and AI visibility (GEO) under one senior team. SEO tied to pipeline and revenue, not vanity metrics.

How we do it

Squad embedded in Slack, Notion and Linear. Weekly sprints, a 12–24 month roadmap and executive reporting that connects every organic move with CAC, leads and revenue.

What you get

Compounding organic growth, lower paid dependency, growing share of voice in LLMs and an acquisition channel that keeps working when you stop paying for clicks.

Methodology
/01
Diagnosis

Technical, content, authority and LLM visibility audit. Benchmark vs. competitors and opportunity quantified in traffic and revenue.

/02
Strategy

Topic universe prioritised by intent, 12–24 month traffic projection and a measurement model wired to business outcomes.

/03
Execution

Technical fixes, briefs, content, on-page, authority and GEO shipped every week. Embedded operation, not deliverables that sit in a PDF.

/04
Measurement

Organic KPIs tied to pipeline and CAC. Monthly iteration on what is actually moving the business, not on what climbs in Search Console.

SEO consultancy

Is your CPC high and your margin eroding?

We will send you a free SEO diagnostic with the real organic opportunities for your domain and a projection of how much you could cut paid spend while keeping the same lead volume.