Tools

A/B Test Significance Calculator

Use this A/B test significance calculator to see in seconds whether your result is statistically significant: p-value, confidence, lift, confidence interval and the probability that B beats A on one screen. Plan the sample size and test duration you need before you launch, too. Free, no sign-up.

Runs in your browser; numbers are never stored.
Variants
Confidence level
Test type

Visitors: unique users who entered the test. Conversions: users who completed the goal. Take both numbers from the same date range.

Once you enter numbers, the traffic split (SRM) and sample adequacy are checked here. The SRM check assumes an equal split.

Lift of B over A
0

Enter visitors and conversions; the result updates instantly.

0
0
0
0
0
0
0
0
Conversion rate and confidence interval
A0
B0
Talha Aslan Written byTalha AslanDigital marketing expert, Google Partner Last updated

How to use the A/B Test Significance Calculator

  1. 1Enter each variant's numbers

    Type the visitors who entered the test and the conversions for A (control) and B. The tool reads 12,000 and 12000 the same way; press + Variant C for a third version.

  2. 2Pick confidence and test type

    For most marketing tests, 95% confidence with a two-sided test is a sound default. Choose these settings before the test starts and never change them after you see the result.

  3. 3Read the badge and the lift

    The badge tells you whether the difference is significant. The large number is B's relative lift over A, and the line below it is the confidence interval for that lift.

  4. 4Check the data box

    An SRM warning appears when traffic did not split evenly, and a sample warning when conversions are too few. Do not trust the result while a warning shows.

  5. 5Plan the next test up front

    In the Sample Size tab, enter your baseline conversion rate, the MDE and your daily visitors to get the visitors needed per variant and a duration rounded up to full weeks.

A/B test significance formulas

The calculator runs a two-proportion z-test. It computes normal distribution probabilities without external libraries, using the W. J. Cody and P. J. Acklam approximations at double precision.

Conversion ratep = conversions / visitors
Relative lift(pB - pA) / pA
Pooled ratep̄ = (cA + cB) / (nA + nB)
z-scorez = (pB - pA) / √(p̄ × (1 - p̄) × (1/nA + 1/nB))
p-valueTwo-sided: 2 × (1 - Φ(|z|)); one-sided: 1 - Φ(z)
Confidence interval of the lift[(pB - pA) ± z(1 - α/2) × √(pA(1 - pA)/nA + pB(1 - pB)/nB)] / pA
Observed powerΦ(|z| - z(1 - α/2))
Probability B beats AΦ((mB - mA) / √(vA + vB)); m and v are the mean and variance of Beta(c + 1, n - c + 1)
SRM checkχ² = Σ (observed - expected)² / expected; equal split, degrees of freedom = variants - 1
Sample size per variantn = [z(1 - α/2) × √(2p̄(1 - p̄)) + z(1 - β) × √(p1(1 - p1) + p2(1 - p2))]² / (p2 - p1)²

With three variants, and in the sample size tab with more than two, the tool divides α by the number of comparisons (Bonferroni). In a one-sided test it reports a lower bound with z(1 - α) instead of an interval and computes observed power as Φ(z - z(1 - α)).

A/B test significance examples

The rows below are worked examples; enter the same numbers in the calculator and you will see exactly these results on the cards and the badge.

A: visitors / conversionsB: visitors / conversionsSettingLiftp-valueConfidenceBadge
12,000 / 48012,000 / 56495%, two-sided+17.5%0.007999.2%Significant
10,000 / 50010,000 / 54095%, two-sided+8.0%0.202779.7%Not significant
10,000 / 50010,000 / 56095%, two-sided+12.0%0.058394.2%Not significant
10,000 / 50010,000 / 56095%, one-sided+12.0%0.029197.1%Significant
8,000 / 4008,000 / 33095%, two-sided-17.5%0.008099.2%Significant
20,000 / 60019,000 / 65099%, two-sided+14.0%0.018398.2%Not significant

Rows three and four use the same data: the one-sided test halves the p-value. The drop in row five is significant too, so B loses. In the last row the tool also raises an SRM warning, because a 20,000 vs 19,000 split drifts further from an even split than chance explains (p < 0.0001).

Visitors needed per variant

For 95% confidence, 80% power, a two-sided test and two variants; the MDE is a relative lift. The values match the Sample Size tab of the calculator.

