How to use this calculator in 4 steps
Choose whether you are comparing conversion rates or averages, enter the data for each version, leave the advanced settings at their defaults, and read the verdict line first. Then read the range beneath it, because the range shows how large the difference might really be.
- Pick the metric type. "Conversion rate" is for yes or no outcomes, such as ordering or signing up. "Average value" is for numbers, such as revenue per visitor. If you are unsure, ask whether each visitor produces a yes or a number.
- Enter your data. For a conversion rate, enter visitors and conversions for A (your current version) and B (the new one). Count each person once, and use the same unit, people or sessions, for both. For the store: 8,000 visitors and 400 conversions for A, 8,000 and 448 for B. The "Load example" button fills these in. If conversions exceed visitors, the calculator shows "Conversions cannot be more than visitors." and no result until you fix it.
- Leave Advanced settings alone at first. The defaults are 95% confidence and a two-sided test, and a summary line always shows what is active. Change them only if you decided to before the test began (see confidence level and test type).
- Read the verdict, then the range, then the small print. If you entered an intended traffic split and the visitor counts do not match it, a red banner appears above the verdict. Seven mistakes that break A/B tests explains why that matters.
Planning a test instead of reading one? Open the "Plan a test" tab and see how many visitors and how long.
How to read your results, one value at a time
Start with the verdict line, which says whether the gap is unlikely to be luck. Then look at the range of plausible differences, because it shows how large the effect could be. The remaining values are supporting detail. No single number settles the question, and each has a common misreading.
The values below come from the store's first test: 400 orders from 8,000 visitors on the old headline (A), 448 from 8,000 on the new one (B).
Verdict: "Close, but not significant at 95%." The gap between 5.0% and 5.6% is not large enough, at the confidence level you asked for, to rule out luck. It does not say the new headline did nothing. Read the range next.
p-value: 0.0903. If the two headlines truly performed the same, a gap at least this large would appear about 9 times in 100 by chance alone. The p-value is not the chance that the result is a fluke, and it is not the chance that B is better. It is also not the cutoff. The cutoff for 95% confidence is 0.05, and 0.0903 sits above it.
Confidence reached: 91.0%. This is 100% minus the p-value: the highest confidence level at which the result would still count as significant. Here it clears a 90% bar and misses a 95% bar. Confidence level is a simple transformation of the p-value, so this figure adds no new evidence. It is not the probability that B is truly better. The Probability view in the Bayesian section speaks to that question.
Absolute difference: +0.6 percentage points. Relative lift: +12.0%. Both describe the same gap. The absolute difference is plain subtraction (5.6% minus 5.0%). The relative lift is that gap as a share of A's rate (0.6 divided by 5.0). Relative lift sounds larger, so look at both. Neither is the true effect. The observed lift is one measurement, and the range below shows how far the truth could sit from it.
Confidence interval: −0.09 to +1.29 points. This is the set of true differences consistent with your data at 95% confidence. It starts below zero, so "no difference" remains possible. It ends above one point, so a sizeable gain remains possible too. A range this wide says the test has not yet pinned the size down. Reading the p-value and the interval together is standard advice.
Power at observed lift: 39.5%. This is also called observed power or post hoc power. It asks: if the true difference were exactly the 0.6 points you measured, how often would a test of this size reach significance? About 39.5% of the time. Handle it with care. It is calculated from the p-value alone, so it cannot add evidence, and any non-significant result shows a value below 50%. It does not predict whether the lift will hold at larger volume. For that, use the interval. The calculator also shows the smallest lift this test could reliably detect at 80% power: about 0.97 points, or 19% relative, for 8,000 visitors per version at a 5.0% baseline. The observed 0.6 points sits below that line, which fits the verdict.
z-score: 1.69. How many standard errors apart A and B are. About 1.96 marks the 95% line for a two-sided test. For averages the calculator shows a t-statistic instead.
What "statistically significant" actually means
A result is statistically significant when its p-value falls below the cutoff you chose, most often 0.05. It means a gap this large would be unusual if the two versions were truly identical. It does not mean the gap is large, valuable, or certain to last.
Think of the cutoff as a false alarm limit. A cutoff of 0.05 accepts that, when nothing has changed, about 1 test in 20 will still look significant. A cutoff of 0.01 lowers that to 1 in 100.
When a test comes back significant, one of three things is true. The new version really is better. Or it is not, and you saw a rare outcome. Or the statistical model does not fit your data. For conversion rates the third is rarely the problem, because the underlying model is simple. For revenue it can be. A common error is to push average revenue per user through a calculator built only for conversion rates, which is why this calculator has a separate Average value mode.
Significance is also silent on size. A significant 2% improvement can cost more to build and maintain than it earns. After the verdict, ask whether the low end of the range still matters to your business. That question is practical significance, and only you can answer it.
Finally, 95% confidence does not mean a 95% probability that the new version is better. It describes how the testing procedure behaves over many tests, not how likely your particular result is to be true.
Worked examples with real numbers
Three tests from the coffee store show how the calculator behaves: a borderline result, the same lift with four times the traffic, and a revenue test where the spread of the data decides everything. All numbers are illustrative.
Example 1: a borderline result. This is the test from the opening: 400 of 8,000 against 448 of 8,000. The verdict is "Close, but not significant at 95%" (p = 0.0903, confidence reached 91.0%). The interval runs from −0.09 to +1.29 points, so the data fit both "no change" and "a decent gain." Two moves are tempting and both are wrong: declaring the new headline the winner, and lowering the confidence level to 90% now that the result would pass. The right move is a longer, planned test, covered in how many visitors and how long.
Example 2: the same lift, more traffic. Keep the rates at 5.0% and 5.6% but run 32,000 visitors per version: 1,600 orders against 1,792. Now p = 0.0007, confidence reached is 99.9%, and the interval is +0.25 to +0.95 points. The verdict flips to "Statistically significant: B is higher than A." The lift did not change. The amount of information did, and the interval is half as wide. This verdict is only trustworthy if the sample size was fixed in advance and the test was not stopped the first time it looked significant.
Example 3: revenue per visitor. Now the store compares average revenue per visitor: $4.20 on A and $4.55 on B, with a standard deviation of $12 in both groups. That spread is nearly three times the average because most visitors spend nothing and a few spend a lot. Same gap, three sample sizes:
- With 400 visitors per group, t = 0.41 and p = 0.68.
- With 4,000 per group, t = 1.30 and p = 0.19.
- With 20,000 per group, t = 2.92 and p = 0.0035, with an interval of +$0.11 to +$0.59.
A 35-cent gap disappears into the noise until the sample is large. To detect a difference that size at 95% confidence and 80% power, this store would need about 18,500 visitors per group. Revenue per visitor counts everyone, including people who spent nothing. Average order value counts only buyers. Pick the one that matches your question, and treat results from a few hundred observations per group with caution, because revenue data is lumpy.
| Example | Data | p-value | Confidence reached | 95% interval | Verdict |
|---|---|---|---|---|---|
| 1 | 400/8,000 vs 448/8,000 | 0.0903 | 91.0% | −0.09 to +1.29 points | Not significant at 95% |
| 2 | 1,600/32,000 vs 1,792/32,000 | 0.0007 | 99.9% | +0.25 to +0.95 points | Significant, B higher |
| 3a | $4.20 vs $4.55, 400 per group | 0.68 | 32.0% | −$1.32 to +$2.02 | Not significant |
| 3b | $4.20 vs $4.55, 4,000 per group | 0.19 | 80.8% | −$0.18 to +$0.88 | Not significant |
| 3c | $4.20 vs $4.55, 20,000 per group | 0.0035 | 99.6% | +$0.11 to +$0.59 | Significant, B higher |
Which confidence level and test type should I pick?
Use 95% confidence and a two-sided test unless you settled on something else before the test began. Confidence levels of 90% and 99% are legitimate when a false alarm is cheap or costly, but the choice has to come before the data, not after.
The confidence level sets your false alarm rate: 90% accepts about 1 in 10, 95% about 1 in 20, and 99% about 1 in 100. Raising the threshold demands a larger sample, so the trade is speed against certainty. Ideally you weigh the two kinds of error while planning the test. Example 1 shows why. At p = 0.0903, the result passes at 90% and fails at 95%. If you pick 90% after seeing that, the false alarm rate you report is no longer the rate you actually run.
The test type works the same way. A two-sided test asks whether B differs from A in either direction. A one-sided test asks only whether B is better, which halves the p-value. In Example 1 the one-sided p-value is about 0.045, which would clear 95%. That is legitimate only if you had committed, before the test, to caring solely about an improvement. The required sample size also depends on the choice, so it should always be stated.
Not significant? What to do next
A non-significant result means the data cannot separate the difference from luck. It does not show the two versions are the same. Check the range, ask whether the test could have detected the lift you care about, and if it could not, plan a larger test instead of loosening your threshold.
Low significance is not evidence of no improvement. A test with two users per group would almost never come out significant even for a huge true effect, and the same can hold at 200, 2,000 or more users depending on the setup. What matters is whether the test was sensitive enough for the effect you care about.
Example 1 could reliably detect only about 0.97 points. The store saw 0.6. To detect a lift of 12% relative (5.0% to 5.6%), it would need roughly 21,900 visitors per version. When a test cannot realistically reach the required sample, there are honest options: test a bigger change that is still realistic, remove variants competing for the same traffic, use a higher-traffic page, extend the test if that can actually reach the sample, or decide the test is not feasible. Changing the confidence level or power to fit the traffic you have is not on that list. Those are risk decisions to make before the test.
A practical order of work:
- Read the interval. Does the low end still matter? Does the high end?
- Decide the smallest lift worth chasing.
- Use the "Plan a test" tab to get the sample size (see the next section).
- Fix the duration now, and do not stop early.
How many visitors and how long to run a test
Decide the smallest lift worth detecting, then work out the sample size before launch. For a 5.0% baseline and a 20% relative lift (to 6.0%), at 95% confidence and 80% power, you need about 8,155 visitors per version. Then run the test in whole weeks until you reach that number.
A sample size calculation asks for a handful of inputs. The baseline is your current conversion rate (or, for averages, the current mean and standard deviation). The minimum effect of interest is the smallest improvement worth caring about, which is a business decision. Confidence is your false alarm limit. Power is the chance the test catches a real effect of that size, and 80% is a common starting point, not a universal requirement. You also choose one-sided or two-sided, and how many versions compete for traffic.
Two ideas are easy to mix up. The minimum effect of interest is what you decide you want to detect. The minimum detectable effect describes what a specific test design can detect at a given sample size, confidence and power. Smaller effects need many more visitors:
| Baseline | Lift to detect | Visitors per version |
|---|---|---|
| 10% | +20% relative (to 12%) | 3,839 |
| 5% | +20% relative (to 6%), one-sided | 6,424 |
| 5% | +20% relative (to 6%) | 8,155 |
| 3% | +10% relative | 53,208 |
Duration comes from traffic. Suppose the store's product page gets 1,200 visitors a day and all of them enter the test. The 8,155 visitors per version come to 16,310 in total, which is 13.6 days, so plan 14 days: two whole weeks. Whole weeks matter because behavior differs by weekday. A test should not run for less than a week, and a full seven days is better even when a shorter run would reach the sample. Some teams choose two weeks so each weekday appears twice. The stopping rule is still the planned sample size, not a calendar number, but the test should also cover the business cycles that affect your traffic. If the answer comes out at more than about eight weeks, consider a bigger change or a higher-traffic page.
Seven mistakes that break A/B tests
The most common ways to invalidate a test are peeking, running too small a sample, ignoring a broken traffic split, testing many variants or metrics without adjustment, stopping while a novelty effect is fading, mixing users with sessions, and changing the rules after seeing the data. Each makes the reported numbers look more certain than they are.
1. Peeking. Significance calculations assume the sample size was fixed in advance. If you check daily and stop the first time the result looks significant, the reported significance is wrong. In Evan Miller's worst-case scenario, checking after every observation, a test with no real effect produced a false positive 26.1% of the time, against the 5% people expect. Peeking ten times turns a nominal 1% into an actual 5% [1]. Fix the sample size and look once, or use a sequential method built for repeated looks.
2. A sample that is too small. Large lifts from small samples arrive with very wide intervals, so the estimate is too imprecise to support a decision. The calculator adds a "small numbers" note when either version has fewer than about 100 conversions, or when any cell (conversions or non-conversions) is under about 10. Treat those results as early signals. Those are rules of thumb, not laws.
3. A broken traffic split. Sample ratio mismatch (SRM) means the visitors each version received do not match the split you set. Suppose the store planned 50/50 and got 10,000 on A and 10,700 on B. The chi-square statistic is 23.67, and the chance of a split this uneven under a fair 50/50 assignment is about 1 in a million. When the calculator sees this, it shows a red banner above the verdict. The cause is usually not random. In one documented case, the new version took about five seconds longer to load, so fewer people on some browsers were recorded. Once the groups stop being comparable, the result cannot be trusted. The alarm threshold is a convention. Eppo runs its check at p < 0.001 and explains that a stricter level helps because the check is not sequentially valid [2]. Microsoft's experimentation platform uses a stricter 0.0005 [3], and Convert recommends 0.01 [4]. The store's example fails at every one of them. Passing the check does not prove the test is free of bias.
4. Many variants or metrics. Every extra variant, and every extra metric you are willing to call a win, raises the chance that one of them looks significant by luck. Statisticians call this the family-wise error rate. Corrections exist: Dunnett's adjustment for several variants against one control, and Bonferroni for several metrics. This calculator compares two versions on one metric. If you have more, name your primary metric before the test starts.
5. A novelty effect. A change can attract attention because it is new, raising engagement at first and then fading. A bold value proposition on a page that returning customers know well is a fair candidate. If the effect at the start of a test differs from the effect at the end, the change may be interacting with something in the environment, and events such as a holiday or a sales period can distort a short test. Run whole weeks, avoid unusual periods where you can, and look at the daily pattern of the lift.
6. Mixing users with sessions. The unit must match. If A counts people and B counts sessions, or one person is counted twice, the numbers do not describe the same thing. Randomization is normally done on users, and the SRM check should be run on users too, not on sessions or page views. In the store's test, count visitors who ordered, not orders.
7. Changing the rules after seeing the data. Switching to a one-sided test, or dropping from 95% to 90%, because the result just missed is how a 5% false alarm rate becomes an unknown one. The threshold, the direction of a one-sided test, and the power all belong in the plan, before the data arrives.
Classic vs Bayesian: which is this calculator using?
Both. The classic view asks how surprising your data would be if nothing had changed and returns a p-value. The Probability view (Bayesian) starts from a neutral assumption and returns the chance that B is better than A, given your data. With a neutral start, the two are closely related.
Take Example 1. The classic two-sided p-value is 0.0903, so the verdict is "not significant at 95%." The Probability view says B has about a 95% chance of being better. That looks like a disagreement, but most of it is one-sided against two-sided. The one-sided p-value is about 0.045, and 100% minus that is 95.5%. We checked the same relationship on Example 2: 99.96% from the Probability view, 100% minus a one-sided p of 0.00035 is 99.96%. Both views read the same evidence. They answer different formal questions, and their wording should not be swapped.
The Probability view also reports expected loss, which is the average amount you give up if you choose a version and are wrong. In Example 1, choosing B risks about 0.007 percentage points on average, and choosing A risks about 0.61. The credible interval, the Bayesian counterpart of the confidence interval, runs from about −0.09 to +1.30 points. So the data lean toward B, and the range still includes no change.
Read a high probability with the same caution as a p-value. A probability that B beats A can be high for a tiny effect, and a fixed cutoff such as 95% ignores effect size and the cost of being wrong. Looking at the chance of clearing a practical threshold, along with expected loss, is a better policy. The result also depends on the starting assumption. For conversion rates the calculator uses a uniform prior, and it treats the bands on the probability bar (below 50%: B probably worse; 50% to 90%: unclear; 90% to 95%: leaning B; above 95%: strong) as guidance, not a significance test.
Bayesian methods do not remove the peeking problem. Stopping the moment the probability crosses a threshold still inflates false positives. Both views are useful. Neither fixes a badly run test.
Plain-English glossary
Show the glossary (34 terms)
- Metric type
The kind of outcome you measure. Conversion rate is a yes or no per visitor, such as ordering. Average value is a number per visitor, such as revenue. Picking the wrong one gives a wrong test.
- Control (A)
Your current version, the baseline you compare against. In the store's test, the feature-led headline.
- Variant (B)
The new version under test. In the store's test, the "fresh-roasted, 2 days or your money back" headline.
- Visitors
People (or sessions) who saw a version. Use the same unit for A and B and count each person once. Mixing people with sessions is a common way to corrupt a test.
- Conversions
Visitors who did the thing you measure, such as placing an order. Count each visitor once, even if they ordered twice. Conversions cannot exceed visitors.
- Sample size
The number of observations in a group. Bigger samples give steadier estimates and narrower ranges.
- Average (mean)
Total divided by count. If 100 visitors spent $2,000 in total, the average is $20.
- Standard deviation
How spread out values are around the average. Small means similar values, large means wide variation. A spreadsheet's STDEV.S gives it. Revenue per visitor has a large one because most visitors spend nothing and a few spend a lot.
- Confidence level
How sure you want to be before calling a result real. 95% means accepting roughly a 1 in 20 chance of a false alarm.
- Significance level (α)
The false alarm limit, equal to 100% minus the confidence level. 95% confidence means α = 0.05.
- Two-sided
Checks whether B differs from A, better or worse. The safe default.
- One-sided (B beats A)
Checks only whether B is better. Use it only if you decided that before the test. Choosing it after seeing the data halves the p-value and inflates false alarms.
- Null hypothesis
The "nothing changed" assumption: A and B perform the same. The test asks whether your data makes that hard to believe.
- p-value
If A and B were truly identical, how often a gap this big would appear by luck. p = 0.02 means about 2 times in 100. Smaller means stronger evidence. It is not the chance that B is better.
- Statistically significant
The p-value is below your cutoff, so the gap is unlikely to be luck. It does not tell you the gap is big or valuable.
- Practical significance
Whether the difference is large enough to matter to your business, whatever the p-value says.
- Absolute difference
The plain gap between two numbers. 5.0% to 5.6% is 0.6 percentage points.
- Relative lift
The gap as a share of A. Going from 5.0% to 5.6% is a 12% lift, though only 0.6 points.
- Confidence interval
The range the true difference probably falls in. If it includes zero, "no real difference" is still possible.
- z-score
How many standard errors apart A and B are. Further from zero means stronger evidence. Around ±2 marks the 95% line.
- t-statistic (df)
Like the z-score, but for averages and adjusted for sample size. "df" is a technical setting you can ignore.
- Standard error
How much a result would wobble from sample to sample. Bigger samples give less wobble.
- Two-proportion z-test
The standard test for comparing two conversion rates.
- Welch's t-test
The standard test for comparing two averages when the groups may vary differently.
- Statistical power
The chance a test spots a real effect of a given size. 80% is a common target, not a universal one.
- Power at observed lift
If the true difference were exactly what you measured, how often a test this size would detect it. Also called observed power. It moves with the p-value and does not predict whether the lift will hold. Check the confidence interval for that.
- Confidence reached
The highest confidence level at which this result would still count as significant (100% minus the p-value). Not the chance that B is truly better.
- Minimum detectable effect (MDE)
The smallest lift a specific test can reliably detect. It is related to, but not the same as, the smallest lift you care about. Smaller effects need many more visitors.
- False positive / false negative
A false positive calls a winner when there is none. A false negative misses a real winner.
- Peeking
Checking results repeatedly and stopping when they look significant. It inflates false positives, so set the sample size in advance.
- Sample ratio mismatch (SRM)
When the visitors each version received do not match the split you set. It signals a setup problem, so do not trust the result until you find the cause.
- Bayesian probability (B beats A)
Given your data and a neutral starting assumption, the chance B is truly better than A. It answers a different question from the p-value.
- Credible interval
The Bayesian cousin of the confidence interval: the range the true value is 95% likely to sit in, given your data and starting assumption.
- Expected loss
If you choose a version and you are wrong, the average amount you would give up. Lower is safer.
Frequently asked questions
What is a good p-value for an A/B test?
The common cutoff is below 0.05, which corresponds to 95% confidence. A p-value under the cutoff means the gap is unlikely to be luck. It does not measure how large or valuable the gap is. Choose the cutoff before the test, not after seeing the result.
Is 90% confidence enough?
It can be, if a false alarm is cheap and you chose 90% before the test. At 90% you accept roughly 1 false alarm in 10. Picking it after seeing a p-value of 0.09 makes the false alarm rate you report different from the one you actually run.
What is the difference between one-tailed and two-tailed tests?
A two-tailed (two-sided) test checks whether B differs from A in either direction. A one-tailed (one-sided) test checks only whether B is better and halves the p-value. Use one-sided only when you decided before the test that a decline would not change your decision.
How long should I run an A/B test?
Run it until you reach the sample size you calculated in advance, in whole weeks, with at least one full week. Some teams use two weeks so each weekday appears twice. Do not stop the first time the result looks significant.
What if my test is not significant?
It means the data cannot separate the difference from luck. It does not prove the versions are the same. Check the interval, check whether the test could have detected the lift you care about, and if not, plan a larger test rather than lowering the confidence level.
Can I stop a test early?
Only if you planned the stopping point. Stopping the first time a result looks significant inflates false positives. In one worst-case example, a test with no real effect gave a false positive 26.1% of the time instead of 5%.
What is statistical significance vs practical significance?
Statistical significance says a gap is unlikely to be luck. Practical significance asks whether the gap is big enough to matter to your business. A tiny lift can be statistically significant with a large sample and still not be worth the cost of building it.
How many conversions do I need?
There is no single number. It depends on your baseline and the lift you want to detect. At a 5% baseline, detecting a 20% relative lift needs about 8,155 visitors per version, which is roughly 410 conversions in the control and 490 in the variant.
What is sample ratio mismatch?
It is when the visitors each version received do not match the split you set, for example 10,700 against 10,000 on a 50/50 test. It usually signals a setup or tracking problem, so the result should not be trusted until you find the cause.
Does this calculator work for revenue?
Yes. Choose Average value and enter each group's sample size, mean and standard deviation. It uses Welch's t-test. Revenue data is lumpy, so treat results from a few hundred observations per group with caution, and decide whether you mean revenue per visitor or average order value.
Methodology and assumptions
Conversion rates. A two-proportion z-test with a pooled standard error for the z-statistic and p-value, and an unpooled standard error for the interval on the absolute difference. No continuity correction is applied. As an independent check, the method reproduces Pearson's published example of 400/10,000 against 520/10,000 (z ≈ 4.05, interval +0.62 to +1.78 points).
Averages. Welch's t-test, which does not assume the two groups have equal spread, with Welch-Satterthwaite degrees of freedom.
Power at observed lift. Φ(|d| ÷ SE − z(1−α/2)) for two-sided tests, where d is the observed difference and SE is the unpooled standard error.
SRM. A chi-square goodness-of-fit test on visitor counts, with k − 1 degrees of freedom, flagged at p < 0.001.
Assumptions. Independent visitors counted once, the same unit in both versions, a sample size fixed in advance, two versions and one primary metric. For more than two versions or several metrics, adjust for multiple comparisons.
Your data. Calculated in your browser. Your numbers are not sent to our servers. "Copy result link" puts the numbers in the URL only when you choose to share, and anyone with the link can see them.
Next steps
Read your result, check the range, and plan the next test before you act. If you would like a second pair of eyes on a test design or a result, that is what our team does every week.
Book a free auditBeyond experiment design, Quasargain works on website optimization, stagnated leads and other financial KPIs, so the same discipline can shape your whole program. You can also explore our conversion rate optimization services.
Sources
- Miller, E. "How Not To Run an A/B Test." 2010. https://www.evanmiller.org/how-not-to-run-an-ab-test.html
- Eppo Docs. "Sample Ratio Mismatch." https://docs.geteppo.com/statistics/sample-ratio-mismatch/
- Microsoft Research. "Diagnosing Sample Ratio Mismatch in A/B Testing." https://www.microsoft.com/en-us/research/articles/diagnosing-sample-ratio-mismatch-in-a-b-testing/
- Convert. "How to Prevent Sample Ratio Mismatch in Your A/B Tests." https://www.convert.com/blog/a-b-testing/sample-ratio-mismatch-srm-guide/