Experimentation · 8 min read

How to Write a Good A/B Test Hypothesis

AB-Labz Team ·

"Let's test a new checkout button." That is an idea, not a hypothesis. Two weeks later the test finishes inconclusive and the team argues whether green or copy or placement was the variable — because none of it was written down.

A good hypothesis forces clarity before engineering starts: what you will change, for whom, which metric will move, in which direction, and why you believe it. That sentence drives your primary metric, sample size, and readout criteria. This guide gives you a reusable template, bad vs good examples, and a lightweight way to prioritize a backlog.

Why the hypothesis comes first

Experiments without hypotheses still produce numbers. They rarely produce decisions. Without a pre-specified outcome, teams retrofit stories to whatever metric moved — the definition of post-hoc reasoning.

A written hypothesis connects design to measurement. It tells you which metric is primary, what effect size to plan for in your sample size calculation, and what failure looks like. It is the contract between the person who proposed the test and the person who will read the results.

The If / For / Then / Because template

Use this four-part structure for every experiment brief:

If we [specific change]
for [target user or context]
then [primary metric] will [increase/decrease] because [mechanism].

Each clause has a job:

  • If we — one clear treatment difference, not a bundle of changes.
  • for — scope (new users, mobile checkout, enterprise trial) so analysis matches intent.
  • then — the single primary metric and direction, measurable in the test window.
  • because — the causal story; weak "because" clauses predict weak learnings when the test fails.

Bad vs good examples

Checkout button

Bad: "Testing a new checkout CTA to improve conversion."

Good: "If we replace the text CTA with a sticky 'Complete order' bar on mobile checkout for first-time buyers, then checkout completion rate will increase because reducing scroll distance removes a friction point at the payment step."

Pricing page

Bad: "Let's A/B test pricing page redesign."

Good: "If we show annual pricing first (vs monthly default) for self-serve signup traffic, then trial-to-paid conversion within 14 days will increase because anchoring on annual frames the plan as the normal choice."

Onboarding

Bad: "Shorter onboarding should be better."

Good: "If we reduce onboarding from five steps to three for B2B signups, then week-one active use will increase because time-to-first-value drops below ten minutes."

Red flag: if you cannot fill in "because" without guessing, you may be exploring — which is fine, but call it a discovery test with exploratory metrics, not a confirmatory hypothesis test.

From hypothesis to experiment design

Once the hypothesis is written, derive the design checklist mechanically:

  • Primary metric — copied from the "then" clause.
  • MDE — smallest lift worth detecting, tied to business impact.
  • Population — copied from "for."
  • Guardrails — what the change might harm (support tickets, revenue, latency).
  • Duration / sample size — computed from baseline rate, MDE, and traffic.

If the hypothesis says "increase signup conversion" but your sample size was calculated for a 0.5% MDE on a metric that moves 0.05% on a good day, the test was doomed before launch. Align MDE with the "because" mechanism's plausible effect.

Prioritizing the backlog (ICE without the theater)

Not every well-written hypothesis deserves traffic this sprint. A simple ICE score keeps prioritization honest:

  • Impact — if the hypothesis is true, how much does the primary metric move × how valuable that metric is?
  • Confidence — evidence behind the "because" (user research, prior tests, analytics).
  • Ease — engineering and operational cost to run cleanly.

Score before building, not after a pet idea is already in QA. Hypotheses with high impact and low confidence are valid — but may need a smaller discovery test or qualitative validation first.

Common mistakes

  • Bundled changes — new layout + new copy + new pricing in one variant. If you win, you will not know why.
  • Metric afterthought — "we'll see what moves" guarantees metric shopping at readout.
  • Hypothesis editing post hoc — changing the expected direction when early results look bad.
  • No falsifiability — "improve UX" cannot be wrong, so it cannot be tested.

Storing hypotheses in an experiment management tool — with status, owner, and linked metrics — keeps the backlog searchable and prevents duplicate tests. AB-Labz Workbench ties experiment records to hypothesis text, primary metrics, and analysis so the brief and the readout stay connected.

Summary

A strong A/B test hypothesis names the change, audience, expected metric movement, and reasoning before code ships. Use the If / For / Then / Because template, reject vague briefs, and derive sample size and guardrails from the same sentence. Prioritize with impact, confidence, and ease — then run tests that can actually prove you wrong. Vague ideas produce vague results; precise hypotheses produce decisions.

Keep hypotheses linked to results

AB-Labz Workbench stores experiment hypotheses alongside metrics and analysis — so every readout traces back to what you set out to test.