A/B Test Calculator

Calculate if A/B test results are statistically significant, determine the winner, and estimate the confidence level. Free, instant.

Frequently Asked Questions

How is statistical significance calculated for A/B tests?

A/B tests typically use a two-proportion z-test. The formula computes z = (p1 - p2) / sqrt(p_pool × (1-p_pool) × (1/n1 + 1/n2)), where p1 and p2 are conversion rates and n1/n2 are sample sizes. A z-value above 1.96 means p < 0.05 (95% confidence).

What sample size do I need for an A/B test?

It depends on baseline rate and minimum detectable effect (MDE). For a 5% baseline conversion detecting a 10% relative lift at 95% confidence with 80% power, you need roughly 31,000 visitors per variant. Online calculators (or Evan Miller's) compute this from baseline rate, MDE, alpha, and power.

When should I stop an A/B test?

Run tests for at least 1-2 full business cycles (typically 1-2 weeks) AND until you reach predetermined sample size. Avoid "peeking" - looking at results early inflates false positive rates. Use sequential testing methods (Bayesian, mSPRT) if you must monitor mid-test.

What's a good minimum detectable effect (MDE)?

For mature products: 1-3% relative lift. For early-stage products with low traffic: 10-20%+. Smaller MDE requires larger sample sizes - detecting a 1% lift needs ~100x the traffic of detecting a 10% lift. Set MDE based on what would be commercially meaningful, not what's detectable.

Business Information Disclaimer: Estimates only. Not professional business advice.

This calculator provides estimates for informational purposes only. Business results vary by industry, market conditions, and execution. Not a substitute for professional business consulting, accounting, or legal advice. Consult qualified professionals before making business decisions.