Home / Free Tools / Calculators / Sample Size CalculatorCalculators
Free Sample Size Calculator Sample Size Calculator — 100% free, unlimited, no sign-up cost.
Enter your baseline conversion rate and the smallest improvement worth detecting (in percentage points or as a relative %). The calculator uses the two-proportion formula at 95% confidence and 80% power by default (both adjustable) and returns visitors per variant, the total for all variants and, with daily traffic, the test duration. At a 5% baseline and a 1-point lift that is 8,158 per variant.
Work out how many visitors each A/B test variant needs. Enter your baseline conversion rate and the smallest lift worth detecting, choose confidence and power, and add daily traffic to see how long the test must run.
Use the Sample Size Calculator online at no cost. Common tasks this tool helps with sample size calculator for free best sample size calculator free online sample size calculator sample size calculator tool sample size calculator formula how to calculate sample size Use the free Sample Size Calculator now
The Required sample size per variant (two proportions) formula n = (z₁₋α/₂ · √(2p̄q̄) + z₁₋β · √(p₁q₁ + p₂q₂))² ÷ (p₂ − p₁)²
p₁ is your baseline rate, p₂ is the rate you want to be able to detect, p̄ is their average and q = 1 − p. z₁₋α/₂ sets confidence (1.96 for 95% two-sided) and z₁₋β sets power (0.84 for 80%). Halving the detectable effect roughly quadruples the sample.
Example You convert 5% today and want to detect a lift to 6% at 95% confidence and 80% power.
(1.96·√(2·0.055·0.945) + 0.84·√(0.05·0.95 + 0.06·0.94))² ÷ 0.01² = 8,158 visitors per variant
Worked example: 5% baseline, 1-point lift Current conversion rate 5%. You want to detect a lift to 6% (1 percentage point) at 95% confidence and 80% power.
The formula gives 8,158 visitors per variant. Two variants need about 16,316 visitors in total; at 1,000 visitors a day that is 17 days, so plan 3 full weeks. Halving the detectable lift to 0.5 points raises the sample to about 31,234 per variant. What to do next: Divide the total by your daily traffic and round up to full weeks. If the test would take too long, aim for a bolder change or test on a higher-traffic page.
Why it's free Tests that end too early produce false winners. Knowing the required sample before launch tells you whether a test is feasible with your traffic, and why detecting a small lift needs far more visitors than a large one.
What you get An approximate visitor count per variant Who uses the Sample Size Calculator CRO teams planning tests Marketers checking if traffic is enough to test Founders deciding whether to A/B test at all How it works Enter your baseline conversion rate as a percentage Enter the smallest improvement worth detecting, in points or relative % Choose confidence, power and the number of variants Add daily visitors to see how many weeks the test needs Expert tips for using the Sample Size Calculator Set the baseline rate and the smallest lift worth detecting before calculating. Plan to run the test for full weeks to cover weekday patterns. If traffic is too low, test bigger changes or use a higher-traffic page. Frequently asked questions Is the Sample Size Calculator free? Yes. The Sample Size Calculator is free with no login, credits, paid plan or card. Browser-based tools can be used without a generation allowance.
Do I need to create an account to use it? No. It runs on this page, in your browser, without signing in. Nothing you enter is sent to a server.
How is the Sample Size Calculator's result calculated? It's a direct formula, not an AI guess — the Sample Size Calculator computes your visitors / variant from the numbers you enter, instantly and the same way every time.
How do I use the Sample Size Calculator? 1) Enter your Baseline conversion rate (%) and Minimum detectable effect (pts). 2) See your visitors / variant instantly, no submit button needed. 3) Use the number in your reporting or planning. The whole process takes about a minute and runs on this page, on desktop or mobile.
What is the formula behind the Sample Size Calculator? It uses the two-proportion sample size formula: n = (z₁₋α/₂·√(2p̄q̄) + z₁₋β·√(p₁q₁ + p₂q₂))² ÷ (p₂ − p₁)², where p₁ is your baseline, p₂ the rate you want to detect and p̄ their average. Defaults are 95% confidence (two-sided) and 80% power.
How accurate is the 16 × p(1−p) ÷ d² formula? That shortcut is a rough rule of thumb for 95% confidence and 80% power. This calculator uses the full two-proportion formula, which is more accurate for very low or high baselines and lets you change confidence, power and test type.
Should the improvement be in points or relative percent? Either. Percentage points describe the absolute change (5% to 6% is 1 point). Relative percent is a share of your baseline (5% to 6% is a 20% relative lift). Pick whichever your team uses; the calculator converts.
How many visitors do I need for an A/B test? It depends on your baseline conversion rate, the smallest lift you want to detect, confidence and power. Lower baselines and smaller lifts need more visitors per variant.
What is minimum detectable effect? It is the smallest improvement over your baseline you want the test to reliably detect. Smaller effects need much larger samples, so pick the smallest change worth acting on.
What power and confidence level should I use? 95% confidence and 80% power are common defaults. Higher values reduce error risk but increase the visitors required.
Is this the same as a survey sample size calculator? No. Survey calculators use population size and margin of error. This one compares two conversion rates, so it suits A/B tests rather than polling.
More free Calculators tools Browse all free tools
Read more: landing page optimization
Compare options: 5 Best Free Sample Size Calculators Compared
Related tools Watch: how to use the Sample Size Calculator in 36 seconds