# A/B Test Significance & p-Value Calculator

> Test whether two conversion rates differ significantly. Computes relative lift, two-proportion z-test p-value, and confidence interval for the difference.

Source: https://screenflows.dev/en/learn/tools/ab-test-significance
Updated: 2026-11-26

Enter conversions among independent units in each group to estimate the rate difference, a two-sided p-value and an interval; then check the experiment design and method assumptions.

<form id="sig-form" class="calc" autocomplete="off">
  <div class="calc-grid">
    <label>Group A (control) visitors
      <input name="n1" type="text" inputmode="numeric" value="213" />
    </label>
    <label>Group A conversions
      <input name="x1" type="text" inputmode="numeric" value="102" />
    </label>
    <label>Group B (variant) visitors
      <input name="n2" type="text" inputmode="numeric" value="317" />
    </label>
    <label>Group B conversions
      <input name="x2" type="text" inputmode="numeric" value="188" />
    </label>
    <label>Confidence level
      <select name="conf">
        <option value="0.9">90%</option>
        <option value="0.95" selected>95%</option>
        <option value="0.99">99%</option>
      </select>
    </label>
  </div>
  <div id="sig-out" aria-live="polite"><noscript><p class="calc-note">The calculator needs JavaScript; you can also use the formula below.</p></noscript></div>
</form>

![Diagram showing 95% confidence intervals for conversion rate difference relative to the zero line](/learn/assets/diagrams/en-ab-test-significance.svg)

## Read the default example first

Treat the default numbers as a **fictional example**. Group A represents mobile: 102 purchases among 213 users. Group B represents desktop: 188 among 317. The observed rates are about **47.9%** and **59.3%**; B − A is about **11.4 percentage points**. The calculator returns a two-sided p-value of approximately **0.0096** and a 95% normal-approximation interval for the difference of **+2.8 to +20.0 percentage points**.

This is not a randomized experiment: people were not assigned to devices. The difference is a descriptive association in the sample, not evidence that switching a person to desktop would cause a purchase. The sample illustrates the calculation; it is not a real store or industry benchmark.

## Entering an experiment

Define assignment units and conversion first. For example, randomly assign users and record whether each makes at least one order within seven days. Each person belongs to one group and appears once in that denominator. Someone who has not had a full seven days should not automatically be counted as a non-converter. Enter independent unit counts and conversions as non-negative integers; conversions cannot exceed the group total.

If people have repeated sessions, members of a workspace affect one another, or groups compete for limited seats, an ordinary independent two-proportion calculation may not apply. Randomizing by user does not make every session a separate independent user. Choose analysis methods that reflect the actual assignment and dependence.

## Method used by the calculator

The page uses a **two-sided pooled two-proportion z-test without continuity correction**, testing equal population rates with a normal approximation. The difference is **B − A**. Its interval uses an unpooled Wald normal approximation. Because the test and interval use different standard errors, near the boundary their significance conclusion and whether the interval crosses zero can occasionally disagree.

```text
p₁ = x₁/n₁; p₂ = x₂/n₂; p = (x₁+x₂)/(n₁+n₂)
z = (p₂−p₁) / √[p(1−p)(1/n₁+1/n₂)]
difference interval = (p₂−p₁) ± z(1−α/2)√[p₁(1−p₁)/n₁+p₂(1−p₂)/n₂]
```

With few conversions or non-conversions in either group, the normal approximation and Wald interval can be unreliable. The calculator stops the normal approximation when any cell is below 10, but reaching 10 does not guarantee accuracy. It also stops when both groups have zero conversions or both are all conversions and suggests another method. Sparse data may call for an exact test or a more suitable interval, noting that a test and interval need not correspond exactly. See the [R proportion-test documentation](https://www.stat.ethz.ch/R-manual/R-devel/library/stats/html/prop.test.html).

## Common misreadings

**p = 0.03 does not mean B has a 97% chance of being better.** It is the probability of a test statistic at least as extreme as the one observed, assuming the null and test assumptions hold. Statistical significance also does not establish a commercially worthwhile benefit.

**Non-significance is not proof of no effect.** The interval may contain meaningful benefits and harms. Even a narrow interval needs comparison with a prespecified business threshold; a formal claim that the options are sufficiently similar requires an appropriate equivalence test.

**Random assignment does not automatically validate a causal claim.** Check assignment, missing data, early stopping, interference and complete follow-up. Non-random channel or device differences need cautious description. Repeatedly inspecting an ordinary fixed-sample test and stopping at the first significant result changes its false-positive rate.

## References

- [NIST/SEMATECH e-Handbook of Statistical Methods: Comparing Two Proportions](https://www.itl.nist.gov/div898/handbook/prc/section3/prc33.htm)
- [Kohavi, Tang & Xu (2020), Trustworthy Online Controlled Experiments (Cambridge University Press)](https://experimentguide.com/)

## FAQ

### What if we test several metrics or variants?

Choose primary outcomes and comparisons before the experiment. Additional tests increase the risk of at least one false positive. Use an appropriate multiple-testing procedure; this calculator does not apply a correction automatically.

### What if both groups have zero or all conversions?

The page stops the normal approximation when both groups are all zero or all 100%, and suggests a suitable exact or score-based method. These data do not prove equality; seek statistical support when needed.

### What should we test first?

Use ScreenFlows funnels and the flow network to investigate unusual transitions or reproducible errors. Model estimates help prioritize questions, not establish the impact of an intervention. Once the intervention and assignment unit are chosen, use the [sample size calculator](/en/learn/tools/ab-test-sample-size) for planning.
