🧪
✓ Editorially reviewed by Derek Giordano, Founder & Editor · BA Business Marketing

A/B Test Significance Calculator

Two-proportion z-test for conversion rates, the confidence interval for the lift, the sample size you need, and what peeking does to your error rate

Updated October 2026

🧮
700+ calculators, no signup required
Finance · Health · Math · Science · Business
nnng.com
An A/B test compares two conversion rates with a two-proportion z-test: z = difference ÷ √(p̄(1 − p̄)(1/n₁ + 1/n₂)), where p̄ is the pooled rate. With 500 conversions from 10,000 visitors on A (5.00%) and 560 from 10,000 on B (5.60%), the result is Not significant at 95%: +12.0% lift, p = 0.0583. The 95% interval for the difference runs from −0.02 to +1.22 points, and detecting a 10% lift reliably needs about 31,235 visitors per group.

How the Test Works

  1. Conversion rates: A = 500 ÷ 10,000 = 5.00%; B = 560 ÷ 10,000 = 5.60%.
  2. Pooled rate: (500 + 560) ÷ 20,000 = 5.30%.
  3. Standard error under “no difference”: √(0.053 × 0.947 × (1/10,000 + 1/10,000)) = 0.00317.
  4. z = (0.056 − 0.050) ÷ 0.00317 = 1.89, which gives a two-sided p-value of 0.0583, just above the 0.05 cut-off.

This is the large-sample test for two proportions in the NIST/SEMATECH e-Handbook of Statistical Methods. The calculator reproduces Penn State’s STAT 500 example (52 of 69 vs 120 of 131: z = 3.15, p = 0.002, 95% interval for the difference 0.050 to 0.275). For very small samples, use Fisher’s exact test instead.

Read the Interval, Not Just the p-Value

The confidence interval for the difference tells you what lift is plausible. In the default example it runs from slightly negative to +1.22 points, so B could be a little worse than A or as much as about 24% better. “Not significant” here means the test was too small to tell, not that B has no effect. The relative lift interval is the point interval divided by A’s rate, a common approximation.

TestLift95% CI for difference (points)zp-valueSignificant at 95%?
Default: 500 vs 560 of 10,000 each+12.0%-0.02 to +1.221.890.0583No
Same rates, twice the traffic+12.0%+0.16 to +1.042.680.0074Yes
Small test: 40 vs 55 of 1,000+37.5%-0.36 to +3.361.580.1148No
Big site: 2.00% vs 2.10% of 200,000+5.0%+0.01 to +0.192.230.0256Yes
PSU textbook: 52 of 69 vs 120 of 131+21.6%+5.02 to +27.463.150.0017Yes

The first two rows have identical conversion rates; doubling the traffic turns a borderline result into a clear one. The big-site row shows the opposite problem: with enough traffic a 0.1-point difference is “significant” even though it may not be worth acting on.

Sample Size: Decide It Before You Start

The visitors needed per group to detect a given relative lift at 95% confidence (two-sided), using the formula in Penn State’s STAT 509 course: n = 2(zα + zβ)² p̄(1 − p̄) ÷ (p₁ − p₂)². The same formula gives that course’s example of 79 per group for 25% vs 50% at 90% power.

Baseline conversionRelative lift to detectPer group, 80% powerPer group, 90% power
2%5%315,208421,973
2%10%80,683108,012
5%5%122,125163,491
5%10%31,23541,815
5%20%8,15910,923
10%10%14,75219,749
20%10%6,5118,716

Halving the lift you want to detect roughly quadruples the sample, and low baseline rates need far more traffic. A 5% lift on a 2% conversion rate needs hundreds of thousands of visitors per group.

The Peeking Problem

A 5% significance level assumes you look once, at a sample size fixed in advance. If you check results as they come in and stop the first time p dips below 0.05, the chance of declaring a winner when there is no real difference climbs with every look. These are the classic figures for equally spaced looks (Armitage, McPherson and Rowe, tabulated by Pocock in 1977), which our own 400,000-run simulation reproduced:

Number of looksChance of a false “winner”
15%
28%
311%
514%
1019%
2025%
5032%

Checking daily for seven weeks is about 50 looks, so a test of two identical pages would “win” roughly a third of the time. Fix the sample size first and analyze once, or use a sequential method designed for repeated looks (group sequential boundaries or always-valid p-values) that keeps the error rate at its stated level.

Common Mistakes

What This Calculator Does Not Cover

It handles one control and one variant with a yes/no outcome. Revenue per visitor or time on page need a t-test on means; three or more variants need a chi-square test or a correction for multiple comparisons; sequential and Bayesian testing need their own tools.

Frequently Asked Questions

How do I know if my A/B test is statistically significant?
Run a two-proportion z-test on the two conversion rates. If the p-value is below 0.05 (for 95% confidence), the difference is unlikely to be chance alone. 500 of 10,000 vs 560 of 10,000 gives p = 0.058, just short.
What sample size do I need for an A/B test?
It depends on the baseline rate and the smallest lift you care about. Detecting a 10% relative lift on a 5% conversion rate at 95% confidence and 80% power needs about 31,235 visitors per group.
Why is peeking at A/B test results a problem?
Each look is another chance for random noise to cross the significance line. Stopping at the first significant result after 5 looks gives about a 14% false-positive rate instead of 5%.
What is the difference between absolute and relative lift?
Absolute lift is the difference in percentage points (5.0% to 5.6% is +0.6 points); relative lift divides by the control rate (+12%).
Should I use a one-sided or two-sided test?
Two-sided unless you decided in advance that only an improvement matters and you would treat a worse result the same as no change. A one-sided test halves the p-value for the same data.
What does a 95% confidence interval for the lift mean?
A range of differences that fit the data at 95% confidence. If it includes zero, the test has not shown that B differs from A.

How to Use This Calculator

  1. Enter visitors and conversions for each version — A is the control, B the variant.
  2. Choose confidence and test direction — 95% two-sided is the usual default.
  3. Set the lift worth detecting and power — for the sample size the test needs.
  4. Say how often you checked — to see the false-positive rate that early stopping implies.
📚 Sources & References
  1. [1] NIST/SEMATECH e-Handbook of Statistical Methods, section 7.3.3: comparing two proportions (accessed October 2026). www.itl.nist.gov
  2. [2] Penn State STAT 500, Lesson 7.2.2: hypothesis testing for two proportions (accessed October 2026). online.stat.psu.edu
  3. [3] Penn State STAT 509, Lesson 6a.7: sample size for comparative studies (accessed October 2026). online.stat.psu.edu
  4. [4] Pocock, S. J. Group sequential methods in the design and analysis of clinical trials. Biometrika 64(2), 1977. doi.org
✅ Editorial Standards — Every calculator is built from peer-reviewed formulas and official data sources, editorially reviewed for accuracy, and updated regularly. Read our full methodology · About the author