A/B test sample size calculator

A/B test sample size calculator. Know before you send.

Enter your current conversion rate and the smallest lift you care about. You get the number of recipients each version needs before the result means anything.

Get a free audit

At a 3% conversion rate, catching a 10% lift needs 53,208 recipients per version. This calculator shows you the number before you send, so you know if a test is worth running. It runs in your browser, no email needed.

Rate version B has to reach0%
Recipients needed per variant0
Total recipients (A + B)0

How it works

The calculator uses the standard normal approximation for comparing two independent proportions. Your baseline rate is p1. The rate version B would need to reach is p2 = p1 × (1 + MDE). Then:

n per variant = (zα/2 + zβ)² × [ p1(1 - p1) + p2(1 - p2) ] / (p1 - p2)²

zα/2 comes from your significance level (1.645 for 90%, 1.960 for 95%, 2.576 for 99%, all two-sided). zβ comes from your power (0.842 for 80%, 1.282 for 90%). The result is rounded up to the next whole recipient. We took the formula from Hae-Young Kim, "Sample size calculation 2. Comparison of two independent proportions", Restorative Dentistry & Endodontics 41(2), 2016. Their example (20% vs 30%, 95% significance, 80% power) comes out at about 291 per group, and so does this calculator if you enter 20% baseline and 50% effect.

A worked example

Your campaigns convert at 3% and you want to catch a 20% relative lift, so B has to reach 3.6%. At 95% significance and 80% power: (1.960 + 0.842)² = 7.849. The variance part is 0.03 × 0.97 + 0.036 × 0.964 = 0.0638. The squared difference is 0.006² = 0.000036. That gives 7.849 × 0.0638 / 0.000036 = 13,911 recipients per variant, 27,822 in total.

Halve the effect to 10% and the number roughly quadruples, to 53,208 per variant. That's why small tweaks on a small list rarely produce a real answer.

When to use it

Before the test, every time. Put in the conversion rate of the email or pop-up you want to test and the lift that would actually change what you do. If the number is bigger than your send, test a bolder change or a more common event, like clicks. Once the test has the recipients it needs, check the outcome with our A/B test significance calculator. For what to test in the first place, read our guide to A/B testing in Klaviyo.

Not sure your tests are set up right? Book a free 30 minute Klaviyo audit.

FAQ

What is the minimum detectable effect?

The smallest lift you want the test to catch reliably, written here as a relative change. At a 3% baseline, a 20% minimum detectable effect means you want to spot B when it really converts at 3.6% or better. Smaller effects need far bigger samples.

Which significance and power should I pick?

95% significance and 80% power is the usual starting point. Go to 90% power if a missed winner would hurt, for example on a flow email that runs for months. 99% significance makes sense when switching is expensive.

My list is too small for the number it shows. What now?

Test bigger changes, so the effect you're looking for is larger. Or put the test in a flow, judge it on clicks instead of orders and let it collect recipients over a few weeks.

Is my data stored?

No. Everything is calculated in your browser. No email needed.

Want to see where your extra revenue is?

Book a free 30 minute audit. We go through your Klaviyo together and show you what we would change first.

Get a free audit