How to Use the A/B Test Significance Calculator
This statistical significance calculator operates entirely client-side inside your browser. No visitor counts, business conversions, or proprietary metrics are ever transmitted over the network.
- Tab 1 (Test Significance): Enter your control visitors (nA) and conversions (cA), followed by your variant visitors (nB) and conversions (cB). Select your desired confidence level (90%, 95%, or 99%) and test direction (two-sided default).
- Tab 2 (Sample Size & Duration): Plan an experiment before launch. Enter your baseline conversion rate, target minimum detectable effect (MDE), alpha, and desired statistical power (80% or 90%) to calculate total required visitors and estimated run time in days.
- Tab 3 (A/B/C Multi-Arm): Test multiple variant arms against a single control arm with automatic Bonferroni or Šidák multiplicity corrections to protect your false discovery rate.
How the Two-Proportion Z-Test Works
When evaluating conversion rates (binomial proportions of visitors who convert), the standard mathematical test is the two-proportion z-test.
The null hypothesis (H₀) asserts that both designs share the exact same underlying conversion probability: pA = pB. The alternative hypothesis (H₁) asserts that they differ: pA ≠ pB.
- Observed Conversion Rates:
pA = cA ÷ nA = 500 ÷ 10,000 = 0.0500 (5.00%)
pB = cB ÷ nB = 570 ÷ 10,000 = 0.0570 (5.70%) - Relative Lift:
Lift = (pB − pA) ÷ pA × 100% = (0.057 − 0.050) ÷ 0.050 × 100% = +14.0% - Pooled Conversion Rate (p̄):
p̄ = (cA + cB) ÷ (nA + nB) = (500 + 570) ÷ 20,000 = 0.0535 - Pooled Standard Error (SE_pool):
SE = sqrt[p̄(1 − p̄) × (1/nA + 1/nB)] = sqrt[0.0535 × 0.9465 × (2 / 10,000)] ≈ 0.00318 - Test Statistic (Z-Score):
z = (pB − pA) ÷ SE = (0.0570 − 0.0500) ÷ 0.00318 ≈ 2.20 - Two-Sided P-Value:
p = 2 × [1 − Φ(|2.20|)] ≈ 0.028
Because the resulting p-value (0.028) is less than the significance threshold α = 0.05, we reject the null hypothesis and conclude that Variant B demonstrates a statistically significant uplift at 95% confidence.
What the P-Value and Confidence Level Really Mean
Statistical terminology in digital experimentation is widely misunderstood. Results are often summarized with inaccurate phrasing such as “there is a 95% chance B is better than A.”
In frequentist statistics, hypotheses do not have probabilities. The correct scientific definitions are:
- What the p-value is: The exact probability of observing a difference at least as large as the one seen in your sample, given that the null hypothesis is true (there is zero genuine difference between A and B).
- What the p-value is NOT: It is not the probability that the variant is superior, not the probability that your experiment was a fluke, and not the magnitude of business impact.
- Confidence Level (1 − α): The long-run proportion of repeated experiments that will correctly avoid making a false positive (Type I error) when no true difference exists.
One-Sided vs Two-Sided Tests: Why We Default to Two-Sided
A two-sided hypothesis test evaluates whether Variant B is different from Control A (either significantly better or significantly worse). A one-sided hypothesis test evaluates only whether Variant B is strictly better.
While a one-sided test produces a smaller p-value for a positive difference (cutting the two-sided p-value in half), it introduces substantial risks in production environments:
- Risk of missing detrimental changes: If a redesigned checkout flow inadvertently breaks on specific browsers, a two-sided test flags the statistically significant loss, whereas a one-sided test dismisses negative outcomes as non-significant.
- Confirmation bias: Deciding to run a one-sided test after observing an initial upward trend in the data doubles your false positive rate, violating core statistical assumptions.
For these reasons, experimentation leaders at Microsoft, Google, and academic institutions mandate two-sided hypothesis tests as the scientific default.
How Many Visitors Do You Need? (Sample Size & Duration)
Running an underpowered test is one of the most common mistakes in conversion rate optimization. If your sample size is too small, your experiment will lack the statistical power (1 − β) required to detect real lifts.
Our sample size calculator implements the unpooled Fleiss formula:
Suppose your baseline conversion rate is 5.0% (p₁ = 0.05) and you want to detect a 10% relative lift (reaching p₂ = 0.055, an absolute lift of 0.5 percentage points) with 80% statistical power (β = 0.20) and 95% confidence (α = 0.05, two-sided):
- p̄ = (0.05 + 0.055) ÷ 2 = 0.0525
- z_crit (two-sided α = 0.05) = 1.95996 and z_power (80% power) = 0.84162
- Required sample size = 31,234 visitors per arm (62,468 total visitors).
- At 2,000 visitors per day, this test requires approximately 32 days of runtime.
To compare two groups’ means (for example, average order value) rather than conversion rates, use the T-Test Calculator. For a plain before-and-after change, use the Percentage Change Calculator.
Testing More Than Two Variants: A/B/C Multiplicity Corrections
When comparing multiple variants (A vs B, A vs C, A vs D) simultaneously, the probability of at least one false positive increases rapidly:
Family-Wise Error Rate (FWER) = 1 − (1 − α)^m
With 3 variants tested against control (m = 3) at α = 0.05, your cumulative false positive risk jumps from 5% to approximately 14.3%.
| Correction Method | Adjusted Alpha (α_adj) | Characteristics |
|---|---|---|
| Bonferroni | α ÷ m | Conservative and universally accepted; strictly bounds family-wise error. |
| Šidák | 1 − (1 − α)^(1/m) | Slightly more statistical power than Bonferroni under independent comparisons. |
| None (Unadjusted) | α | Inflates false discovery rate; should only be used in non-critical exploratory screens. |
Sample Ratio Mismatch (SRM): Why It Invalidates Tests
A Sample Ratio Mismatch (SRM) occurs when the observed traffic split differs significantly from the configured assignment ratio (e.g., 50/50).
SRM is assessed using a Pearson chi-square goodness-of-fit test:
χ² = Σ [ (O_i − E_i)² ÷ E_i ] with degrees of freedom df = 1
If the resulting p-value falls below 0.001, an SRM is confirmed. Common root causes include:
- Redirect latency: Slower load times on variant URLs causing visitors to bounce before tracking scripts execute.
- Bot filtering discrepancies: Automated crawlers interacting disproportionately with one variation.
- Browser extension blocking: Ad-blockers suppressing experimental JavaScript on specific paths.
An experiment with a confirmed SRM cannot be trusted, regardless of how high the observed uplift appears.
Common A/B Testing Pitfalls to Avoid
Even mathematically sound calculators cannot rescue poorly executed experiments. Watch out for these four common procedural errors:
- Continuous Peeking: Checking test results daily and stopping the moment p < 0.05 creates severe selection bias. Always wait until pre-planned sample sizes are achieved.
- Ignoring Seasonality: If your traffic changes between weekdays and weekends, run whole weeks (7, 14 or 21 days) so each day of the week is counted equally.
- Novelty Effects: Existing users may temporarily click new UI elements purely because they look unfamiliar. Allow tests sufficient runtime for initial curiosity to normalize.
- Conflating Statistical and Practical Significance: A 0.05% lift that achieves p = 0.01 across 5 million visitors may not generate enough profit to justify ongoing code maintenance costs.
To describe the spread of a metric, try the Standard Deviation Calculator or the IQR Calculator. To see what a lift is worth, use the Profit Margin Calculator.