A/B Test Significance Calculator

Enter visitors and conversions for two variants to check whether the difference is statistically significant.

P(A) (%)
—
P(B) (%)
—
(P(B) / P(A) − 1) (%)
—
Z-score
—
P-value
—
p < α?
—
1 − p (%)
—

Pooled two-proportion z-test, two-sided normal approximation with p<α. Visitor counts are positive integers ≤10¹²; conversions are integers from zero to visitors. Use a decimal point or exponent; reduced decimal denominators ≤10²⁴, 0<α<1. Relative lift is undetermined when A has zero conversion rate. With zero pooled variance, z, p, decision and 1−p are undetermined. The added 1−p percentage is only a complementary number, not confidence that B wins or that a hypothesis is true. It may round to 100%; extremely small p is reported as a bound. Approximate displays use 12 significant digits.

Method, assumptions and limits

Enter visitors and conversions for two variants to check whether the difference is statistically significant.

Pooled two-proportion z-test, two-sided normal approximation with p<α. Visitor counts are positive integers ≤10¹²; conversions are integers from zero to visitors. Use a decimal point or exponent; reduced decimal denominators ≤10²⁴, 0<α<1. Relative lift is undetermined when A has zero conversion rate. With zero pooled variance, z, p, decision and 1−p are undetermined. The added 1−p percentage is only a complementary number, not confidence that B wins or that a hypothesis is true. It may round to 100%; extremely small p is reported as a bound. Approximate displays use 12 significant digits.

z=(pB−pA)/sqrt(p₀(1−p₀)(1/nA+1/nB)); p=erfc(|z|/sqrt(2))

Frequently asked questions

How should I interpret this estimate?

Pooled two-proportion z-test, two-sided normal approximation with p<α. Visitor counts are positive integers ≤10¹²; conversions are integers from zero to visitors. Use a decimal point or exponent; reduced decimal denominators ≤10²⁴, 0<α<1. Relative lift is undetermined when A has zero conversion rate. With zero pooled variance, z, p, decision and 1−p are undetermined. The added 1−p percentage is only a complementary number, not confidence that B wins or that a hypothesis is true. It may round to 100%; extremely small p is reported as a bound. Approximate displays use 12 significant digits.

How we verified this calculator

The calculator is checked against 6 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Conversions B = 100
Z-score: 0
P-value: 1
2
Conversions A = 0
Conversions B = 0
P(A) (%): 0
P(B) (%): 0
3
Conversions A = 0
Conversions B = 10
P(B) (%): 1
4
Visitors A = 1000
Conversions A = 100
Visitors B = 1000
Conversions B = 130
P(A) (%): 10
P(B) (%): 13
(P(B) / P(A) − 1) (%): 30
Z-score: 2.10274060562
5
Visitors A = 1000
Conversions A = 130
Visitors B = 1000
Conversions B = 100
P(A) (%): 13
P(B) (%): 10
(P(B) / P(A) − 1) (%): -23.0769230769
Z-score: -2.10274060562
6
Visitors A = 1000
Conversions A = 100
Visitors B = 1000
Conversions B = 100
P(A) (%): 10
P(B) (%): 10
(P(B) / P(A) − 1) (%): 0
Z-score: 0

How we test our calculators →

Also try:

Back to category →