---
title: "A/B Testing Sample Size: The Math Non-Analysts Consistently Get Wrong"
url: "https://samarthanalytics.com/blog/ab-test-sample-size-math-explained"
published: "2025-09-19"
updated: "2026-07-08"
category: "CRO Audits"
tags: "MDE, CRO testing, A/B test sample size, statistical significance, conversion optimization, conversion rate, experimentation, hypothesis testing"
author: "Samarth Analytics"
---

# A/B Testing Sample Size: The Math Non-Analysts Consistently Get Wrong

> A deep, practical breakdown of A/B testing sample size calculation and why most CRO teams misinterpret statistical inputs. This guide explains MDE, alpha, beta, power, and stopping rules in plain language, while exposing the most common experimentation mistakes that lead to false confidence, wasted traffic, and unreliable conversion insights.

## THE FOUR INPUTS NO ONE READS

A/B testing looks simple on the surface. You pick a variation, split traffic, and wait for a winner. But under the hood, sample size calculations depend on four statistical inputs that most teams either ignore or misunderstand completely.

These four inputs define whether your test is scientifically valid or just noise dressed as insight:

Baseline [conversion rate](https://samarthanalytics.com/services/cro-audits)
Minimum Detectable Effect (MDE)
Alpha (significance level)
Beta (statistical power)

Let’s break them properly.

Baseline conversion rate is your current performance benchmark. If your checkout converts at 3%, that is your baseline. Everything in your experiment is measured relative to this number.

MDE (Minimum Detectable Effect) defines the smallest improvement you care about. This is not a statistical concept first-it is a business decision. A 0.2% lift might be statistically detectable, but meaningless commercially.

Alpha (usually 0.05) is the probability of a false positive. In simple terms, it means you accept a 5% risk of thinking a change works when it actually does not.

Beta (usually 0.2, or 80% power) is the probability of missing a real effect. Power is often ignored, but it is what determines whether your test is actually capable of detecting meaningful change.

The critical mistake most teams make is treating these inputs as defaults instead of strategic decisions. That is where sample size problems begin.

## MINIMUM DETECTABLE EFFECT - PICKING HONESTLY

Minimum Detectable Effect (MDE) is where most A/B tests quietly break before they even start.

MDE defines the smallest performance improvement worth detecting. For example, if your current conversion rate is 3%, and your MDE is 10%, you are trying to detect an increase to 3.3%.

The key question is not “what is statistically possible?” but “what is business meaningful?”

Most teams make one of three mistakes:

Setting MDE too low to justify testing
Setting MDE too high to reduce sample size requirements
Copying default calculator values without context

Each of these leads to failure.

If MDE is too small, your required sample size becomes enormous, making tests impractical. If MDE is too large, you only detect extreme changes and miss meaningful incremental improvements.

A better way to define MDE is through business impact:

What lift justifies development effort?
What lift materially changes revenue or CAC?
What is the smallest change worth acting on?

For example:

SaaS onboarding flow: even 2–3% lift may be valuable
Low-traffic eCommerce store: 5–10% may be more realistic
High-volume landing page: even 1% may be significant

MDE is not a statistical setting. It is a decision threshold disguised as a number.

## WHY “PEEKING” AT 90% CONFIDENCE INFLATES FALSE POSITIVES

One of the most damaging CRO habits is checking test results early and making decisions before reaching full sample size.

This behavior is called “peeking.”

It typically looks like this:

Day 3: Variant is winning at 92% confidence → “let’s keep watching”
Day 5: Drops to 87% → “maybe it’s stabilizing”
Day 7: Hits 95% → “ship it”

This is statistically invalid.

Every time you check results and allow yourself to make a decision, you increase the probability of a false positive. This is because you are effectively running multiple implicit tests instead of one controlled experiment.

The correct rule is:

Once sample size is defined, you do not evaluate significance until the test is complete.

Peeking creates three major problems:

Inflated Type I error (false positives)
Unstable confidence intervals
Overfitting decisions to random variance

Even if a test reaches 90% or 95% confidence early, it does not mean the result will hold at full scale.

Statistical significance is not a moment in time. It is a property of the full dataset.

## SAMPLE RATIO MISMATCH: THE SILENT KILLER

Sample Ratio Mismatch (SRM) is one of the most overlooked problems in A/B testing.

In theory, if you run a 50/50 experiment, traffic should split evenly between control and variant. In reality, it often does not.

Example:

Control: 58% traffic
Variant: 42% traffic

This imbalance is not just noise-it is a warning signal.

SRM usually indicates one of the following:

Broken randomization logic in the testing tool
Tag firing issues affecting assignment
User reallocation across sessions
Device or browser-specific allocation bias

Why this matters:

A/B testing assumes random assignment. If assignment is not random or balanced, statistical conclusions become invalid.

Even worse, SRM can exist silently without obvious symptoms in your [dashboard](https://samarthanalytics.com/services/custom-dashboards). You may still see “winning” results that are completely biased.

Every serious experiment must include SRM validation before interpretation. If SRM exists and is not explained, the test is compromised.

## STOPPING RULES THAT PRESERVE INTEGRITY

Stopping rules define when an experiment should end. Without them, A/B testing becomes subjective and unreliable.

A proper stopping framework includes:

Predefined sample size before launch
Fixed duration or traffic threshold
No mid-test decision-making based on partial results
No adjustments to MDE or significance thresholds mid-test

The most important principle is consistency. Once a test starts, the rules cannot change.

Advanced teams sometimes use sequential testing methods, but most CRO environments rely on fixed-horizon testing due to simplicity and reliability.

Stopping early because “results look strong” is one of the fastest ways to destroy experimental validity.

There is also a hidden cost: premature stopping tends to overestimate effect sizes. Early winners often shrink or disappear when tested at full scale.

## A CALCULATOR YOU CAN ACTUALLY DEFEND

Most A/B testing calculators are mathematically correct but operationally misleading. They produce numbers without explaining assumptions.

A defensible sample size system must:

Display all assumptions clearly
Lock inputs before testing begins
Prevent post-hoc edits to MDE or alpha
Align outputs with traffic reality

A strong calculator should force clarity around:

“What improvement are we actually looking for?”
“How much traffic do we realistically have?”
“How long can we run this test?”

Without these constraints, sample size becomes a theoretical exercise rather than a practical planning tool.

Let’s consider a simple example:

If your baseline conversion rate is 3%, and you want to detect a 5% relative lift (3% → 3.15%), the required sample size may be extremely large-often in the tens or hundreds of thousands of users per variant.

Most teams only realize this after launching tests, which leads to abandonment or premature conclusions.

A good calculator does not just compute. It enforces discipline.

## THE MATH BEHIND SAMPLE SIZE (SIMPLIFIED WITHOUT DILUTION)

At its core, sample size calculation is driven by variance and confidence.

The simplified intuition:

Higher variability → larger sample size
Smaller MDE → larger sample size
Higher confidence requirement → larger sample size

You are essentially solving for how much data is needed to distinguish signal from noise.

In statistical terms, sample size depends on:

Standard deviation of conversion rate
Desired confidence level (1 - alpha)
Statistical power (1 - beta)
Effect size (MDE)

This is why two identical websites can require completely different sample sizes depending on how stable their conversion behavior is.

## WHY MOST A/B TESTS FAIL BEFORE THEY START

Most A/B test failures are not caused by execution. They are caused by incorrect planning.

The most common pre-test mistakes include:

Unrealistic MDE selection
Ignoring traffic constraints
Using default calculator settings without adjustment
No defined stopping rules
No SRM monitoring plan

When these errors exist, even a perfectly executed experiment produces misleading results.

In practice, A/B testing failure is rarely statistical. It is structural.

FINAL THOUGHTS

A/B testing is often treated as a tactical CRO tool, but it is fundamentally a statistical system that requires discipline before execution begins.

Sample size, MDE, alpha, and beta are not calculator inputs-they are decision parameters that define whether an experiment is meaningful in the first place.

When these elements are misunderstood, teams end up making confident decisions based on unstable or biased data. When they are properly defined, A/B testing becomes a reliable framework for incremental and compounding conversion improvement.

The real skill in CRO is not running tests. It is designing tests that deserve to be run in the first place.

---

Published by [Samarth Analytics](https://samarthanalytics.com) (admin@samarthanalytics.com). More: [Blog](https://samarthanalytics.com/blog), [Guides](https://samarthanalytics.com/guides).
