Statistical Calculators

A/B Testing Calculator

Determine whether the difference between two variants is statistically significant.

Enter Your Data
Variant A — Control
Variant B — Challenger

Conversion Rate A
Control
Conversion Rate B
Challenger
Z-Score
p-value
Two-tailed
Observed Confidence Level
0% 100%
How to Use This Calculator
1
Enter Variant A (Control): This is your current version — the baseline. Enter the total number of visitors who saw it and the number of conversions (clicks, signups, purchases, etc.).
2
Enter Variant B (Challenger): The new version you're testing. Same fields — visitors and conversions. Both variants should run simultaneously and be exposed to a random, independent audience.
3
Choose a confidence threshold: 95% is the industry standard. Use 99% when the cost of a wrong decision is high (e.g., pricing changes). Use 90% only for fast, low-risk iterations.
4
Click "Calculate Significance": The calculator returns the Z-score, p-value, observed confidence level, and a clear verdict — significant or not significant.
5
Read the uplift: If B wins, you'll see the relative improvement in conversion rate. Only ship the change if the result is statistically significant and the uplift is meaningful for your business.
A/B Testing Online Calculator
How to use this A/B Testing Online Calculator?
Theory & Background

What Is A/B Testing?

A/B testing (also called split testing) is a controlled experiment that compares two versions of something — a webpage, email, button, or any other element — to determine which performs better on a chosen metric. One group of users sees Variant A (the control), another sees Variant B (the challenger). The key question is: Is the observed difference in conversion rates real, or could it be random noise?

Statistics gives us a principled answer through hypothesis testing.

The Null and Alternative Hypotheses

Before running the test, we define two competing claims:

  • H₀ (Null Hypothesis): There is no real difference between A and B. Any observed difference is due to chance.
  • H₁ (Alternative Hypothesis): There is a real difference — B's conversion rate differs from A's.

We never "prove" H₁; we only gather evidence strong enough to reject H₀.

Conversion Rate

For each variant, the observed conversion rate is simply:

\[ \hat{p} = \frac{\text{Conversions}}{\text{Visitors}} \]

Example: 210 conversions from 5,000 visitors → p̂ = 0.042 = 4.2%

The Z-Test for Two Proportions

We use a two-proportion Z-test to measure how many standard deviations the observed difference lies from zero (i.e., from "no effect").

Step 1 — Pooled proportion (the best estimate of the true rate under H₀):

\[ \hat{p}_{pool} = \frac{C_A + C_B}{N_A + N_B} \]

Step 2 — Standard error of the difference:

\[ SE = \sqrt{\hat{p}_{pool}(1 - \hat{p}_{pool})\left(\frac{1}{N_A} + \frac{1}{N_B}\right)} \]

Step 3 — Z-score:

\[ Z = \frac{\hat{p}_B - \hat{p}_A}{SE} \]

A large |Z| means the difference is far from zero in standard-deviation units — strong evidence against H₀.

The p-value

The p-value is the probability of observing a difference at least as extreme as the one measured, assuming H₀ is true. We use a two-tailed test because we care about differences in either direction:

\[ p = 2 \times \left(1 - \Phi(|Z|)\right) \]

where \(\Phi\) is the standard normal cumulative distribution function.

  • If p < α (e.g., p < 0.05 for 95% confidence), reject H₀ → result is statistically significant.
  • If p ≥ α, we do not have enough evidence to reject H₀.

Confidence Level

The confidence level (1 − p) tells you how certain we are that the observed difference is not random:

\[ \text{Confidence Level} = (1 - p) \times 100\% \]

A 95% confidence level means: if we ran this exact experiment 100 times, 95 of those experiments would produce a significant result if the true effect is real.

Relative Uplift

If B outperforms A, the relative uplift quantifies the improvement:

\[ \text{Uplift} = \frac{\hat{p}_B - \hat{p}_A}{\hat{p}_A} \times 100\% \]

This is more meaningful than absolute difference — a 1% → 1.1% improvement (+0.1 pp) is actually a +10% relative uplift.

Worked Example

MetricVariant A (Control)Variant B (Challenger)
Visitors (N)5,0005,000
Conversions (C)210265
Conversion Rate (p̂)4.20%5.30%

Pooled proportion:

\[ \hat{p}_{pool} = \frac{210 + 265}{5000 + 5000} = \frac{475}{10000} = 0.0475 \]

Standard error:

\[ SE = \sqrt{0.0475 \times 0.9525 \times \left(\frac{1}{5000} + \frac{1}{5000}\right)} = \sqrt{0.04519 \times 0.0004} \approx 0.00424 \]

Z-score:

\[ Z = \frac{0.053 - 0.042}{0.00424} \approx \frac{0.011}{0.00424} \approx 2.59 \]

p-value:

\[ p = 2 \times (1 - \Phi(2.59)) \approx 2 \times 0.0048 \approx 0.0096 \]

Since p = 0.0096 < 0.05, the result is statistically significant at the 95% confidence level. Variant B's higher conversion rate is unlikely to be due to chance. Relative uplift: +26.2%.

Common Pitfalls

  • Peeking early: Checking results before your planned sample size is reached inflates false positives. Commit to a minimum sample before stopping.
  • Small samples: The Z-test approximation is reliable when both N·p̂ ≥ 5 and N·(1−p̂) ≥ 5 for each variant.
  • Multiple testing: Running many simultaneous tests increases the chance of a false positive. Apply a Bonferroni correction if needed.
  • Novelty effect: Users may respond differently to something simply because it's new. Allow the test to run long enough to capture stable behavior.
  • Significance ≠ importance: A statistically significant result can still have a negligible business impact. Always pair the p-value with practical effect size.