Statistics

A/B Test Sample Size Calculator

Estimate how many users each variant needs so your A/B test can detect a given lift with the confidence and power you expect.

ab testingsample sizepower analysisminimum detectable effect
A/B Test Sample Size

Plan controlled experiments with statistically sound sample sizes before you launch.

Sample size per variant
22,663
Total sample size
45,326
Baseline conversion
3.5%
Variant conversion
4%
Absolute lift targeted
0.5% (pts)
Relative lift
14.29%
Confidence (zα/2)
95% (z ≈ 1.960)
Power (zβ)
80% (z ≈ 0.842)
Estimated duration
2.3 days (0.3 weeks)

Two-proportion sample size

n = [Z_{α/2}√(2p̄(1 − p̄)) + Z_{β}√(p₁(1 − p₁) + p₂(1 − p₂))]² / (p₂ − p₁)²

p₁ is the baseline conversion rate, p₂ = p₁ + minimum detectable effect, p̄ = (p₁ + p₂)/2, Z_{α/2} is tied to confidence, and Z_{β} represents statistical power.

How to use

  1. Enter your current conversion rate (control) and the absolute lift you want to be able to detect.
  2. Choose a confidence level (alpha) and statistical power (1 − beta).
  3. Optional: provide daily visitors to estimate how long the test will need to gather that many samples.

Example

Input: Baseline = 3.5%, Lift = 0.5 pts, Confidence = 95%, Power = 80%

Output: ≈22,663 visitors per variant (≈45,326 total) to detect the lift reliably.

Student-friendly breakdown

This walkthrough emphasizes the most searched ideas for A/B Test Sample Size Calculator: A/B Test Sample Size Calculator. Start with the formula above, then follow the guided steps to double-check your work. For quick revision, highlight the givens, plug into the equation, and finish by verifying your units.

Need more support? Use the links below to open the long-form guide, browse additional examples, or hop into adjacent calculators within the same topic — each one is a quick way to double-check your work or handle a related question without starting from scratch.

Deep dive & study plan

A/B Test Sample Size Calculator: Two-proportion power analysis for experiments with a target lift, confidence, and power. It's built around ab testing, sample size, power analysis, minimum detectable effect, so you can go from a raw question to a checked answer without switching tools.

The math behind it: p₁ is the baseline conversion rate, p₂ = p₁ + minimum detectable effect, p̄ = (p₁ + p₂)/2, Z_{α/2} is tied to confidence, and Z_{β} represents statistical power. The core relationship is n = [Z_{α/2}√(2p̄(1 − p̄)) + Z_{β}√(p₁(1 − p₁) + p₂(1 − p₂))]² / (p₂ − p₁)², shown above the calculator so you can see exactly how your inputs turn into the result.

To use it well: (1) Enter your current conversion rate (control) and the absolute lift you want to be able to detect. (2) Choose a confidence level (alpha) and statistical power (1 − beta). (3) Optional: provide daily visitors to estimate how long the test will need to gather that many samples. Keep your units consistent as you go, and re-run a case you already know the answer to — it's the fastest way to catch a typo before it throws off a result you're relying on.

Worked example: entering Baseline = 3.5%, Lift = 0.5 pts, Confidence = 95%, Power = 80% returns ≈22,663 visitors per variant (≈45,326 total) to detect the lift reliably.. Try swapping in your own numbers next, especially a case you're unsure about, before you use this for something that matters.

Quick retention checklist

  • Speak the formula aloud (or annotate it) so the relationships stick.
  • Write each step in your own words and compare with the numbered list above.
  • Swap in new numbers for the Example to make sure the calculator (and your logic) handles edge cases.
  • Check at least one related calculator below — it's the fastest way to confirm your numbers still line up from a different angle.

FAQ & notes

Does this assume a 50/50 split?

Yes. The calculator sizes a classic A/B test with equal traffic per variant. If you plan an uneven allocation, adjust the per-variant totals accordingly.

Why does the sample size explode for tiny lifts?

Detecting minuscule changes demands a very small denominator (p₂ − p₁). When the effect size shrinks, the required sample grows quadratically—plan for more time or accept a larger detectable lift.

What formula does the A/B Test Sample Size Calculator use?

p₁ is the baseline conversion rate, p₂ = p₁ + minimum detectable effect, p̄ = (p₁ + p₂)/2, Z_{α/2} is tied to confidence, and Z_{β} represents statistical power.

How do I use the A/B Test Sample Size Calculator?

Enter your current conversion rate (control) and the absolute lift you want to be able to detect. Choose a confidence level (alpha) and statistical power (1 − beta). Optional: provide daily visitors to estimate how long the test will need to gather that many samples.