THE CALCULATORIUM
FINANCIAL, SAAS, AI & STATISTICAL CALCULATORS
[ ALL TOOLS // 205 ]

Statistical Sample Size & 95% Confidence Interval Calculator

Calculate required A/B test sample size per variant, total two-arm experiment traffic, absolute conversion lift, and required test duration in days at 80%.

01 // INPUT PARAMETERS

PARAM // 01
MIN [0] DEFAULT [5] MAX [80]
PARAM // 02
MIN [0] DEFAULT [10] MAX [100]
PARAM // 03
MIN [0] DEFAULT [4500] MAX [1000000]
PARAM // 04
MIN [0] DEFAULT [1.96] MAX [3.5]
ADJUST SLIDERS OR TYPE EXACT NUMBERS LIVE CALC

02 // CALCULATED RESULTS

Required Sample per Variant OUT.01
31,235 Visitors
To detect 5.00% -> 5.50% (+10.0% rel lift)
Total Experiment Sample (2 Arms) OUT.02
62,470 Visitors
At Z_α/2 = 1.96 & 80% Power (Z_β = 0.84)
Estimated Test Duration 14 Days
Absolute Percentage Lift (|Δ|) +0.50% pts
MULTI-TAB EXCEL / SHEETS PACK A/B Test Sample Size Power, MDE & Experiment Duration Workbook (.XLSX / Sheets)

Need offline multi-tab formulas (24-month cohort tabs, tax ledger, and unlocked cells) beyond this single-scenario web CSV? Get all 15 editable Excel & Google Sheets models ($19, 30-day money-back guarantee).

Get 15-Model Excel Pack ($19) ↗
14-Day Traffic Coverage (95.0%) Remaining Sample Needed (5.0%)
[ RESULT INTERPRETATION ]

To detect a +10.0% relative lift from a 5.00% baseline (reaching 5.50%, an absolute delta of +0.50% points) with 80% statistical power, you need 31,235 visitors per variant (62,470 total)—requiring 14 days at 4,500 visitors/day.

FORMULA // N_per_arm = (2 × p_bar × (1 - p_bar) × (Z_α/2 + Z_β)²) / (p2 - p1)²

03 // 5-TIER SENSITIVITY TABLE

Parameter Scaling Scenarios (-50% to +100%)
Scenario Step Relative MDE Lift (%) Required Sample per Arm Test Duration (Days)
0.5x (Conservative / Low) +5.00% Lift 122,126 Visitors 55 Days
0.75x (Downside Case) +7.50% Lift 54,904 Visitors 25 Days
1.0x (Current Baseline) +10.00% Lift 31,235 Visitors 14 Days
1.5x (Expansion Case) +15.00% Lift 14,194 Visitors 7 Days
2.0x (Double Scale) +20.00% Lift 8,159 Visitors 4 Days
Disclaimer & Disclosures: Calculations are mathematical estimates for informational and educational planning only and do not constitute financial, investment, tax, accounting, or legal advice. Last Verified: November 2026. All product and company names (including Stripe, PayPal, Apple, Steam, Anthropic, OpenAI, Shopify, Amazon, iyzico, and Trendyol) are trademarks of their respective holders; The Calculatorium is an independent reference and is not affiliated with or endorsed by them. Partner links labeled 'Sponsored // Affiliate' may earn a referral commission at zero extra cost to you.
FAQ & METHODOLOGY

Sample Size Calculator

01.

How is required A/B test sample size per variant calculated?

Using the standard two-proportion power formula at 80% statistical power (Z_β = 0.8416): N = (2 × p_bar × (1 - p_bar) × (Z_α/2 + Z_β)²) / (p2 - p1)², where p1 is baseline conversion rate and p2 = p1 × (1 + Relative MDE).

02.

Why does detecting a 1% or 2% relative lift require so much traffic?

Because required sample size scales inversely with the square of the minimum detectable effect (1 / MDE²), cutting your target lift in half quadruples the required sample size per variant.

2026 Industry Benchmarks: Sample Size Calculator

REF // CALC-152
Metric / Segment (Sample Size) Top Quartile Industry Median & Baseline Caution Zone Practitioner Action (Sample Size)
Sample Size — 5% Baseline CR, 10% Relative MDE ~30,970 Visitors / Variant ~61,940 Total Visitors (2 Arms) (Baseline: 31,235 Visitors) Standard Mid-Funnel Test Requires ~4,425 visitors/day to complete in 14 days (Sample Size SAMPLE SIZE & MDE POWER)
Sample Size — 5% Baseline CR, 5% Relative MDE ~120,900 Visitors / Variant ~241,800 Total Visitors (2 Arms) (Baseline: 62,470 Visitors) High-Traffic Checkout Test Halving MDE from 10% to 5% quadruples required sample size (Sample Size SAMPLE SIZE & MDE POWER)
Sample Size — 5% Baseline CR, 1% Relative MDE ~2,999,000 Visitors / Variant ~6.0M Total Visitors (2 Arms) (Baseline: 14 Days) Hyperscale Traffic Only Do not run 1% MDE tests unless your site exceeds 200k visitors/day (Sample Size SAMPLE SIZE & MDE POWER)
Sample Size — 2% Baseline CR, 15% Relative MDE ~36,300 Visitors / Variant ~72,600 Total Visitors (2 Arms) (Baseline: +0.50% pts) Low-Baseline SaaS Signup Test higher-funnel activation steps when bottom-funnel CR is <2% (Sample Size SAMPLE SIZE & MDE POWER)
Sources: Lehr (1992) Two-Proportion Sample Size Formula, Casagrande & Pike (1978) Power Approximation & Kohavi et al. Online Controlled Experiments (2026). | Calibrated for Statistical Sample Size & 95% Confidence Interval Calculator (SAMPLE SIZE & MDE POWER).
FORMULA GUIDE, WORKED EXAMPLE & METHODOLOGY

Sample Size Calculator: A/B Test Sample Size Determination, Minimum Detectable Effect (MDE) & Statistical Power

[ + READ GUIDE ]

I. Sample Size Background & Operational Context

Statistical Sample Size & 95% Confidence Interval Calculator (REF #152 // SAMPLE SIZE & MDE POWER) is engineered for Statistics & Data Science operators evaluating sample size margin of error calculator, statistical significance calculator, z-score p-value calculator. Calculate required A/B test sample size per variant, total two-arm experiment traffic, absolute conversion lift, and required test duration in days at 80%. At the calibrated baseline of Baseline Conversion Rate (p1 %) = 5 and Minimum Detectable Relative Lift (MDE %) = 10, this instrument computes a verified Required Sample per Variant of 31,235 Visitors and Total Experiment Sample (2 Arms) of 62,470 Visitors.

Before launching a controlled experiment, experimenters must calculate the exact sample size per variant (N) required to detect a meaningful Minimum Detectable Effect (MDE) without falling prey to Type I (false positive, α) or Type II (false negative, β) errors. Specifically for Sample Size, accounting for Total Daily Experiment Traffic (Visitors/Day) (4500) and Confidence Z-Score (1.96 = 95% CI) (1.96) yields Estimated Test Duration: 14 Days and Absolute Percentage Lift (|Δ|): +0.50% pts.

II. Sample Size Formula & Mathematical Mechanics

The Sample Size Calculator engine evaluates the closed-form equation N_per_arm = (2 × p_bar × (1 - p_bar) × (Z_α/2 + Z_β)²) / (p2 - p1)². Given baseline conversion rate p1, relative MDE delta, target conversion rate p2 = p1 × (1 + delta), and pooled rate p_bar = (p1 + p2)/2, the two-proportion sample size per variant is: N = (2 × p_bar × (1 - p_bar) × (Z_α/2 + Z_β)²) / (p2 - p1)².

To detect a +10.0% relative lift from a 5.00% baseline (reaching 5.50%, an absolute delta of +0.50% points) with 80% statistical power, you need 31,235 visitors per variant (62,470 total)—requiring 14 days at 4,500 visitors/day. At standard 95% two-tailed confidence (Z_α/2 = 1.96) and 80% statistical power (Z_β = 0.8416), the multiplier (Z_α/2 + Z_β)² ≈ 7.849. Total two-arm experiment traffic is 2 × N, and dividing by daily traffic yields exact required test duration in days.

III. Sample Size Calculator Parameter & Input Boundary Specification

Code Parameter Name (Sample Size) Default Valid Range Mathematical Role
P01 // Sample Size Baseline Conversion Rate (p1 %) 5 0 to 80 (step 1) Drives Required Sample per Variant in the Sample Size Calculator model
P02 // Sample Size Minimum Detectable Relative Lift (MDE %) 10 0 to 100 (step 1) Drives Total Experiment Sample (2 Arms) in the Sample Size Calculator model
P03 // Sample Size Total Daily Experiment Traffic (Visitors/Day) 4500 0 to 1000000 (step 500) Drives Estimated Test Duration in the Sample Size Calculator model
P04 // Sample Size Confidence Z-Score (1.96 = 95% CI) 1.96 0 to 3.5 (step 0.01) Drives Absolute Percentage Lift (|Δ|) in the Sample Size Calculator model

IV. Step-by-Step Worked Numerical Derivation (Sample Size Calculator)

Here is the exact step-by-step calculation using the default baseline parameters for Statistical Sample Size & 95% Confidence Interval Calculator (Baseline Conversion Rate (p1 %) = 5, Minimum Detectable Relative Lift (MDE %) = 10, Total Daily Experiment Traffic (Visitors/Day) = 4500, Confidence Z-Score (1.96 = 95% CI) = 1.96):

STEP 01 [Sample Size] Target Variant Rate & Absolute Delta: p1 = 5.00%, MDE = +10.0% -> p2 = 5.50% (Δ = 0.00500).
STEP 02 [Sample Size] Pooled Variance Term: 2 × p_bar × (1 - p_bar) = 2 × 0.0525 × 0.9475 = 0.09949.
STEP 03 [Sample Size] Sample Size per Arm: (0.09949 × (1.96 + 0.8416)²) / (0.00500)² = 31,235 visitors/variant.
STEP 04 [Sample Size] Total Sample & Duration: 62,470 total visitors / 4,500 daily traffic = 14 days.
VERIFIED SAMPLE SIZE OUTPUT (Required Sample per Variant): 31,235 Visitors (Total Experiment Sample (2 Arms): 62,470 Visitors | Estimated Test Duration: 14 Days)

V. Sample Size Modeling Pitfalls & Edge Cases

01

Sample Size: Confusing Relative MDE with Absolute Lift

A 10% relative lift on a 5.0% baseline conversion rate is a +0.50% absolute lift (from 5.0% to 5.5%), not 15.0%. When modeling Statistical Sample Size & 95% Confidence Interval Calculator (SAMPLE SIZE & MDE POWER), always verify your baseline Baseline Conversion Rate (p1 %) (5) and Minimum Detectable Relative Lift (MDE %) (10) against live Sample Size statements.

02

Sample Size: Stopping Tests Before Reaching Pre-Calculated N

Ending an experiment early because p < 0.05 on Day 4 guarantees inflated false-positive discovery rates. In Sample Size workflows, shifts in Total Daily Experiment Traffic (Visitors/Day) (4500) directly impact Required Sample per Variant (31,235 Visitors) and Total Experiment Sample (2 Arms) (62,470 Visitors).

03

Sample Size: Adding 4+ Variants Without Bonferroni Adjustment

Running 4 variants simultaneously quadruples total traffic needs and requires family-wise alpha correction. For Statistics & Data Science teams tracking sample size margin of error calculator, statistical significance calculator, z-score p-value calculator, stress-test Confidence Z-Score (1.96 = 95% CI) (1.96) across the 0.5x–2.0x sensitivity matrix above.

FREE WIDGET

Embed This Calculator (Free HTML Widget)

[ + GET HTML CODE ]
04.

Related Calculators

[ VIEW ALL ↗ ]
163 // Statistics & Data Science
BINOMIAL PROBABILITY P(X≥k)

Binomial Probability Calculator

Calculate exact discrete binomial probability P(X = k), cumulative probability of achieving at least k conversions P(X ≥ k), expected conversions (n × p).

167 // Statistics & Data Science
SES & MOVING AVERAGE

Exponential Smoothing Calculator

Compute Simple Exponential Smoothing (SES) level and next-period forecast, trailing Simple Moving Average (SMA), and in-sample Mean Absolute Error (MAE).

170 // Statistics & Data Science
CONFUSION MATRIX & ML ROI

ML Model ROI Calculator

Compute full binary classification confusion matrix counts (TP, FP, FN, TN), model precision (PPV), net monthly dollar value, and break-even TP value.

151 // Statistics & Data Science
STATISTICAL HYPOTHESIS TEST

A/B Test Significance Calculator

Compute two-proportion Z-score, two-tailed p-value, statistical confidence level, and annualized conversion lift value for A/B Test Significance.

153 // Statistics & Data Science
STATISTICAL HYPOTHESIS TEST

Bayesian A/B Calculator

Compute two-proportion Z-score, two-tailed p-value, statistical confidence level, and annualized conversion lift value for Bayesian A/B.

154 // Statistics & Data Science
MONTE CARLO LOG-NORMAL SIM

Monte Carlo Revenue Calculator

Run a 20,000-path log-normal Monte Carlo revenue simulation to compute median ending MRR (P50), P10–P90 confidence intervals, and cumulative revenue.