A/B test significance calculator

    Check whether the gap between two conversion rates is real, or could be chance.

    Version A The control
    Version B The variation

    Relative uplift, B over A

    +24.0%

    B converts better than A, and the difference is unlikely to be chance (significant at 95%).

    A converts
    5.00%
    B converts
    6.20%
    z-score
    2.334
    p-value
    0.0196
    • 90%Significant
    • 95%Significant
    • 99%Not significant

    How it's calculated

    This is a two-proportion z-test, two-sided. First the conversion rates and the pooled rate:

    pA = cA / nA    pB = cB / nB    p = (cA + cB) / (nA + nB)
    cA and cB are conversions, nA and nB are visitors.

    Then the z-score, the gap divided by its standard error:

    z = (pB − pA) / √( p(1 − p)(1/nA + 1/nB) )
    The p-value is the chance of a |z| at least this large if A and B were truly equal: p = 2 × (1 − Φ(|z|)), where Φ is the standard normal distribution.

    The result is significant at 95% when p is below 0.05 (|z| above 1.960), at 90% below 0.10 (1.645) and at 99% below 0.01 (2.576). Relative uplift is (pB − pA) / pA.

    Example: A has 200 conversions from 4,000 visitors (5.00%), B has 248 from 4,000 (6.20%). The pooled rate is 5.6%, z = 2.334 and p = 0.0196: significant at 90% and 95%, not at 99%. B's uplift is +24%.

    Running a fair test

    Pick the sample size first. Small uplifts need a lot of traffic. Decide how many visitors each version gets before you start, then read the result once.

    Split traffic at random. Send visitors to A or B by chance, at the same time, so weekdays, campaigns and seasons hit both.

    Change one thing. If B has a new headline and a new button, you won't know which one moved the number.

    Questions about A/B tests

    What does the p-value mean here?
    If A and B truly converted at the same rate, the p-value is the chance of seeing a gap at least this big by luck. A p-value of 0.02 means a 2% chance. It is not the chance that B is better.
    Can I stop the test as soon as it turns significant?
    Better not. Checking every day and stopping at the first significant result makes false wins much more likely. Decide the sample size before you start and read the result once you reach it.
    Is this one-sided or two-sided?
    Two-sided. It asks whether B differs from A in either direction, which is the safer default when B could also be worse.

    Test your forms in Formzed

    Formzed counts visitors and completions for every form, so you can run two versions and test them right here.