# A/B test significance calculator

**Quick answer:** An A/B test result is statistically significant when the p-value is below 1 minus your confidence level: under 0.05 at 95% confidence. 100 of 1,000 visitors against 130 of 1,000 gives p ≈ 0.036, significant at 95%.

Enter visitors and conversions for version A and version B. We test whether the difference between them is real or could be chance.

Use it: https://doubleagent.so/tools/ab-test-significance-calculator/

## Worked example

Version A converted 100 of 1,000 visitors (10%) and version B 130 of 1,000 (13%), a 30% uplift. The two-proportion z-test gives z ≈ 2.10 and p ≈ 0.036: significant at 95% confidence, but not at 99%.

## How it works

A two-sided two-proportion z-test with a pooled standard error: z = (rate B − rate A) ÷ √(p × (1 − p) × (1/visitors A + 1/visitors B)), where p is the pooled conversion rate, and the p-value comes from the normal distribution. The result is significant when the p-value is below 1 − the confidence level (95% by default). With fewer than 10 conversions in either version the calculator warns that the approximation is shaky.

Query form: `/tools/ab-test-significance-calculator/?va=<n>&ca=<n>&vb=<n>&cb=<n>&confidence=<percent>`.

## Questions

### How do you know if an A/B test is significant?

Compare the p-value with your threshold. At 95% confidence, a p-value below 0.05 means a difference this large would happen by chance less than 5% of the time if the versions really performed the same. This calculator uses a two-proportion z-test, the standard test for conversion rates.

### How many visitors does an A/B test need?

Enough that each version has a fair number of conversions; with fewer than about 10 each the result is shaky, and the calculator warns you. Small differences need far more traffic to detect than large ones. Decide the sample size before you start, and don’t stop the moment it turns significant.

### Can I stop the test as soon as it’s significant?

Checking repeatedly and stopping at the first significant result makes false winners much more likely. Run the test for the planned sample, and for whole weeks, so weekday and weekend visitors are both counted.

### How do bots affect A/B tests?

Bots split between both versions and almost never convert, so they lower both conversion rates and add noise, which makes real differences harder to detect. If one version is shown more to a bot-heavy placement, it can even look worse than it is. Filter bot sessions out before you call a winner.

## Related

- [Conversion rate calculator](https://doubleagent.so/tools/conversion-rate-calculator/)
- [Session quality checker](https://doubleagent.so/tools/session-quality-checker/)

## Label every visitor on your site

Double Agent is one script that tells you if each visitor is a human, a bot or an AI agent, and what they came to do. The free plan has every feature. Start at https://app.doubleagent.so/login?signup=1 or read https://doubleagent.so/docs/
