Most failed A/B tests fail before they start
A product team has an idea: show the expected delivery date on every product page. Somebody builds it, it goes live for half the visitors, and two weeks later the dashboard says the new version is "up 4%". Is that a win? Without a plan written in advance, nobody can say. Was conversion rate the goal, or revenue? Was 4% big enough to matter? Did returns go up at the same time? Was the test even large enough to see a 4% change? Most disappointing experiments do not fail in the statistics. They fail in the first ten minutes, when nobody wrote down what success means.
This free first lesson is for product managers, marketers, e-commerce and growth teams, analysts and founders who run or review A/B tests and want to do it properly with nothing more than Excel. You will write a real test plan: one hypothesis, a primary metric, a secondary metric, a guardrail metric, and the minimum detectable effect (MDE) that decides how big the test has to be. No statistics background is needed yet. The statistical tests come later in the course, and they only make sense once this plan exists.
We use the same fictional online home-goods shop as the lab above, Harbor & Pine, with its last 28 days of data: 412,800 visitors, 12,384 orders, revenue of 1,064,256 and 1,610 returned orders. All names and numbers are fictional.
The core concept: a test plan in five lines
An A/B test compares a control (the current page, version A) with a variant (the changed page, version B). Visitors are split at random, so the only systematic difference between the two groups is the change. A test plan fixes five things before the first visitor arrives.
- Hypothesis. The change, the metric and the direction in one sentence: Showing the expected delivery date on product pages increases the conversion rate. The null hypothesis H0 says there is no difference; the test tries to collect enough evidence to reject it.
- Primary metric. The one number that decides the test. Here: conversion rate = orders / visitors.
- Secondary metrics. Numbers that help explain the result but do not decide it. Here: revenue per visitor (RPV).
- Guardrail metrics. Numbers that must not get worse. Here: return rate = returned orders / orders. If customers buy more because of an optimistic delivery promise and then send more back, the win is not real.
- Minimum detectable effect. The smallest change in the primary metric that would be worth acting on. It sets the sample size, and therefore the duration of the test.
Writing these down in advance protects the test from the most human of problems: looking at many numbers after the fact and picking the one that happens to look good. With five candidate "primary" metrics, the chance that at least one of them shows a significant result purely by chance is much higher than the 5% you think you are accepting. Lesson 6 of this course shows exactly how much higher.
Worked example: baselines and targets for Harbor & Pine
The baselines come straight from the last 28 days. The lab sheet keeps the inputs in B4:B9 (visitors, orders, revenue, returned orders, relative MDE and guardrail tolerance) and you fill the metric table below them.
| Item | Excel formula | Result | Meaning |
|---|---|---|---|
| Conversion rate (B12) | =B5/B4 | 3.00% | 12,384 orders / 412,800 visitors |
| Revenue per visitor (B13) | =B6/B4 | 2.58 | Revenue spread over all visitors, buyers or not |
| Return rate (B14) | =B7/B5 | 13.0% | 1,610 returned / 12,384 orders |
| Absolute MDE (B17) | =B12*B8 | 0.24 pp | 8% of 3.00% |
| Target conversion rate (B18) | =B12+B17 | 3.24% | Baseline plus absolute MDE |
| Max. return rate (B19) | =B14+B9 | 13.5% | Baseline plus 0.5 pp tolerance |
Two details matter here. First, revenue per visitor divides by all visitors, not by buyers. Revenue divided by orders is the average order value, about 85.94 in this example, a different metric that ignores everyone who did not buy. RPV combines conversion and basket size, which is why it is a good secondary metric. Second, the MDE of 8% is relative: it multiplies the baseline. The guardrail tolerance of 0.5 is in percentage points: it is added to the baseline. Mixing the two is the most common error in test plans.
Relative versus absolute: say which one you mean
A conversion rate that moves from 3.00% to 3.24% has increased by 8% relative (3.24 / 3.00 - 1) and by 0.24 percentage points absolute (3.24 - 3.00). Both are correct descriptions of the same change. The danger is mixing them in a calculation. If someone reads "MDE 8%" as an absolute change and adds it to the baseline, the target becomes 11%, a nearly fourfold increase that no product page change will ever deliver. If they read the guardrail tolerance of 0.5 pp as relative, the limit becomes 13.0% × 1.005 = 13.07%, which is so tight that random noise would break it constantly.
A simple habit avoids all of this: always write "pp" for absolute differences between two percentages, and "%" or "relative" for ratios. In Excel, keep the relative MDE and the absolute MDE in separate, clearly labelled cells, as the lab does with B8 and B17.
How to choose a good primary metric
The primary metric is the most important choice in the plan, and a good one passes three checks. It is close to the change: a delivery date on the product page can plausibly change whether people order, so conversion rate fits, while a metric like twelve-month customer lifetime value is too far away to move measurably within a few weeks. It is tied to value: clicks on a banner are easy to move but may not matter to the business. And it is measured per randomised unit: visitors are split at random, so the metric should be orders per visitor, not orders per session or per page view, which can be distorted when one visitor generates many sessions.
Sometimes these checks pull in different directions. Revenue per visitor is closer to business value than conversion rate, but it is much noisier, because a few large orders can swing it, so it needs more traffic to show the same effect. That is why many teams, like Harbor & Pine here, use conversion rate as the primary metric and keep RPV as a secondary metric that must at least point in the same direction.
Why the MDE decides everything else
The MDE is not a prediction of what the change will do. It is a business decision: the smallest effect that would be worth the cost of building, maintaining and rolling out the change. That decision has a direct statistical price. The smaller the effect you want to detect, the more visitors you need, and the relationship is roughly with the square of the effect: halve the MDE and you need about four times as many visitors.
For Harbor & Pine, with about 14,700 visitors a day (412,800 / 28), an 8% MDE needs roughly 165,000 visitors across both variants, so about 11 days of traffic, which you would round up to two full weeks so every weekday appears equally often. A 5% MDE would need about 416,000 visitors, roughly four weeks. A 4% MDE would need about six weeks. This is why the MDE has to be agreed before the test: it is the dial that trades precision against time. The next two lessons of the course calculate the sample size and the duration exactly, using NORM.S.INV in Excel.

