Optimizely Sample Size Calculator






Optimizely Sample Size Calculator for A/B Testing


Optimizely Sample Size Calculator

An essential tool for planning your A/B testing and conversion rate optimization strategy. Determine the sample size you need to achieve statistically significant results.


The conversion rate of your control (original) version.
Please enter a valid positive percentage.


The smallest relative improvement you wish to detect (e.g., 10% uplift).
Please enter a valid positive percentage.


The probability of detecting a true effect and not a false positive. 95% is standard.


The probability of detecting an effect of a certain size if it exists. 80% is standard.


Sample Size Per Variation

7,744

Absolute MDE
0.50%

Z-Score (Significance)
1.96

Z-Score (Power)
0.84

Formula Used: The calculation is based on the standard two-proportion sample size formula, which determines the number of users needed in the control and variation groups to detect a difference of a given size, with a certain level of statistical confidence and power.

Dynamic Visualizations

Chart showing how the required sample size changes with the Minimum Detectable Effect (MDE).

Metric Sample Size Per Variation
Table showing required sample size at various Minimum Detectable Effect (MDE) levels.

What is an Optimizely Sample Size Calculator?

An Optimizely Sample Size Calculator is a specialized tool designed to help digital marketers, developers, and product managers determine the necessary number of visitors (sample size) for an A/B test. This ensures that the results of an experiment are statistically significant, meaning the observed outcome is not due to random chance. While branded as an “Optimizely” calculator, it uses universal statistical principles applicable to any A/B testing platform, including VWO, Google Optimize, or custom-built solutions. The primary goal of using an Optimizely sample size calculator is to plan experiments effectively, balancing the need for reliable data with the practical constraints of time and traffic.

This tool is essential for anyone involved in A/B testing statistics. Without proper sample size planning, you risk either running a test for too long (wasting resources) or concluding it too early with a false positive or false negative result. By inputting key variables like your current conversion rate and the desired uplift, the calculator provides a clear target for your experiment’s duration and scope.

Optimizely Sample Size Calculator Formula and Explanation

The core of an Optimizely Sample Size Calculator is a well-established statistical formula for comparing two proportions. It accounts for several critical factors to deliver a reliable sample size estimate. The formula is:

n = [(Zα/2 + Zβ)2 * (p1(1-p1) + p2(1-p2))] / (p1 – p2)2

Each component of this formula is vital for an accurate calculation. The Z-scores relate to your desired confidence levels, while the proportions (p1 and p2) represent the expected performance of your control and variation. This robust formula is the industry standard for a reliable statistical significance calculator.

Variable Explanations
Variable Meaning Unit Typical Range
n Sample size per variation Visitors/Users 100s – 1,000,000s
Zα/2 Z-score for significance level (controls false positives) Standard Deviations 1.64 (90%), 1.96 (95%), 2.58 (99%)
Zβ Z-score for statistical power (controls false negatives) Standard Deviations 0.84 (80%), 1.28 (90%)
p1 Baseline Conversion Rate (control group) Proportion (0-1) 0.01 – 0.50 (1% – 50%)
p2 Expected Conversion Rate (variation group) Proportion (0-1) p1 * (1 + MDE)

Practical Examples of Using the Optimizely Sample Size Calculator

Example 1: E-commerce Checkout Button Test

An online retailer wants to test a new color for their “Buy Now” button. Their current button has a conversion rate of 3.0% (p1). They believe a more prominent color could increase conversions and want to be able to detect at least a 10% relative improvement (MDE). They decide on a standard 95% significance and 80% power.

  • Inputs: Baseline Rate = 3.0%, MDE = 10%, Significance = 95%, Power = 80%.
  • Calculation: The Optimizely sample size calculator determines they need approximately 25,800 visitors per variation.
  • Interpretation: To confidently determine if the new button provides at least a 10% lift, the company must expose both the original and the new button to 25,800 visitors each. Planning this with an experimentation sample size calculator prevents them from ending the test prematurely.

Example 2: SaaS Free Trial Sign-up Form

A B2B SaaS company has a landing page with a 15% conversion rate for free trial sign-ups. They want to test a simplified form, removing two optional fields, and hope to see a 5% relative lift. Given their high traffic, they opt for a higher confidence level of 99% significance and 90% power.

  • Inputs: Baseline Rate = 15%, MDE = 5%, Significance = 99%, Power = 90%.
  • Calculation: The Optimizely sample size calculator outputs a required sample size of about 68,000 visitors per variation.
  • Interpretation: The high requirements for significance and power, combined with a small MDE, necessitate a large sample size. This is a common trade-off in conversion rate optimization.

