Sub topic 6
Designing Subject Line Variants Worth Testing
This chapter assumes you know basic email terms (list, campaign, click rate), can read short Python snippets, and have read the earlier chapters on hypotheses, metrics, and open-rate limits. It covers how to choose subject line variants that can teach you something.
Start from a hypothesis, not a list of ideas
A subject line test is only useful if the two variants differ in one deliberate way. Before writing copy, state what you expect to change and why.
A weak test compares "Our November newsletter" with "Don't miss out: 20% off ends Friday, plus new arrivals!" These differ in length, tone, urgency, and offer. If B wins, you cannot say which change mattered.
A stronger test holds everything else fixed:
- Hypothesis: Naming the discount in the subject line will raise the click rate, because readers see the value before opening.
- Variant A: "Our November sale is here"
- Variant B: "Save 20% in our November sale"
Only the explicit offer changes. A win for B supports the hypothesis, and you can reuse the lesson in later campaigns.
Choose a dimension to vary
Each test should vary one dimension. Common dimensions are listed below.
| Dimension | Variant A | Variant B |
|---|---|---|
| Specificity | "New arrivals are in" | "12 new jackets just arrived" |
| Personalization | "Your weekly picks" | "Sam, your weekly picks" |
| Urgency | "Our sale is on" | "Our sale ends tonight" |
| Length | "Fall styles" | "Fall styles for work, weekends, and travel" |
| Question vs. statement | "Ready for winter?" | "Get ready for winter" |
Pick the dimension that your hypothesis names. If you cannot say which dimension a test varies, split it into separate tests.
Make the difference large enough to detect
Tiny wording changes, such as swapping one synonym, produce tiny effects. Small effects need very large samples, as the sample size chapter shows. For a list of 20,000 recipients, a test can only reliably detect a fairly large difference. Choose variants that differ enough to plausibly move your primary metric.
Keep the rest of the email identical
The subject line is the only thing that should differ. Keep the following the same across variants:
- Sender name and preview text
- Email body, links, and images
- Send time and day
- Audience, which random assignment handles for you
Preview text appears next to the subject line in many inboxes, so changing it is a second variable.
Match the metric to the claim
Open rate is unreliable because of Mail Privacy Protection and image blocking. A subject line can still affect clicks, since it sets expectations. Choose a click-based primary metric, and watch for subject lines that win opens by being vague or misleading but lose clicks.
Assign variants reproducibly
Use a hash so each recipient always gets the same variant, and so one experiment's split is independent of another's.
import hashlib
def assign_variant(user_id, experiment, variants=("A", "B")):
key = f"{experiment}:{user_id}".encode("utf-8")
digest = hashlib.sha256(key).hexdigest()
return variants[int(digest, 16) % len(variants)]
print(assign_variant("user-123", "subject-test-2026-11"))Including the experiment name in the hash means the same person can land in A for one test and B for another.
Exercise
A team tests "Spring sale" against "Hurry! Spring sale saves you 30% on shoes, ends tonight," and changes the preview text too. Why is this a poor test, and how would you fix it?
Show answer
The variants differ in urgency, offer, length, and preview text, so a win cannot be attributed to any one change. Pick one dimension, such as naming the discount ("Spring sale" vs. "Save 30% in our spring sale"), and keep the preview text and body identical.