A/B tests replace opinions about creative, offers and landing pages with evidence, which is why performance teams run one before scaling a winner. The hard part is volume: a lift only counts once the traffic is big enough that chance can't explain it. An A/B test compares two versions against each other; a holdout test compares showing ads with showing none, which measures incrementality.
Formula
z = (conversion rate B - conversion rate A) ÷ √(pooled rate × (1 - pooled rate) × (1 ÷ visits A + 1 ÷ visits B))
- Pooled rate
- All conversions from both versions divided by all visits to both.
- z
- How many standard errors apart the two rates are. Beyond 1.96 in either direction meets the 95% confidence level that is conventional for a two-sided test.
Worked example
A skincare brand splits paid traffic evenly between two landing pages for 14 days. Page A gets 4,000 visits and 120 orders. Page B gets 4,000 visits and 156 orders.
- Page A conversion rate: 120 ÷ 4,000 = 3.0%.
- Page B conversion rate: 156 ÷ 4,000 = 3.9%.
- Difference: 3.9% - 3.0% = 0.9 percentage points, a 30% relative lift (0.9 ÷ 3.0).
- Pooled rate: (120 + 156) ÷ 8,000 = 3.45%.
- Standard error: √(0.0345 × 0.9655 × (1 ÷ 4,000 + 1 ÷ 4,000)) = 0.408 percentage points.
- z = 0.9 ÷ 0.408 = 2.21, above 1.96. A gap this large in either direction would show up by chance only about 2.7% of the time if the pages converted equally.
- Same rates on half the traffic (2,000 visits each, 60 and 78 orders): standard error √(0.0345 × 0.9655 × (1 ÷ 2,000 + 1 ÷ 2,000)) = 0.577 percentage points, and z = 0.9 ÷ 0.577 = 1.56, below 1.96, a gap chance would produce about 11.9% of the time.
Page B's 30% lift clears the conventional 95% confidence level at 4,000 visits a page but not at 2,000, which is why sample size decides whether a test can be called.
How to measure it
- Write the hypothesis and the one metric that decides it before launch, such as cost per purchase or landing page conversion rate. Meta advises testing one variable at a time with a specific hypothesis.
- Run both versions at the same time through the platform's A/B tool. Running version A one week and version B the next mixes the change with everything else that changed that week.
- Run the test for at least 7 days, and longer if buyers usually take more than a week to convert. Meta's A/B tests run up to 30 days.
- Size the test before launch from your current conversion rate and the smallest lift worth acting on. Meta suggests an estimated power of 80% or higher.
Common mistakes
- Stopping the test the day one version pulls ahead. Checking daily and stopping at the first good-looking gap raises the chance of crowning a false winner.
- Changing several things at once. If the new ad has a new hook, a new offer and a new audience, a win can't tell you which change worked.
- Reading a Meta winner as proof. Meta calls an A/B test result a winner at 65% confidence or higher, well below the 95% that is conventional in statistics, so retest a close call before you scale it.
- Letting test audiences overlap with other campaigns. Meta says overlapping audiences can cause delivery problems and contaminate A/B test results.
How Pomo uses it
Pomo's paid launches on Google/YouTube, Facebook and Instagram, and TikTok include A/B tests on every plan from Core up. In the Enchanted Voyages case study, A/B testing mostly did not happen before Pomo, and the plan now ramps spend through campaigns generated and tested in Pomo once conversion is fixed.
Common questions
How long should an A/B test run?
At least 7 days, which is Meta's guidance for reliable results, and longer when buyers usually take more than a week to convert. Meta's A/B tests can run up to 30 days. Fix the end date or the sample size before launch rather than stopping when one version pulls ahead.
How many visitors do I need for an A/B test?
Enough that the lift you care about stands out from chance, which depends on your conversion rate and the size of the lift. At a 3% conversion rate, a 30% lift from 3.0% to 3.9% clears the conventional 95% confidence level at 4,000 visits a page but not at 2,000. Smaller lifts and lower conversion rates need far more traffic.