How to do it in Excel, step by step
- Collect the baseline period. Use a recent, normal period of full weeks, for example the last 28 days, and avoid periods with big sales events. Put visitors, orders, revenue and returned orders in B4:B7.
- Enter the plan inputs: the relative MDE in B8 (type
8%, Excel stores 0.08) and the guardrail tolerance in B9 (type0.5%, stored as 0.005 and labelled "percentage points"). - Conversion rate in B12:
=B5/B4. Press Ctrl+Shift+% for percent format and use Home > Number > Increase Decimal twice to show 3.00%. - Revenue per visitor in B13:
=B6/B4, formatted as currency with Ctrl+Shift+$ or Home > Number > Currency. - Return rate in B14:
=B7/B5, per order, not per visitor. - Absolute MDE in B17:
=B12*B8. Target conversion rate in B18:=B12+B17, which is the same as=B12*(1+B8). - Guardrail limit in B19:
=B14+B9. Because the tolerance is in percentage points, it is added, not multiplied. - Label every role in column C: Primary, Secondary, Guardrail. Then save the sheet with a date, or protect it with Review > Protect Sheet, so the plan cannot be edited after the test has started.
- Optional preview of the sample size per variant:
=(NORM.S.INV(0.975)+NORM.S.INV(0.8))^2*(B12*(1-B12)+B18*(1-B18))/(B18-B12)^2. For this example it returns about 82,400.
Common mistakes and how to spot them
- RPV divided by orders.
=B6/B5gives about 85.94, the average order value. Spot it: revenue per visitor must be far smaller than the price of a typical order when only about 3% of visitors buy. - Relative MDE added as points.
=B12+B8returns 11%. Spot it: a realistic target should be close to the baseline, not several times larger. - Absolute MDE used as the target.
=B12*B8is 0.24%, the size of the step, not the destination. Spot it: the target must be larger than the baseline. - Return rate per visitor.
=B7/B4gives 0.39%, which hides the real problem. Returns can only happen on orders, so divide by orders. - Too many primary metrics. If the plan lists conversion, RPV, average order value, add-to-cart and bounce rate as "primary", one of them will look significant by chance. Pick one.
- Plan written after the results. If the hypothesis or MDE changes once data arrive, the test is no longer a test. Spot it: the plan file should have a date before the test start.
- Baseline from an unusual period. A Black Friday week or a site outage gives a baseline that the test period will never match. Use several normal full weeks.
Quick reference: functions and formulas used
| Formula or shortcut | What it does | Example result |
|---|---|---|
=B5/B4 | Conversion rate (orders / visitors) | 3.00% |
=B6/B4 | Revenue per visitor | 2.58 |
=B6/B5 | Average order value (not RPV) | 85.94 |
=B7/B5 | Return rate per order | 13.0% |
=B12*B8 | Absolute MDE from a relative MDE | 0.24 pp |
=B12*(1+B8) | Target rate | 3.24% |
=B14+B9 | Guardrail limit with a pp tolerance | 13.5% |
NORM.S.INV(p) | z-value of the standard normal distribution | NORM.S.INV(0.975) = 1.96 |
| Ctrl+Shift+% | Percent format | Rate cells |
| Ctrl+Shift+$ | Currency format | RPV |
| Review > Protect Sheet | Locks the plan after the start | Test plan |
Real-world uses
- E-commerce product pages. Delivery dates, trust badges, new photos or shorter descriptions: each one gets a hypothesis, conversion rate as the primary metric and return rate or refund rate as the guardrail.
- Pricing and promotions. A discount almost always lifts conversion. Making revenue per visitor or margin per visitor the primary metric prevents a "win" that loses money.
- Email and newsletter tests. Subject lines are often judged on open rate, but click or purchase rate is the better primary metric, with unsubscribe rate as the guardrail.
- SaaS onboarding. A shorter sign-up flow may increase trial starts. Activation or paid conversion should decide, with support tickets as a guardrail.
- Prioritising the test roadmap. Comparing the MDE each idea needs with your traffic shows quickly which tests are feasible this quarter and which would take months.
What you will build in the rest of this course
This first lab is free. The remaining 19 labs are part of the full course, a one-time purchase of $9.90, and they take the Harbor & Pine plan from here to a decision you can defend.
Sample Size for a Conversion Test (80% Power). You turn the baseline and MDE into the exact number of visitors per variant with NORM.S.INV, and see how significance level and power change it.
Test Duration: From Sample Size to Full Weeks. You convert the sample size into days of traffic and round it to full weeks, so weekday effects cannot distort the result.
Analysing a Conversion Test: z-Test, p-Value & Confidence Interval. The test is over. You compare the two conversion rates with a two-proportion z-test, calculate the p-value and a confidence interval for the lift, and decide.
Revenue per Visitor: Welch t-Test on Skewed Data. Revenue is skewed, with many zeros and a few large orders. You test RPV with Welch's t-test and learn what that skew does to your conclusions.
Many Variants: The Multiple-Comparison Problem & Bonferroni. With A/B/C/D tests the chance of a false winner grows quickly. You measure how fast and correct for it.
Sample Ratio Mismatch: Chi-Square Check of the Traffic Split. If a 50/50 split delivered 51/49, something may be broken. You run a chi-square check that catches faulty test setups before you trust any result.
Peeking & Sequential Testing: Why Early Stops Lie. Checking results every day and stopping at the first significant result inflates false positives. You see why, and how to plan legitimate interim looks.
Summary
A good A/B test starts with a written plan: one hypothesis with a direction, one primary metric that decides, secondary metrics that explain, guardrails that must not get worse, and a minimum detectable effect that sets the sample size. For Harbor & Pine that means a 3.00% baseline conversion rate, a target of 3.24% (8% relative, 0.24 pp absolute), revenue per visitor of 2.58 as the secondary metric and a return-rate limit of 13.5%.
Now scroll up and write the plan yourself in the lab: baselines, absolute MDE, target rate and the guardrail limit. It takes about fifteen minutes, and the Coach checks each formula as you go.
Frequently asked questions
What is the minimum detectable effect in A/B testing?
The minimum detectable effect is the smallest change in the primary metric that the test is designed to detect reliably. Smaller MDEs need more visitors and therefore longer tests.
How do I calculate the target conversion rate from a relative MDE?
Multiply the baseline by one plus the relative MDE, for example =B12*(1+B8). A 3.00% baseline with an 8% MDE gives a target of 3.24%.
What is a guardrail metric?
A guardrail metric is a number that must not get worse during the test, such as return rate, refund rate or page load time. It stops you from shipping a change that wins on the primary metric but harms the business.
What is the difference between relative and absolute lift?
Relative lift divides the change by the baseline, while absolute lift subtracts the two rates and is measured in percentage points. From 3.00% to 3.24% is +8% relative and +0.24 pp absolute.
Why should an A/B test have only one primary metric?
Every additional metric is another chance for a random result to look significant. One primary metric, chosen before the test starts, keeps the false-positive rate at the level you planned.
Can I run an A/B test analysis in Excel?
Yes. Conversion rates, sample sizes, z-tests, t-tests and chi-square checks can all be done with built-in functions such as NORM.S.INV, NORM.S.DIST, T.TEST and CHISQ.TEST.
Keep going: A/B Testing & Experimentation
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time CHF 9.90.
- Sample Size for a Conversion Test (80% Power)
- Test Duration: From Sample Size to Full Weeks
- Analysing a Conversion Test: z-Test, p-Value & Confidence Interval
- Revenue per Visitor: Welch t-Test on Skewed Data
- Many Variants: The Multiple-Comparison Problem & Bonferroni
- Sample Ratio Mismatch: Chi-Square Check of the Traffic Split
- Peeking & Sequential Testing: Why Early Stops Lie
- Ratio Metrics: Average Order Value and the Delta Method
- Many Metrics at Once: Holm Step-Down & Benjamini–Hochberg
- Guardrails: Non-Inferiority Test for the Return Rate
- Segments: Mobile vs Desktop and the Interaction Test
- Novelty Effects: Lift by Week and the Settled Lift
- Whales in Revenue Data: Capping Orders Before You Compare
- Holdout Groups: The Real Combined Impact of Shipped Winners
- Triggered Analysis & Dilution: Only Users Who Saw the Change
- Retention Metrics: Day-7 Return and the Exposure Window
- From Lift to Business Case: Profit Range, Payback & Break-Even Lift
- The Winner's Curse: Shrinking Observed Lifts Across Many Tests
- Final Project: Experiment Readout Dashboard with Ship Decision