# Subject Line A/B Tests

> Test two subject lines on a small part of your audience, then send the winner to everyone else automatically.

Source: https://sendbroadcast.net/docs/subject-line-ab-tests

An A/B test sends two subject lines to two small test groups. After a wait, the subject that did better goes to the rest of the audience. Broadcast picks the winner and sends it for you.

Each variant has its own subject and an optional preview text. The body of the email is the same for both.

## Set up a test

1. Create a broadcast, or open a draft (see [Broadcast Emails](https://sendbroadcast.net/docs/broadcast-emails)).
2. On the **Content** tab, under **Preview Text**, select **A/B test the subject line**.
3. In **Subject B**, type the second subject. The **Subject** of the broadcast is subject A.
4. Optional: in **Preview text B**, type the preview text for B. Empty means B has no preview text.
5. Set the **Test group size**, the **Winner** and **Send the winner after** (see below).
6. Send the broadcast, or schedule it.

![The Content tab of the composer: Subject and Preview Text, then A/B test the subject line selected, with Subject B, Preview text B, Test group size 10%, Winner Higher open rate and Send the winner after 4 hours](https://sendbroadcast.net/assets/docs/subject-line-ab-tests/composer-ab-section-5393a60c.png)

| Setting | What it does | Values | Default |
|---|---|---|---|
| **Test group size** | The part of the audience that gets each variant. At 10%, 10% get A, 10% get B and 80% get the winner | 5% to 25% | 10% |
| **Winner** | How Broadcast picks the winner: **Higher open rate** or **Higher click rate** | Open rate or click rate | Higher open rate |
| **Send the winner after** | How long the test runs before the winner goes to the rest | 1 to 48 hours | 4 hours |

Apple MPP opens and bot clicks do not count when Broadcast picks the winner (see [Bot Clicks and Apple MPP Opens](https://sendbroadcast.net/docs/bot-clicks-and-apple-mpp-opens)). On a tie, A wins.

To pick the winner by **Higher open rate**, turn on **Track opens**. To pick it by **Higher click rate**, turn on **Track clicks**. Both are on the **Settings** tab.

The A/B test is not available on a retry of a failed broadcast. A retry sends only to the people a failed send missed.

## Minimum audience

Each test group needs at least 50 people. When the test group of your audience is smaller, Broadcast refuses to send and shows the reason, for example:

*An A/B test needs at least 50 people in each test group. 10% of this audience is 30. Make the test groups larger, or send without a test.*

Make the **Test group size** larger, choose a larger audience, or turn the test off.

A scheduled broadcast is checked again at its send time, because the audience can change before then. If a test group is too small at that time, the broadcast moves to **Failed** with the same reason.

## What happens when you send

1. Broadcast makes two variants. Each variant is its own broadcast.
2. Variant A goes to the first test group, and variant B goes to the second.
3. The A/B broadcast waits. Its status is **Future scheduled** until the wait ends.
4. After the wait, Broadcast compares the open rates or the click rates of the two variants and picks the winner.
5. The A/B broadcast takes the subject and the preview text of the winner, and goes to the rest of the audience.

Each person is in one group only. Nobody gets both variants, and nobody who got a variant gets the winner again. People who joined the audience during the test get the winner.

If a variant is still sending when the wait ends, Broadcast waits for it to finish. It checks again every 15 minutes.

## The variants

The variants show in the broadcasts list, named after the A/B broadcast with **(A)** or **(B)**. The page of a variant says **Variant A of** (or **Variant B of**) with a link to the A/B broadcast.

Each variant has its own stats: recipients, opens, clicks, bounces and unsubscribes of its test group. The stats of the A/B broadcast are for the winner send to the rest of the audience.

![The page of variant B: the name with (B), Variant B of and a link to the A/B broadcast, and its own Recipients, Audience, Open Rate and Click Rate cards](https://sendbroadcast.net/assets/docs/bot-clicks-and-apple-mpp-opens/sent-page-left-out-d4796bd1.png)

## The A/B test card

The page of the A/B broadcast shows an **A/B test** card:

- The split, for example "10% get A, 10% get B, 80% get the winner", and the rule, for example "Winner: higher open rate after 4 hours".
- One row for each variant, with its **Subject**, **Open rate** and **Click rate**. The letter links to the page of the variant.
- A **B won** (or **A won**) label next to the winner.
- Before the winner is picked: "The winner is picked at" with the time, "then sent to the rest."

![The A/B test card after the test: 25% get A, 25% get B, 50% get the winner, winner by higher open rate after 1 hour; variant A at 1.3% open rate, variant B at 11.9% with the B won label](https://sendbroadcast.net/assets/docs/subject-line-ab-tests/ab-test-card-f23b23bb.png)

## Pause, resume and cancel during the test

While the test runs, the A/B broadcast shows **Pause** next to **Cancel schedule**. These actions also act on the variants that have not finished:

- **Pause** pauses the variants that are still sending, and holds the winner pick.
- **Resume** resumes the paused variants. The A/B broadcast waits again until its pick time.
- **Cancel the schedule** or **Abort send** stops the variants that have not finished. Cancel makes the A/B broadcast a draft again.

After a cancel, nobody gets the email twice. A later send of the A/B broadcast leaves out everyone a variant reached. If the A/B test is still on, Broadcast picks the winner from the results so far and sends it at once. If you turn the A/B test off, the rest get subject A.

A retry of a failed variant sends only to the people of that test group that the variant missed. A retry of a failed winner send leaves out the test groups.

After the winner is picked, these actions act on the A/B broadcast only, as for any broadcast.

## In the API

The `ab_test` object of a broadcast sets up the test and shows its result. See [Broadcasts API](https://sendbroadcast.net/docs/api-broadcasts#the-ab_test-object).

## Related

- [Broadcast Emails](https://sendbroadcast.net/docs/broadcast-emails)
- [Email Metrics](https://sendbroadcast.net/docs/email-metrics)
- [Bot Clicks and Apple MPP Opens](https://sendbroadcast.net/docs/bot-clicks-and-apple-mpp-opens)
