Rankite
ServicesResultsToolsTeamAboutBlogCareersContactFree SEO Audit
Free tool

A/B Test Sample Size Calculator: How Many Visitors Do You Need?

Enter your baseline conversion rate, the smallest lift worth catching, and your confidence and power settings to see the sample size each variation needs before you launch the test.

Home / Tools / A/B Test Sample Size Calculator
Sample size per variation
-
Total sample size (both)
-

Based on a two-tailed two-proportion test. Smaller minimum detectable effects and higher confidence or power both increase the sample size needed.

Built by Rankite, the SEO team behind Swordfish AI's +400% revenue and Zluri's +45% organic growth. See the case studies

An A/B test sample size calculator tells you how many visitors each variation needs before you launch, not after you have already spent weeks collecting data. Enter your current baseline conversion rate, the smallest lift you actually care about catching, and your confidence and power settings, and the tool returns the visitor count you need per variation and in total.

Why sample size comes before the test, not after

Most testing mistakes happen because a team starts a test without knowing how much traffic it needs, then checks the result daily and stops the moment it looks good. Deciding the sample size in advance fixes both problems. It tells you roughly how long the test needs to run given your traffic, and it gives you a stopping point to commit to before the data can tempt you into an early call.

How the calculation works

The calculator uses the standard formula for comparing two proportions. It combines your baseline rate and your target rate, which is the baseline plus the minimum detectable effect, with z-scores for your chosen confidence level and statistical power. Smaller minimum detectable effects need dramatically larger samples, since a one point difference is far harder to separate from noise than a ten point difference. Higher confidence and higher power both push the required sample size up as well, since each guards against a different kind of wrong call.

Reading the result correctly

The number you get is a minimum, not a target to stop at the moment you cross it. Let the test run to at least that sample size and ideally through one to two full business cycles so weekday and weekend behavior evens out. Once you have collected enough traffic, run the result through an A/B test significance calculator to confirm whether the difference held up. Planning sample size properly is the same evidence-first habit behind good SEO and conversion work, deciding what proof you need before you go looking for it.

Related articles

FAQ

A/B Test Sample Size Calculator: questions, answered

What is sample size in an A/B test?
Sample size is the number of visitors each variation needs before you can trust the result. Too few visitors and even a real difference can look like noise, or noise can look like a real win. The calculator tells you that number in advance, before you launch the test.
How is minimum detectable effect used in this calculator?
Minimum detectable effect is the smallest lift, in percentage points, that you actually care about catching. A smaller minimum detectable effect requires a much larger sample size, since tiny differences are harder to separate from random noise than large ones.
What confidence level and power should I choose?
95% confidence with 80% power is the standard default for most marketing and product tests. Raise confidence to 99% for high-stakes decisions, and raise power to 90% if missing a real effect would be costly, but expect both to increase the required sample size.
Why do I need this calculator before running a significance test, not just after?
A significance calculator checks a result you already have. This calculator runs before the test starts, so you know how long to run it and how much traffic it needs, instead of guessing and stopping early on a result that has not stabilized yet.
What happens if I run the test with fewer visitors than the required sample size?
You raise the odds of a false positive or a false negative. Small samples make random swings look like real wins, and calling a winner before reaching the required sample size is one of the most common reasons A/B test results fail to hold up later.

More free tools

Let's grow

Ready to own page one?

Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.

Book your free audit Explore services
Get in touch

Tell us about your project

Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.

Or copy our email and write to us directly: contact@rankite.com