Baseline conversion rateMDE 5%MDE 10%MDE 20%
1%637,010163,09542,693
2%315,20680,68221,109
3%207,93853,21113,914
5%122,12431,2348,158
10%57,76314,7513,841

Multiply by the number of variants for the total. Halving the MDE roughly quadruples the sample you need.

What does an A/B test significance calculator actually tell you?

An A/B test significance calculator tells you whether the conversion gap between two versions is real or just noise. You show two headlines, two ad texts or two pricing layouts to separate visitors over the same period, then enter each version's visitors and conversions. From those four numbers the tool derives the p-value, the confidence level and a confidence interval for the lift.

On its own, the calculation does not answer “which one is better?”. Instead it answers a narrower question: would this difference most likely hold if you collected the data again? For example, B may show a 17.5% lift, yet with a small sample the same gap can vanish the following week. That is why I recommend reading three outputs together:

  • Badge: is the difference significant at your confidence level?
  • Confidence interval: where could the true lift sit?
  • Data check: did traffic split evenly, and is there enough data?

If you run the test through ads, clean tracking comes first. For instance, tagging each variant's traffic with the UTM builder keeps sources apart when you analyse the result later.

What do the p-value and confidence level really mean?

The p-value is the probability of seeing a difference at least as large as yours if A and B actually performed the same. So a p-value of 0.0079 means two equal versions would drift this far apart only about 8 times in 1,000. At 95% confidence the tool compares it with a 0.05 threshold; below that, the badge turns “Significant”.

The confidence card shows 1 minus the p-value. However, it does not mean “B is better with 99.2% probability”, which is a very common misreading. The American Statistical Association's statement on p-values makes two points worth remembering:

  • A p-value does not measure the size of an effect or the importance of a result.
  • Business decisions should not rest only on whether a p-value passes a threshold.

Therefore the calculator shows the confidence interval of the lift next to the p-value. If the interval runs from +4.6% to +30.4%, the lift is significant, but the true effect could be modest or large. In practice, compare the lower end, your most pessimistic case, with the business goal before you ship.

How do you size a test before using an A/B test significance calculator?

Half the work with an A/B test significance calculator happens before launch. The Sample Size tab needs four inputs: your baseline conversion rate, the minimum detectable effect (MDE), the confidence level and statistical power. Power is the chance of catching a difference that truly exists; 80% is the usual default in statistics.

The logic is simple: small differences need a lot of data. Worked example: to detect a 10% relative lift on a 5% baseline with 95% confidence and 80% power, you need 31,234 visitors per variant. Raise the target to 20% and the need falls to 8,158. In short, halving the MDE roughly quadruples the sample.

Add your daily visitors and the tool turns the sample into a duration, rounded up to full weeks so weekdays and weekends weigh equally in both variants. If the duration looks too long, you have three levers:

  • Test a bolder change, which means a larger MDE.
  • Send more traffic to the test; my guide on setting a Google Ads budget helps with the paid side.
  • Move the goal higher up the funnel, for example add to cart instead of purchase.

Why does stopping a test early crown false winners?

The most expensive A/B testing habit is checking results daily and stopping the moment the dashboard says “significant”. Every extra look gives chance another shot at showing you a false winner. In the example scenario of Evan Miller's article How Not To Run an A/B Test, this habit pushes the false positive rate you believe is 5% up to 26.1%.

According to the same source, if you plan to peek 10 times, the reported significance has to reach 1.0% to keep a true 5% level. In practice the cleanest routine has three steps:

  1. Fix the sample size and duration before launch with the Sample Size tab.
  2. While the test runs, watch only for technical problems: pages that fail to load and SRM warnings.
  3. Once you reach the planned number of visitors, read the result once and decide.

Also keep in mind that a winner's effect can shrink after the first weeks once the novelty wears off. That is why I keep watching the conversion rate for a few weeks after shipping a major change.

What should you do when the SRM check fires?

A sample ratio mismatch (SRM) occurs when you planned an even split but the visitor counts per variant drift apart more than chance allows. The calculator tests this with a chi-square test and shows a warning in the data box when p < 0.01. For instance, a 20,000 vs 19,000 split looks harmless, yet at that volume it is a real deviation.

