Free A/B Test Calculator

Size your A/B test, then read it once.

Most A/B tests end too early. Enter your baseline rate and the smallest lift worth shipping to get the sample size per variant and how many days to run. When the test is done, enter the results for a p-value, the lift, a confidence interval and a plain verdict. Free, and it runs in your browser.

Plan: how many visitors you need

Your current rate, from the last few weeks.
10 means a 10% lift on the baseline, so 10% becomes 11%.
Significance level
Power
Leave blank to skip the days estimate.

Two-sided test, normal approximation

Rates to tell apart10.00% vs 11.00%
Sample size per variant14,751
Total visitors29,502
Days needed15 (3 weeks)
  • z for 95% two-sided = 1.9600
  • z for 80% power = 0.8416
  • n = (z_a √(2p̄q̄) + z_b √(p1q1 + p2q2))² / (p2 - p1)²

Result: is the difference real?

Variant A (control)
Variant B

Judged at 95% significance, two-sided

A conversion rate10.00%
B conversion rate13.00%
Absolute lift+3.00 pts
Relative lift+30.0%
z (pooled)2.103
p-value0.0355
95% interval on the difference+0.21 pts to +5.79 pts
  • B wins at 95% confidence. B converts at 13.00% against 10.00% for A (p = 0.0355).
  • Check: each variant has fewer visitors than the 14,751 planned above. Stopping before the planned sample size makes a false win more likely.
  • Note: don't peek. Checking every day and stopping at the first significant result inflates false positives. Decide the sample size first and read the result once.

How the math works

The plan uses the standard sample size formula for comparing two conversion rates, with a normal approximation. It adds the z value for your significance level, times the spread you'd expect if A and B were the same, to the z value for your power, times the spread if B really is better. Square that and divide by the squared difference you want to detect.

For a 10% baseline and a 10% relative lift, at 95% significance and 80% power, that's 14,751 visitors per variant. Evan Miller's widely used sample size calculator gives about the same number. Small lifts on small baselines need a lot of traffic, so pick a lift you'd actually act on.

The result check runs a two-sided z-test with the pooled rate, the usual test for two proportions. The confidence interval on the difference uses each variant's own rate. Both assume each visitor counts once, conversions are yes or no, and each variant has at least 10 conversions and 10 non-conversions.

The terms, in plain words

A/B testing terms and what they mean
TermWhat it means
Baseline rateThe conversion rate of the version you have now, A.
Minimum detectable effectThe smallest lift the test is sized to catch, relative to the baseline. 10% on a 10% baseline means 11%.
Significance levelHow sure you want to be before calling a winner. 95% means a 5% chance of a false win when there is no real difference.
PowerThe chance the test catches a real lift of at least the minimum detectable effect. 80% is the usual default.
p-valueHow often chance alone would produce a gap this big. Below 0.05 is significant at 95%.

Why peeking breaks your test

A 95% significance level promises a 5% false win rate only if you look once, at the planned sample size. Check the dashboard every day and stop the first time it says significant, and random noise gets many chances to cross the line. Evan Miller's How Not To Run an A/B Test shows how fast the real error rate climbs.

So decide the sample size first, run whole weeks, and read the result once. If you need to stop early for a good reason, use a method built for it, like a sequential test, instead of this one.

Is it safe to enter my numbers?

Yes. The calculator runs entirely in your browser. Nothing you type is stored or sent anywhere.

The math

How we calculated this

A two-proportion test: plan the sample before, judge the difference after.

  1. Sample size

    n = (z_a sqrt(2 p q) + z_b sqrt(p1 q1 + p2 q2))^2 / (p2 - p1)^2

  2. Days

    Sample size / daily visitors per variant

  3. z score

    (rate B - rate A) / pooled standard error

  4. p-value

    Two-sided, from the normal curve

What we assume

  • Two-sided test with the normal approximation.
  • The sample size is fixed before the test and read once.

Rules of thumb

  • 95% significance and 80% power are the common defaults.
  • Under about 10 conversions in a variant, the approximation gets shaky.

Free, and staying free

If one of these saved you an hour, an optional $5 tip helps cover what it costs to run and build them. Nothing unlocks, and every tool stays free.

Buy us a coffeeTip us for the free tools (optional tip, $5 suggested, opens Stripe in a new tab)

How to use the A/B Test Calculator

  1. Before the test, enter your baseline conversion rate from the last few weeks of the page or email you're testing.

  2. Pick the smallest lift worth acting on, as a percent of the baseline. 10% means 10% becomes 11%.

  3. Leave significance at 95% and power at 80% unless you have a reason to change them.

  4. Add daily visitors per variant to see how many days the test needs, then commit to that sample size.

  5. When the test hits its sample size, enter visitors and conversions for A and B and read the verdict once.

What the result means

  • Sample size per variant

    Visitors each version needs to catch a lift as big as your minimum detectable effect, 80% of the time, at your significance level. Smaller effects need far more traffic: halving the effect roughly quadruples the sample.

  • Days needed

    Sample size divided by daily visitors per variant. Run whole weeks so weekday and weekend traffic both count.

  • Relative lift

    How much better or worse B is, as a share of A's rate. 10% to 13% is a 30% relative lift and a 3 point absolute lift.

  • p-value

    How often you'd see a difference this big if A and B were really the same. Under 0.05 counts as significant at 95%. It is not the chance that B is better.

  • Confidence interval

    The range the true difference likely sits in. If it crosses zero, the test hasn't shown which version is better.

  • Verdict

    Significant or not at your chosen level, judged once at the planned sample size. Checking early and stopping on a win inflates false positives.

Questions about this tool

How do I calculate sample size for an A/B test?

Use your baseline rate, the smallest relative lift you care about, a significance level and power. This calculator uses the standard two-proportion formula with a normal approximation: about 14,751 visitors per variant to detect a 10% relative lift on a 10% baseline at 95% significance and 80% power.

What is a minimum detectable effect?

The smallest lift the test is built to catch reliably. Set it to the smallest change that would make you ship the variant. Setting it too small makes the test take months.

Why shouldn't I peek at my A/B test?

Every look is another chance for random noise to cross the significance line. If you stop the first time it does, your real false positive rate can be several times higher than 5%. Pick the sample size first and judge once.

What does statistically significant mean?

That a difference this large would be unlikely if both versions converted at the same rate. It says nothing about whether the lift is big enough to matter, so read the confidence interval too.

Is this test one-sided or two-sided?

Two-sided. It checks whether B is better or worse than A, which is the safer default for product and marketing tests.

Is my data saved?

No. Every calculation runs in your browser and nothing is sent anywhere.

Want tests that move pipeline, not just clicks?

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.