A/B Test Significance Calculator
- Home
- Resource Hub
- Analytics, Experiments & Budget
- A/B Test Significance Calculator
Find out whether your test variant actually won — or whether you're about to ship random noise. Enter your numbers and get a clear statistical verdict, with both frequentist z-tests and Bayesian probability-to-be-best, Welch's t-test for revenue per visitor, a sample ratio check, up to three variants, and a built-in sample-size planner.
Significance threshold: p < 0.05.
Add visitors and conversions for the control and at least one variant, or load the example to see how it works.
A/B testing statistics, in plain English
DefinitionWhat does statistical significance mean?
It means the difference between variants is unlikely to be random chance. At 95% confidence, a significant result means there is less than a 5% probability you would see a difference this large if the two versions actually performed the same. The lower the p-value, the more confidence you can have that the lift is real.
Sample sizeWhat's a good sample size?
It depends on your baseline rate and the smallest lift worth detecting. The planner tab works it out. For a 3% baseline conversion rate and a 10% relative lift, the planner gives about 53,000 visitors per variant at 95% confidence and 80% power. Smaller sites can still test — just expect to detect bigger swings, not 5% lifts.
AAJ's viewHow long should a test run?
At least one full week, so every day of the week is in the sample, even after hitting your sample size. Different days and times bring different visitors. Stopping a test the moment significance appears (peeking) inflates false-positive rates dramatically. Set your sample size up front and wait.
Why it mattersFrequentist or Bayesian — which should you trust?
They answer different questions, so it's best to look at both. The frequentist p-value answers "is this difference random noise?". The Bayesian P(best) answers "how likely is each variant to be the true winner?". When both agree, you can ship the change with confidence.
WorkflowHow to use this calculator
1 Enter test dataVisitors and conversions for the control and each variant.
2 Pick confidence90% / 95% / 99%. Two-tailed is the safer default.
3 Read the verdictWinner, loser, or inconclusive — with p-value, lift, and P(best).
4 Plan the next testSwitch to the sample-size tab to size your next experiment.
Frequently asked questions
Significance, sample size, and the statistics behind A/B testing.
Can I test revenue per visitor, not just conversion rate?
Yes. Switch the metric to Average per visitor and enter each arm's visitors, average and standard deviation, or paste the per-visitor values (0 for visitors who bought nothing). The calculator runs Welch's t-test, which does not assume both arms have the same spread, as set out in the NIST/SEMATECH e-Handbook of Statistical Methods (section 1.3.5.3). Revenue per visitor is skewed by a few large orders, so it needs more visitors than a conversion test to show the same lift.
What is a sample ratio mismatch?
It is when the visitors each arm got do not match the split you set, for example 12,000 against 11,000 on a 50/50 test. The calculator runs a chi-square test of the visitor counts against your planned split and flags a mismatch below p = 0.0005, the threshold Microsoft's Experimentation Platform uses (Fabijan et al., Diagnosing Sample Ratio Mismatch in A/B Testing, Microsoft Research, 2020). A mismatch usually means a redirect, bot or tracking problem, so find the cause before trusting the result.
What does statistical significance mean in an A/B test?
Statistical significance means the difference in conversion rates between your variant and control is unlikely to be due to random chance. At 95% confidence, a significant result means there is less than a 5% probability you would see a difference this large if the two versions actually performed the same.
How do I calculate A/B test significance?
Use a two-proportion z-test. Compute the pooled conversion rate across both groups, the standard error, then the z-score (difference in rates divided by standard error). Convert z to a p-value using the normal distribution. If p is less than your significance threshold (commonly 0.05), the result is statistically significant. This calculator does that math automatically.
What's the difference between frequentist and Bayesian A/B testing?
Frequentist testing answers "if there were truly no difference, how likely is a result this extreme?" via p-values. Bayesian testing answers "given the data, what's the probability each variant is the true best?" using posterior distributions. They answer different questions — when both agree, you can act with confidence. This calculator reports both.
How many visitors do I need for an A/B test?
It depends on your baseline conversion rate and the minimum detectable effect you care about. As a rule of thumb, detecting a 10% relative lift on a 3% baseline at 95% confidence and 80% power needs roughly 50,000 visitors per variant. Use the sample-size planner in this calculator to size your specific test.
What is the Bonferroni correction and when do I need it?
When you test multiple variants against one control, every additional comparison inflates the chance of a false positive. The Bonferroni correction divides your significance threshold by the number of comparisons (so for 3 variants at 95% confidence, the per-test threshold becomes p < 0.0167 instead of 0.05). This calculator applies it automatically when you add more than one variant.
Can I stop an A/B test as soon as it reaches significance?
No. Stopping the moment a test crosses significance — called peeking — dramatically inflates the false-positive rate. Set your sample size up front using a sample-size calculator, run the test for at least one full business cycle (1–2 weeks), and only then call the result.
Want the full theory behind the numbers?
The A/B Testing Complete Guide walks through the 6-step methodology, p-values vs Bayesian probability, MDE and power, Bonferroni for A/B/n tests, and the mistakes that quietly invalidate results.
Read the complete guide Website & CRO PlaybookWhy this tool
Compare conversion rates, or an average per visitor such as revenue, for a control and up to three variants. Conversions get a two-proportion z-test and the Bayesian chance each version beats the others; averages get Welch's t-test. Each difference comes with an interval, more than one variant gets a Bonferroni correction, and the visitor split is checked for a sample ratio mismatch. A second tab sizes the test and estimates how long it takes. The math runs in your browser, with no email asked.
Use something else if you need sequential testing or results from your own warehouse data: an experimentation platform such as GrowthBook.
Run this in your agent
The free AAJ agent skill A/B Test Significance does this job inside your coding agent, on your own data instead of the form above.
npx skills add sarojkjha/aaj-marketing-skills --skill ab-test-significance Using Claude or ChatGPT instead? Add the AAJ engines as a custom connector, with no install: https://mcp.aajconsult.com/mcp
On your live account
Your agent can read the sessions and the key event rate for each variant itself through Google's Analytics MCP server, then run this engine on them. Paste this prompt. The recipe has the setup, the field mapping and what to check before you trust the result.
Check my A/B test in GA4 property [property ID], from [start date] to [end date], with the AAJ ab-test-significance engine. Follow this recipe: https://github.com/sarojkjha/aaj-marketing-skills/blob/main/recipes/ga4-to-ab-test-significance.md. Use the Google Analytics MCP server, pass the sessions and the key event rate for each variant exactly as GA4 returns them, and ask me for the key event and the variant dimension. Report the engine's output as printed.Read the recipe
More in Analytics, Experiments & Budget
Part of the Analytics, Experiments & Budget hub - see all 39 resources on this topic.
- AI agent skill: A/B Test Significance
- Article: A/B Testing for Startups: The Complete Guide
- Free tool: Ad Creative Test Calculator
- Article: Burn Multiple and Magic Number
Also useful in Website & Conversion.