# What is A/B testing?

> A/B testing shows two versions of one thing to similar people at the same time and compares results. Meaning and a worked example with ad numbers.
- **Author**: Marxx
- **Published**: 2026-11-26
- **Category**: Testing
- **URL**: https://marxx.ai/library-glossary/a-b-testing

---

A/B testing shows two versions of one thing, such as two headlines, to similar people at the same time. You then compare results to see which version did better. Change only one thing, or you cannot tell what caused the gap.

## What you can test

| Thing to change | Version A | Version B |
|---|---|---|
| Headline | Free delivery | 10% off today |
| First three seconds | Product shot | Customer face |
| Button text | Shop now | Get the offer |

Each version is an [ad variant](/glossary/ad-variant). Read more about the habit in [creative testing](/glossary/creative-testing).

## The rules of a fair test

1. Change one thing.
2. Run both versions at once.
3. Give each the same budget.
4. Pick your goal before you start, such as [CTR](/glossary/ctr) or cost per sale.
5. Wait until you have enough results.

## A worked example

Say you test two headlines on two ad sets, each with INR 10,000. The numbers are made up.

| Version | Spend | Clicks | Orders | Cost per order |
|---|---|---|---|---|
| A: Free delivery | INR 10,000 | 400 | 20 | INR 500 |
| B: 10% off today | INR 10,000 | 450 | 25 | INR 400 |

B costs INR 400 per order. A costs INR 500. Step one: INR 10,000 / 25 = INR 400. Step two: INR 10,000 / 20 = INR 500. B looks better.

Five orders is a small gap. Run it longer before you trust it. Check if the gap could be luck first. The name for that check is statistical significance.

## FAQ

### How long should an A/B test run?

Long enough to collect plenty of results for both versions. Stopping on day one often gives a false winner.

### Can I test more than two versions?

Yes, but each extra version splits your budget. Start with two.

### What if neither version wins?

That is a result. Keep the cheaper one and test a bolder change next.

---
- [More Testing articles](https://marxx.ai/library-glossary/category/testing)
- [All articles](https://marxx.ai/library-glossary)