Sample Size: Definition and CRO Guide

Product

Website Personalization A/B & Multivariate Testing AI Copilot AI Wingman AI Conversion Optimizer No-Code Visual Editor Product Recommendations Feature Flags View all features →

Use Cases

Price A/B Testing Theme A/B Testing Template A/B Testing Discount A/B Testing Shipping A/B Testing Content A/B Testing Checkout A/B Testing Geo-Based Personalization Buyer-Intent Nudges Split-URL / Redirection

Solutions & Guides

Conversion Rate Optimization A/B Testing Software Cart Abandonment Recovery Landing Page Optimization Shopify A/B Testing Shopify Personalization

Explore

Widgets Integrations Customers Pricing

Resources

Blog Playbooks Videos Webinars Interviews E-Books Conversion Glossary

Platforms

Shopify Shopline Shoplazza Chrome Extension All integrations

Start free trial Book a demo

Definition

What Is Sample Size? Definition & Guide

Learn how calculating required sample size before starting A/B tests ensures statistical validity and prevents stopping experiments prematurely online.

Sample size is the minimum number of visitors (sessions or unique users) that each variant in your A/B test needs to receive before you can draw statistically reliable conclusions. Running a test with too few visitors produces results that are largely noise — you might see a 20% lift on 300 sessions that disappears entirely when 3,000 sessions are observed. Getting sample size right is a prerequisite for trustworthy experimentation.

Formula / How to Calculate Sample Size

The required sample size per variant depends on three inputs:

n = (z² × p(1 − p)) / e²

Where:

Example: If your current conversion rate is 3% and you want to detect a 15% relative improvement (from 3% to 3.45%), with 95% confidence, you need approximately 15,000 sessions per variant. Most A/B testing tools include a sample size calculator — input your baseline rate and MDE and it does the math.

Why Sample Size Matters for Ecommerce

An underpowered test is worse than no test at all because it gives you false confidence in noisy data. D2C brands with lower-traffic stores — say, 20,000 monthly sessions — face a real constraint: to reach the sample sizes needed for reliable A/B test results, tests may need to run for 3–6 weeks. That's often longer than the festive season itself. Understanding sample size requirements helps you prioritize which tests to run (high-traffic pages first), set realistic test durations, and avoid the "peeking problem" of calling tests early. It also helps you size up realistically: if you need 50,000 sessions per variant to detect a 10% lift and you only get 5,000 sessions a week, that test will take months.

Real-World Example

A D2C kitchenware brand on Shopify wanted to test a new checkout page design. Their checkout page received about 2,000 sessions per week with a 58% completion rate. Using a sample size calculator, they found they'd need 12,000 sessions per variant to detect a 5% relative improvement at 95% confidence — a 6-week test at their current traffic. Instead of testing on checkout, they moved the test to their product listing page (12,000 sessions/week) and ran the same test in 2 weeks. The learning: design your test program around your traffic reality, not your ideal.

How to Improve / Optimize Sample Size

Sample Size in A/B Testing

Sample size planning is the first step of any A/B test — not an afterthought. Before you launch a test, calculate the required sample size, estimate how long it will take at current traffic levels, and decide whether the test is feasible. A test that will take 6 months to reach significance on a page you redesign every quarter is a test you shouldn't run.

Related Terms


Run smarter A/B tests with CustomFit.ai — 14-day free trial, no credit card required.

Put this into practice

Run A/B tests and personalize your store without code. 14-day free trial, no credit card.

Start free trial →

Articles about What Is Sample Size? Definition & Guide

In-depth guides and case studies where this concept is put to work.

← Back to Conversion Glossary

Built for every D2C category

🧴

Skincare

💄

Beauty

🌿

Wellness

☕

F&B

👟

Apparel

💍

Jewelry

🛋️

Home

🍼

Baby

Live · Right now

Mamaearth — free-shipping band+12.4% AOVGIVA — festive collection page+34% revenueBellavita — PDP CTA test+27.4% CVRKapiva — Quiz-driven recs+9.48% CTRThe Sleep Co — landing personalized2× capturesPlum — Returning shopper swap+18.2% CVRMamaearth — free-shipping band+12.4% AOVGIVA — festive collection page+34% revenueBellavita — PDP CTA test+27.4% CVRKapiva — Quiz-driven recs+9.48% CTRThe Sleep Co — landing personalized2× capturesPlum — Returning shopper swap+18.2% CVR