A/B Testing: Statistical Significance Made Simple
Learn how sample size, significance, and power affect the design and interpretation of A/B tests.
Prerequisites
- • Basic understanding of conversion rates
- • Familiarity with product metrics
Use statistical tests to assess the evidence for a difference, then consider whether that difference matters to the product.
Why stopping early changes the result
Suppose a checkout test shows a 15% lift after three days, but conversions fall 5% after launch. That reversal alone does not tell you why it happened. One risk to check is whether the test stopped at the first positive result. Repeatedly checking a fixed-horizon test and stopping when it crosses the threshold increases the false-positive rate1.
Plan a fixed-horizon test
- Calculate the sample size before starting.
- Set a duration and analysis time, and follow that plan.
- Compare the result with the chosen significance level, commonly 0.05.
- Review the effect size and confidence interval against the improvement that would justify the change.
- Decide what to do when the result is inconclusive; do not keep extending the test until it looks positive.
Four statistical concepts
1. Statistical significance
A result is statistically significant when it crosses the threshold specified for the test. That is evidence assessed under a statistical model, not proof that a feature works or that its effect is large enough to matter2.
2. P-value
A p-value describes how unusual the observed result, or a more extreme one, would be under the null hypothesis and the test’s assumptions. A common threshold is 0.05.
It is not the probability that B is better, that the null hypothesis is true, or that chance caused the result2.
3. Confidence intervals
A confidence interval describes uncertainty in the estimated effect. For example, a relative lift estimated at 10% with an interval from 7% to 13% is more precise than the same estimate with a wider interval, at the same confidence level.
A 95% confidence procedure would cover the true effect in about 95% of repeated samples under its assumptions. To assess the difference between A and B, use the interval for that difference; overlap between separate group intervals does not settle the question.
4. Statistical power
Power is the probability that the test detects a specified effect when that effect exists, under the planning assumptions. At 80% power, a test would detect that effect in about 80% of repeated experiments. Smaller effects may be harder to detect.
Low power increases the chance of missing an effect that matters, so choose the minimum detectable effect before calculating sample size.
How many users do you need?
Smaller effects usually require larger samples, with other assumptions held constant. There is no useful sample-size estimate from the percentage improvement alone: you also need the baseline rate, significance level, power, and test design. Enter those inputs in the calculator below.
Calculate Your Sample Size
Quick Example
Let's say you're testing a new product page:
- Current conversion rate: 5%
- You want to detect: 20% improvement (that's 5% → 6%)
- Using standard settings (95% confidence, 80% power)
Result: PM Toolkit's planning approximation gives about 7,700 visitors for each version with a two-sided test. Other sample-size methods can give different estimates.
If your page gets 1,000 visitors daily, split 50/50, that's 500 per version daily. Your test needs to run at least 16 days.
Real-World Examples
Booking.com: a high volume of experiments
Booking.com reports running 25,000 tests per year, with about 10% improving its metrics3. A test that does not produce an improvement can still help the team reject an idea; that result does not necessarily mean the experiment failed.
Microsoft: small changes at scale
Microsoft tested shades of blue for ad links. The reported winning color (#0044CC) was associated with an estimated $80 million in additional annual revenue4. A small change can be valuable at scale, though detecting a small effect may require a large sample.
Airbnb: check who the sample represents
Airbnb researchers documented how marketplace interference can bias an experiment when treatment and control affect one another.5 Review whether the randomization unit and analysis match the marketplace behavior you want to measure.
Obama Campaign: Test Your Assumptions
The Obama campaign tested 24 combinations of images and button text. The family photo and "Learn More" combination improved email sign-ups by 40.6%. The team estimated that the additional sign-ups contributed $60 million in donations over the campaign6.
The experiment compared actual sign-up behavior across the options; the donation figure is an extrapolation, not a directly randomized donation outcome.
When NOT to A/B Test
A/B testing isn't always the answer. Skip it when:
- Fixing obvious problems: Don't test fixing a broken checkout button
- Legal requirements: GDPR compliance isn't optional
- Insufficient traffic: The required sample cannot be reached in a useful period
- Major changes: Check whether random assignment and meaningful comparison are feasible before choosing an A/B test
- Time-sensitive campaigns: One-day sales need different approaches
Use these instead:
- User interviews to understand "why" something happens
- Fake door tests to validate demand
- Gradual rollouts to reduce risk
- Before/after analysis for major changes, while checking whether time trends or other changes could explain the result
Common testing mistakes
1. Checking Results Too Often
The mistake: Looking at results every day and stopping when they look good.
Why it matters: Stopping a fixed-horizon test at the first favorable result changes its false-positive rate.7
Do this instead: Follow the planned analysis and stopping rules. Monitor instrumentation and safety during the test without declaring a winner from unplanned significance checks.
2. Not Calculating Sample Size
The mistake: "Let's just run it for a week and see what happens."
Why it matters: Without a power calculation, you do not know whether the planned sample can detect the effect that matters.
Do this instead: Calculate sample size first. If the required duration is impractical, reconsider the effect you need to detect, eligible traffic, or test design.
3. Testing Too Many Things at Once
The mistake: Testing 10 different versions against your original.
Why it's bad: The more versions you test, the more likely you'll see fake winners by chance.
Do this instead: Decide which versions you will compare before launch. Comparing several versions raises the chance of a false winner, so adjust the analysis for those extra comparisons. Even three versions may need this.
4. Celebrating Tiny Wins
The mistake: Your test shows a 0.1% improvement. Ship it!
Why it matters: Statistical significance does not establish practical value. Even a small lift can matter at sufficient scale.
Do this instead: Set the improvement worth pursuing before starting, and compare the estimated effect and its uncertainty with the implementation cost.
5. Uneven Traffic Split
The mistake: Your 50/50 test actually sends 52% to A and 48% to B.
Why it matters: An unexpected traffic split can point to a problem with random assignment or data collection. Small samples can also look uneven by chance.
Do this instead: Check whether the group sizes differ more than chance would explain from the split you planned. This is called a sample-ratio mismatch check. Investigate a flagged mismatch before trusting the test result.
AI Prompts for A/B Testing
Use these prompts with ChatGPT or Claude for testing assistance:
Sample Size Calculation:
Calculate the required sample size for an A/B test with these parameters: - Current baseline conversion rate: [X%] - Minimum detectable effect: [Y%] relative improvement - Statistical significance level: 5% (alpha = 0.05) - Statistical power: 80% (beta = 0.20) - Test type: Two-tailed - Expected daily traffic: [Z visitors/day] Please provide: 1. Sample size needed per variant 2. Total sample size required 3. Estimated test duration in days 4. Any recommendations if the duration is impractical
Test Results Analysis:
Analyze these A/B test results for statistical and practical significance: Control Group (A): - Total visitors: [X] - Conversions: [Y] - Conversion rate: [Z%] Treatment Group (B): - Total visitors: [A] - Conversions: [B] - Conversion rate: [C%] Please calculate: 1. The relative and absolute lift 2. Statistical significance (p-value) 3. 95% confidence interval for the difference 4. Whether the result is practically significant 5. Recommendation on whether to ship this change
Test Design Review:
Review and critique this A/B test design: Hypothesis: [We believe that X will cause Y because Z] Primary metric: [Conversion rate/Revenue/Engagement] Secondary metrics: [List any guardrail metrics] Target audience: [User segment or "all users"] Traffic allocation: [50/50 or other split] Planned duration: [X days/weeks] Daily traffic: [Y visitors per day] Current baseline rate: [Z%] Minimum effect to detect: [W%] Please identify: 1. Potential statistical validity issues 2. Sample size adequacy 3. Risk of false positives or negatives 4. Suggestions for improvement 5. Alternative testing approaches if applicable
Your Pre-Test Checklist
Complete each step before launching your test:
✓ Calculate sample size - Know how many users you need ✓ Define success upfront - What improvement matters? ✓ Check your traffic - Enough daily visitors? ✓ Set test duration - Can you wait that long? ✓ Plan analysis timing - When will you check results?
Simple Test Plan Template
## Test: [Name] **What we're testing:** [Describe the change in plain language] **Why we think it will work:** [Your reasoning] **Success metric:** [What number should improve?] **Sample size needed:** [Use calculator to get this number] **Test duration:** [How many days based on your traffic] **Decision criteria:** - Ship if: Improvement > [X%] and statistically significant - Inconclusive at the planned endpoint: Report uncertainty; do not extend solely to obtain significance - Stop early only under: [Predefined safety or sequential stopping rule]
Action Items
- Right now: Calculate sample size for your next test
- This week: Review your last test - did you peek at results early?
- This month: Start using the test plan template above
Review the result against the plan
Check the planned sample, analysis timing, effect size, and uncertainty before making a release decision. Statistical significance is one part of that review, alongside costs, guardrail metrics, and practical value.
Next Steps
Start running better tests today:
- Calculate sample size with our sample size calculator
- Analyze your results with our A/B test calculator
- Track conversions with our conversion rate calculator
Glossary
Confidence interval: A range of effect sizes consistent with your results. A wider range means more uncertainty.
Control: Your original version (Version A)
Minimum detectable effect: The size of improvement you plan the test to detect.
P-value: If there were no real difference, how likely would a result this extreme or more extreme be?
Power: How likely your test is to detect an improvement of the size you planned for.
Sample size: Number of users needed per version
Statistical significance: Your result meets the evidence threshold set before the test. This does not tell you whether the improvement is large enough to matter.
Variant: Your new version being tested (Version B)
Advanced Techniques (Optional)
Once the basics feel automatic, these advanced methods are worth a look:
- Sequential testing: Check results as the test runs, using rules designed to avoid extra false positives.
- Bayesian A/B testing: Combine an initial estimate with new data to update what you know about the effect.
- CUPED: Reduce sample size needs using historical data
- Multi-armed bandits: Send more traffic to promising options while continuing to try others.
- Stratified sampling: Ensure balanced user segments
Sources
Footnotes
-
"Don't Stop Your A/B Tests Part-Way Through," Heap Analytics ↩
-
The ASA Statement on p-Values: Context, Process, and Purpose ↩ ↩2
-
"At Booking.com, Innovation Means Constant Failure," Harvard Business Review ↩
-
"Behind Bing's blue links," CNET, 2010 ↩
-
Reducing Interference Bias in Online Marketplace Experiments Using Cluster Randomization: Evidence from a Pricing Meta-experiment on Airbnb. ↩
-
How Obama Raised $60 Million by Running a Simple Experiment, Optimizely ↩
-
Kohavi, R., Tang, D., & Xu, Y. (2020). Trustworthy Online Controlled Experiments. Cambridge University Press ↩