How to Use This Optimizely Sample Size Calculator

  1. Enter Baseline Conversion Rate: Input the current conversion rate of your control page or element as a percentage. You can get this from your analytics platform.
  2. Set Minimum Detectable Effect (MDE): Decide on the smallest relative improvement you want your test to be able to detect. A smaller MDE requires a larger sample size.
  3. Choose Statistical Significance: Select your desired confidence level. 95% is the industry standard, meaning there’s only a 5% chance of a false positive.
  4. Select Statistical Power: Choose your desired power. 80% is standard, meaning there’s a 20% chance of missing a true effect (a false negative).
  5. Analyze the Results: The calculator instantly provides the required ‘Sample Size Per Variation’. This is the number of visitors you need for both your control and your test version(s).
  6. Plan Your Experiment: Use the output to estimate the duration of your A/B test based on your daily traffic. For a deeper dive, check out our guide on statistical power.

Key Factors That Affect Optimizely Sample Size Calculator Results

The required sample size is not an arbitrary number; it’s influenced by several statistical levers. Understanding these is crucial for effective experiment planning.

  • Baseline Conversion Rate: The starting conversion rate has a significant impact. It is harder to detect a change for metrics with very low (e.g., <1%) or very high (e.g., >50%) baseline rates, which often increases the needed sample size.
  • Minimum Detectable Effect (MDE): This is the most influential factor. Detecting a small change (e.g., 2% lift) requires a much larger sample size than detecting a large change (e.g., 25% lift). Being realistic about the MDE is key.
  • Statistical Significance: A higher significance level (e.g., 99% vs. 95%) requires more evidence to prove an effect, thus increasing the sample size. You are demanding a lower tolerance for false positives.
  • Statistical Power: Similarly, higher power (e.g., 90% vs. 80%) increases the sample size. This reduces the risk of a false negative (missing a real winner), but requires more data.
  • Number of Variations: The output of this Optimizely sample size calculator is *per variation*. If you are running an A/B/C test with three variations, your total required traffic will be three times the calculated number.
  • Variance in Data: While not a direct input, the natural variability of your user behavior affects results. More erratic conversion rates mean you need a larger sample to distinguish a true effect from random noise.

Frequently Asked Questions (FAQ)

1. Why can’t I just run my test until it’s ‘significant’?

This common practice, known as “peeking,” is statistically invalid and dramatically increases the rate of false positives. You should always determine your sample size *before* the test starts using an Optimizely sample size calculator and run the test until that number is reached.

2. What is a good Minimum Detectable Effect (MDE)?

There’s no single answer. It’s a balance between the business impact you care about and the traffic you have. A good starting point is to ask, “What is the smallest improvement that would be worth the effort of implementing this change?” If a 2% lift is not meaningful for your business, don’t set your MDE that low.

3. What’s the difference between statistical significance and power?

Significance (alpha) protects against false positives (saying there’s an effect when there isn’t one). Power (beta) protects against false negatives (missing an effect that truly exists). An Optimizely sample size calculator balances both.

4. Why does my Optimizely dashboard show a winner before the sample size is reached?

Optimizely uses a sequential testing statistical engine, which can sometimes declare a winner earlier. However, for planning purposes and for tests on other platforms, a classic fixed-horizon sample size calculation is the standard and most reliable method for pre-test planning.

5. What if my traffic is too low to reach the required sample size?

If the Optimizely sample size calculator gives you a number that would take months to reach, you have a few options: increase your MDE (look for bigger wins), decrease your significance/power (accept more risk), or test changes that are expected to have a much larger impact.

6. Does this calculator work for more than two variations?

Yes, but the sample size shown is *per variation*. For an A/B/C test (one control, two variations), you need to collect the calculated sample size for all three versions. Total traffic = (Sample Size) * 3.

7. What is the difference between relative and absolute MDE?

This calculator uses a relative MDE. If your baseline is 10% and you set a 10% relative MDE, you’re looking to detect a change to 9% or 11%. An absolute MDE of 10% would mean you’re looking to detect a change to 20%, which is a much larger effect.

8. How do I find my baseline conversion rate?

Look at historical data for the specific goal you are testing. Use your analytics platform (e.g., Google Analytics, Adobe Analytics) to find the conversion rate for the page in question over the last 30-90 days.

Related Tools and Internal Resources

© 2026 Your Company. All Rights Reserved. This calculator is for informational purposes only.

Results copied to clipboard!


Leave a Comment