Level Marketing / Articles / Running a business
Sample size for tests: how much traffic and how many leads
Sample size is how many visits, clicks or leads each variant must get before you can trust a test result. You calculate it before launch, and it depends on three things: your current conversion rate, the size of the difference you want to detect, and how much confidence you need. This article gives a quick table, one formula, and a way to estimate test duration and budget.
Why calculate it in advance
Many people start a test with "let's run it for a week and see". That leads to two kinds of mistakes. The first: the test is too short, and a random gap is declared the "winner". The second: a real difference existed, but there was too little data to see it, and a good idea was thrown away.
Knowing the sample size in advance answers three questions:
- can this test be run at all (is there enough traffic);
- how many days it will take;
- how much it will cost.
If the answer is "4 months and 60 million soums", you choose another route before you start — which is also a saving. How to read the result: statistical significance.
What drives sample size
| Factor | What it means | Effect on sample size |
|---|---|---|
| Current conversion rate | Variant A's rate today, e.g. 5% | The lower the rate, the more traffic you need |
| Minimum meaningful difference | The smallest lift you want to detect, e.g. +20% | Halve the difference and the sample roughly quadruples |
| Confidence level | Usually 95% (p < 0.05) | Requiring 99% raises the sample noticeably |
| Power | The chance of noticing a real difference if it exists, usually 80% | 90% power needs about 35% more data |
The key takeaway: detecting small differences is very expensive. Proving a +5% lift takes roughly 16 times more data than proving +20%.
A quick formula
A widely used approximation for 95% confidence and 80% power:
Per variant, n ≈ 16 × p × (1 − p) ÷ d²
Here p is the current conversion rate (as a fraction, e.g. 0.05) and d is the absolute difference you want to detect (for a lift from 5% to 6%, d = 0.01).
In Google Sheets, with the conversion rate in A2 and the relative lift in B2 (e.g. 0.2):
=ROUNDUP(16*A2*(1-A2)/(A2*B2)^2)
The result is for one variant. In a two-variant test, total traffic is twice as large.
Quick table: how much each variant needs
Figures calculated with the formula above and rounded (95% confidence, 80% power):
| Current conversion rate | Detect +10% | Detect +20% | Detect +50% |
|---|---|---|---|
| 2% (visit to lead, cold traffic) | 78,400 | 19,600 | 3,100 |
| 5% (visit to lead, warm traffic) | 30,400 | 7,600 | 1,200 |
| 10% (click to lead, lead form) | 14,400 | 3,600 | 580 |
| 20% (lead to sale) | 6,400 | 1,600 | 260 |
How to read it: on a landing page converting at 5%, detecting a +20% difference needs 7,600 visits per variant, or 15,200 for two variants. If your lead-to-sale rate is 20% and you test two sales scripts, detecting +50% needs 260 leads per variant.
Another useful check is the number of conversions. 7,600 visits × 5% = 380 leads per variant. A rough rule: differences around +20% need several hundred conversions per variant; with 30–50 conversions you can only see very large differences.
How to estimate test duration
Duration (days) = (sample size × number of variants) ÷ daily traffic
Then apply two rules:
- Round up to full weeks. Monday and Saturday audiences differ. Not 11 days, but 14.
- At least 7 days, at most about 4–6 weeks. In longer tests the season, prices and competitors change, and creatives wear out — see creative fatigue.
Illustrative example: a landing page test
Illustrative example. A furniture shop wants to test two versions of a landing page: the current one and one with a price calculator.
- Current conversion rate (visit to lead): 5%.
- Minimum meaningful difference: +20% (from 5% to 6%). A smaller lift would not pay for the redesign.
- Sample: 7,600 per variant, 15,200 visits in total.
- Daily traffic: 800 visits. Duration: 15,200 ÷ 800 = 19 days, rounded up to 3 weeks.
- Budget: at an average cost per click of 1,500 soums, 15,200 × 1,500 = 22.8 million soums. That money would be spent on ads anyway; the test only splits it between two pages.
Now a small-business example. A clinic gets 10 leads a day and wants to test two call scripts. Lead-to-appointment rate is 20%. Detecting +50% needs 260 leads per variant, 520 in total — 52 days. Detecting +20% needs 3,200 leads — almost a year. Conclusion: here only large differences are worth testing; small changes should be rolled out without a test, through quality control.
Where to get the numbers
The formula needs two numbers: the current conversion rate and daily traffic. Do not guess them — take actual data from the last 4–8 weeks:
| Number | Where to get it | What to watch for |
|---|---|---|
| Daily visits | Yandex Metrica or GA4 | Exclude bots and your own staff's visits |
| Clicks and impressions | Ad platform | Only for the campaign or audience being tested |
| Leads | CRM | Remove duplicates and spam |
| Lead-to-sale rate | CRM | With a long sales cycle, calculate with at least a one-month lag |
If the current conversion rate jumps sharply from week to week (say from 3% to 7%), find the cause first: tracking may be broken, or traffic sources may be mixed. A test built on an unstable baseline will not give a reliable answer.
What to do when traffic is not enough
- Test bigger changes. Not button colour, but the offer, price, format or an entirely different page. A large difference shows up in a small sample.
- Measure a higher funnel stage. Click-to-lead conversion produces more events than sales do. But keep sales as a guardrail metric.
- Impressions are cheap. In a CTR test with a 1% baseline CTR, detecting +20% needs about 39,600 impressions per variant — in many ad accounts that takes a day or two. But CTR is not sales; we explain why in what is CTR.
- Cut the number of variants. Each extra variant splits traffic. Two, not four.
- Accept 90% confidence, but only for decisions that are easy to reverse.
How to record the test plan
Before launch, write one line in your test log: hypothesis, primary metric, current conversion rate, minimum meaningful difference, sample per variant, duration, budget and the date the conclusion will be drawn. This record protects you from the temptation to stop early or extend the test when you dislike the result. If something breaks during the test (the site goes down, the price changes), the test is restarted, not "counted to the end".
Common mistakes
- "Adjusting" the sample after the test: you dislike the result, so you add another week. That is the road to false winners.
- Confusing relative and absolute differences: +20% on 5% is 6%, not 25%.
- Treating the per-variant number as the total and running the test half as long.
- Splitting traffic unevenly: if the platform gives one variant 80% of the budget, the test slows down and results become hard to compare. How to set up creative tests properly: A/B testing ad creatives.
- Counting conversions wrongly: duplicates and spam inflate the sample. What counts as a conversion: what is conversion rate.
Questions and answers
Online calculators give a different number — which is right?
Calculators use more exact formulas, and results may differ by a few percent. For planning that does not matter: at the same order of magnitude, 7,600 or 7,900 will not change your decision.
Can I stop a test early if the difference is huge?
If both the winner and the loser are obvious and money is burning, you can switch off the bad variant. But wait for the planned sample before declaring "winner found".
Can I run several tests in parallel?
Yes, if they run on different audiences or at different funnel stages. If two tests mix on the same page, their results affect each other.
Does sample size apply to the sales team too?
Yes. When you test a script, a price offer or call-back timing, leads become your sample. The 20% row in the table is exactly for that case.
Conclusion
Sample size tells you before launch whether a test is feasible and how much time and money it will take. Write down the current conversion rate and the minimum meaningful difference, apply the formula, and round the duration up to full weeks. Level Marketing sets a plan at the strategy stage and compares it with the actual results in a monthly report. To find out which tests fit your traffic, book a free audit.