A/B test calculator

A/B test calculator for statistical significance and sample size

This A/B test calculator checks whether the difference between two versions is statistically significant and calculates the sample size your test needs and how long it has to run with your traffic.

How significance works
Last updated:
Is your result significant?
A, control
B, variant
Ranges overlap: no clear result Not significant

B converts 20% better than A, but the gap could be chance. If A and B were equally good, a gap this large would still show up in about 9 in 100 tests. Significant means fewer than 5 in 100. A gap this size would need about 13,896 visitors per version; you have 5,000.

Bar: measured rate. Bracket: the range that contains the true rate with 95% confidence.
B vs. A: +20.0% · p-value 0.093 · significant below 0.050 Example with made-up data. Enter your own numbers.
With 99takes: a verdict without the wait

Have personas from your audience read A and B. No traffic needed. You see which version holds up and where the other one loses readers.

Two-sided z-test for two proportions, 5% significance level. Required visitors per Kim (2016), at 80% power. How this is calculated
Guide

How statistical significance works

An A/B test compares two conversion rates, and both move around from week to week. Significant means the gap is so large that it would rarely appear by chance if both versions were equally good. “Rarely” here means fewer than 5 out of 100 tests.

What the p-value tells you

The p-value answers one question: how often would a gap at least this large appear if A and B were actually equally good? A p-value of 0.03 means it would happen in about 3 out of 100 such tests. Below 0.05, the result counts as significant. The 0.05 threshold is a convention, and some teams set a stricter one before the test starts.

What the p-value does not tell you is how likely it is that B is better, or how large the advantage turns out to be. The American Statistical Association makes the same point in its statement on p-values (Wasserstein and Lazar 2016). To decide whether a switch is worth it, also look at the difference itself and at the ranges around both rates.

The 95% range around each rate

A measured conversion rate is an estimate. The calculator draws a bracket around each rate: the range that contains the true rate with 95% confidence, also called the confidence interval. It is calculated as a Wilson interval. The more visitors, the narrower the bracket.

If the ranges for A and B overlap a lot, the gap is usually not significant. Reading the brackets is not a reliable test on its own, though. Two ranges can overlap slightly and the test can still be significant. The test makes the call; the brackets show how precisely each rate is estimated.

Sample size: why small samples mislead

With few visitors, a handful of random conversions can make one version look far ahead. How many visitors a test needs depends on your current conversion rate and on the smallest difference it should still detect. At a 3% conversion rate, a test needs about 13,896 visitors per version to detect a lift to 3.6%. The same 20% lift needs about 42,642 visitors per version at a 1% conversion rate, and about 8,146 at 5%.

These numbers assume 80% power: if the difference is real, the test finds it in 80 out of 100 cases. The sample size formula for two proportions (Kim 2016) is: visitors per version = (1.96 + 0.84)² × (p₁ × (1 − p₁) + p₂ × (1 − p₂)) / (p₂ − p₁)², where p₁ is your current rate and p₂ the rate you want to detect.

When an underpowered test does come out significant, the measured gap is usually larger than the real one (Gelman and Carlin 2014). That is why the calculator tells you when your sample is smaller than the one the measured difference needs.

Peeking: why you don’t stop at the first significant result

Many testing tools show the p-value while the test runs. It moves around and dips below 0.05 from time to time even when both versions are equally good. If you check every day and stop the test the first time that happens, you will declare a false winner much more often than the 5% allows for.

So set the sample size before you start, using the “Plan a test” tab, and evaluate only once you reach it. Also run the test in full weeks, so every day of the week counts equally.

Sources, retrieved October 13, 2026: NIST/SEMATECH e-Handbook of Statistical Methods, z-test for two proportions and Wilson interval; Kim 2016 for the sample size; Wasserstein and Lazar 2016; Gelman and Carlin 2014.

What to do when you don’t have enough traffic

If the “Plan a test” tab shows more weeks than you can wait, these are your options.

  1. Measure a more frequent conversion

    The higher the baseline rate, the fewer visitors the test needs, as the numbers above show. Clicks on the button happen more often than sign-ups or purchases. They say less about whether you end up with more customers, though.

  2. Test bigger changes

    A version that changes more than a word can make a bigger difference, and a test detects bigger differences with fewer visitors. You don’t know in advance whether the change works, though.

  3. Check versions before launch

    User tests, expert audits or personas from your audience show beforehand where a version gets stuck. That doesn’t replace measuring with real visitors, but it weeds out weak versions so your limited traffic goes to the strongest one.

Other methods besides the A/B test, and what each one tells you: A/B test alternatives. How simulated personas work and where their limits lie: synthetic users. Where visitors click and drop off on the live page: Hotjar alternatives compared. How to improve a page as a whole: landing page optimization and conversion rate optimization.

Check your versions with 99takes 350 credits to start, no payment details

Frequently asked questions about significance and A/B tests

What does statistical significance mean?

A result is called significant when the measured gap between A and B is so large that it would rarely appear by chance if both versions were equally good. The usual threshold is 5%, which means the p-value is below 0.05. Significance does not tell you whether the difference is large enough to be worth switching.

What does the p-value mean in an A/B test?

It tells you how often a gap at least this large would appear if A and B were actually equally good. A p-value of 0.08 means it would happen in about 8 out of 100 such tests. It does not tell you how likely it is that B is better, or how large the advantage is.

What sample size does an A/B test need to reach significance?

That depends on your conversion rate and on the smallest difference the test should detect. At a 3% conversion rate and a lift to 3.6%, you need about 13,896 visitors per version (two-sided, 5% significance, 80% power). The “Plan a test” tab works it out for your own numbers.

What is a confidence interval?

It is the range around a measured conversion rate that contains the true rate with the confidence you chose, here 95%. The more visitors, the narrower the range. The calculator uses the Wilson interval and shows it as a bracket around each bar.

Can I stop an A/B test as soon as it is significant?

Not if you keep checking. The p-value moves around during the test and dips below 0.05 from time to time even when both versions are equally good. If you stop at the first such value, you will declare a false winner much more often than the 5% allows for. Set the sample size before you start and evaluate once you reach it.

Which test does this statistical significance calculator use?

A two-sided z-test for two proportions with a pooled rate, as described in the NIST/SEMATECH e-Handbook of Statistical Methods, at a 5% significance level. The ranges around the rates are Wilson intervals, and the sample size follows Kim (2016) at 80% power. Other calculators sometimes use different methods and get slightly different numbers.

What can I do if I don’t have enough traffic for an A/B test?

Measure a conversion that happens more often, test bigger changes, or check your versions before launch, for example with personas from your audience in 99takes. That doesn’t replace a test with real visitors, but it weeds out weak versions first. The page on A/B test alternatives lists the options.