How A/B testing works

A/B testing works by showing two versions of the same page, email or offer to two random groups of visitors at the same time and measuring which version gets more of the result you want. The version that wins by a clear margin becomes the new default.

It replaces opinion with evidence. Instead of a meeting that picks the safest idea, real visitors decide, one change at a time.

How A/B testing works in 4 steps

  1. Pick one goal and one change. Choose the result you count (sign-ups, orders, clicks on one button) and write a hypothesis, for example: "If we cut the order form from 6 fields to 3, more visitors will send it."
  2. Build version B. Version A is your current page, the control. Version B is the same page with only that one change, so any difference in results comes from the change.
  3. Split the traffic at random. Each visitor sees A or B by chance and keeps seeing the same version. Run both at the same time, for at least one or two full weeks, so weekdays and weekends are both in the data.
  4. Read the result and decide. When both versions have enough visitors, compare their conversion rates. Keep B only when it wins by a margin that is unlikely to be chance (the usual check is 95% confidence). Otherwise keep A and test your next idea.

An A/B test example with numbers

A local bakery wants more cake orders from its order page. Version A has an order form with 6 fields. Version B asks only for name, phone number and pickup date. Over three weeks, 2,000 visitors see each version.

VersionVisitorsOrdersConversion rate
A: form with 6 fields2,000603.0%
B: form with 3 fields2,000844.2%

Version B brings 24 more orders from the same traffic: a 40% higher conversion rate (4.2% against 3.0%). With 2,000 visitors per version, a gap this size passes the 95% confidence check, so the bakery keeps the short form. Its next test is the photo at the top of the page.

What you need before you start

Enough traffic. On a page with a handful of visitors a day, a test can take months. Start with the page that gets the most visits and a result you can count.

One change per test. If version B changes the headline, the photo and the button at once, you will not know which one made the difference.

A short log. Write down the hypothesis, the dates, the numbers and the decision. Six months later it tells you why the page looks the way it does.

When you are ready to go deeper, read What is split testing and What is an experiment next.

Frequently asked questions

How does how to do a/b testing connect to running real tests on my site?

How A/B testing works is the conceptual layer that supports every live experiment you run. Once the idea clicks, pair it with practical setup in What is split testing and measurement basics in What is an experiment. WEMASY's website builder lets you publish page variants without a separate staging stack.

Do I need a large team to apply how to do a/b testing?

A solo founder can apply how to do a/b testing on a small site with modest traffic. You need clear goals, honest tracking, and patience for sample size. Teams scale the same habits with more tests per quarter, not different fundamentals.

Where should beginners read next after how a/b testing works?

Stay inside this module first. What is split testing and What is an experiment build on what you learned here without repeating the full definition.

Can how to do a/b testing help if my conversion rate is already strong?

Strong performance still leaves room for learning. Markets shift, mobile share grows, and offers age. How A/B testing works keeps you from assuming yesterday's winner still fits today's visitors.

What is the biggest mistake people make with how to do a/b testing?

Treating a single good week as proof. Pair the concept with disciplined run lengths and analysis habits from how to read A/B test results before you ship changes site-wide.

How does WEMASY fit into learning how to do a/b testing?

WEMASY is an all-in-one system for building pages, tracking behavior, and improving findability. When you understand how to do a/b testing, you can use the website builder to launch test-ready pages and keep winners live without a fragile patchwork of plugins.

Put it to work
on your own website.

Start free with WEMASY and build your site in a few minutes.