According to Microsoft Research's guide to diagnosing SRM, roughly 6% of A/B tests at Microsoft show an SRM, and the team applies an even stricter threshold of p < 0.0005 before revealing results. Common causes include:

  • Bugs in the code that assigns users to variants.
  • Visitors lost while redirecting to the variant page.
  • A variant that loads slowly or breaks, so fewer of its visits reach your logs.
  • Changing the traffic split by hand mid test.

Do not trust the p-value while SRM shows. First find the cause, fix it and restart the test. That said, if you split traffic unevenly on purpose, say 90/10, this check does not apply and you can ignore the warning.

Why does a third variant need a Bonferroni correction?

When you press + Variant C, the calculator compares B and C with A separately. Each comparison gives chance another opening, so with two comparisons the 5% error rate climbs to almost 10% overall. The Bonferroni correction therefore divides the significance threshold by the number of comparisons; at 95% confidence the tool judges each comparison at α = 0.025.

Worked example: A has 5,000 visitors and 150 conversions, B has 5,100 and 180, C has 4,950 and 190. C shows a +27.9% lift with p = 0.0214, which stays below 0.025, so C is significant. B, on the other hand, reaches +17.6% but p = 0.1346, so it is not. The headline shows the variant with the highest rate, and the chart lists each variant's lift over A with its p-value.

The correction has a price: it lowers power, so each variant needs more visitors to catch the same effect. As a result the Sample Size tab applies the same correction when you raise the number of variants. With limited traffic, I would rather test two strong ideas than three average ones.

How should you read the Bayesian probability to beat A?

The P(B > A) card answers a different question than the classic test: given the data, how likely is B's true conversion rate higher than A's? The tool builds a Beta(conversions + 1, visitors - conversions + 1) distribution for each variant and approximates the difference with a normal distribution. Because the prior is flat, no variant gets a head start.

It is the easiest output to explain to stakeholders, because “B has a 99.6% chance of being better” needs no translation. Still, I have two caveats:

  • A high probability can come with a tiny lift, so read it together with the confidence interval.
  • The Bayesian view is not immune to peeking either; the rule of a sample size fixed in advance still applies.

The observed power card, meanwhile, is informational rather than a planning tool. It derives from the p-value and cannot prove after the fact that a test was large enough. For new tests, always rely on the power setting in the Sample Size tab.

How do you run clean tests in Google Ads and on landing pages?

On the ads side, Google Ads experiments split traffic and budget so you can test campaign changes safely. In its experiment help pages Google recommends a 50% split, running experiments for at least 4 to 6 weeks and waiting for 1 to 2 conversion cycles; it also discards the first 7 days of data as ramp-up. To double check a result, enter the clicks and conversions from the experiment report into this calculator.

Landing page tests also need to protect SEO. Google Search Central recommends these rules while a test runs:

  • Never show Googlebot different content than visitors see, which counts as cloaking.
  • If variants live on separate URLs, add a canonical tag that points to the original page.
  • If you test through redirects, use a temporary 302 redirect instead of a permanent 301.
  • When the test ends, ship the winner and remove the test code.

For clients I set up this routine as part of Google Ads management. I cover the conversion side step by step in my article on the CRO process for business websites. To see how a winning variant changes ad profitability, the ROAS calculator also helps.

Common A/B test calculation mistakes

  • MistakeEntering sessions or pageviews as visitorsDo this insteadWhen one person opens several sessions, observations stop being independent and the p-value comes out too small. Enter unique users instead.
  • MistakeChanging settings after seeing the resultDo this insteadChoose the confidence level and test type before launch. Switching to a one-sided test after peeking makes significance artificially easy.
  • MistakeDeciding on a handful of conversionsDo this insteadWith fewer than 10 conversions in a variant the normal approximation breaks down, and the tool warns you. Keep collecting data before you decide.
  • MistakeReading confidence as the chance to winDo this instead99.2% confidence does not mean B is better with 99.2% probability. The P(B > A) card answers that question.
  • MistakeComparing different periodsDo this insteadComparing A in September with B in October is not an A/B test, because seasonality swamps the difference. Run variants on the same days with randomly split traffic.

Frequently Asked Questions

Finding a winner takes enough of the right traffic.

A/B tests only pay off with qualified traffic. Let's grow your conversion rate with Google Ads campaign experiments and landing page tests, backed by data.

Explore Google Ads Service
WhatsApp Call Now