Horizon
Home
/
Glossary
/
Sample Size

Sample Size

Sample size is the number of observations a test needs per variant to answer a question with the desired precision; in a Painted Door Test, it is the number of visitors per offer page.

Updated
September 28, 2026
· Horizon

How many visitors a variant test needs determines budget, duration and whether any conclusion is possible at the end. The number is calculated before the start, not estimated.

Why this matters for your decision

A test that is too small cannot show a real difference and ends up "inconclusive". A test that is too large costs more time and budget than necessary. The right sample size depends on three things: how frequent the measured behaviour is, how precise the result needs to be and how many variants are compared.

For decision makers, this means: precision is a deliberate choice. A pricing decision that is hard to reverse requires a narrower margin than a first demand estimate.

How to calculate it

For a proportion, the usual approximation applies: visitors per variant n = (1.96 / margin of error)² × p × (1 - p). Here p is the expected share on the primary metric and the margin of error is the desired precision at 95% confidence. The value is always rounded up.

The budget follows from variants × visitors per variant × cost per visitor, and the duration from the budget and a sensible daily spend. If markets are compared as well, the number of cells multiplies, and with it the requirement.

Example

A test compares three price points for a cordless food processor. It is expected that around 5% of visitors will click "Add to basket".

With a margin of error of 2 percentage points, each variant needs (1.96 / 0.02)² × 0.05 × 0.95, i.e. around 457 visitors. At 1.5 percentage points it is around 812, at 1 percentage point around 1,825. For three price variants with a 1 percentage point margin, that is just under 5,500 visitors in total.

Halving the margin of error quadruples the requirement. That is exactly why precision is set per test type before the start, narrower for price tests than for a first demand estimate.

How Horizon plans the sample

Horizon plans on the primary metric of the chosen set-up, with baseline values and cost per visitor from comparable tests in the same channel and the same industry, never from a guess. Before the start, it is checked whether the target group or the search volume can deliver the required visitors within the duration. If that does not work, the options are laid out openly: fewer variants, a wider margin or more budget. The measurement period should ideally cover a full week including the weekend.

How it differs

Sample size is not the same as statistical power, i.e. the probability of detecting an existing difference of a certain size; the two are, however, closely linked. Ad impressions or reach are not a sample: what is counted are the unique visitors to the offer page.

Limitations

The formula assumes an expected share. If the actual value is clearly lower, the planned sample is not enough. A larger sample also does not fix a bias: a measurement period of one and a half working days remains skewed, no matter how many visitors it contains. And with very rare signals, such as 0 versus 7 clicks, the base is too small for a conclusion, even if the intervals do not overlap.

Evidence

Frequently asked questions

Is there a fixed minimum number of visitors?

No. The required number depends on the expected share, the required precision and the number of variants, and is calculated for each test.

Why are price tests more demanding?

Because a wrong pricing decision is more expensive and harder to reverse. That is why a narrower margin of error is set there, which requires more visitors.

Can a sample that is too small be made up for afterwards?

Only with additional data according to a rule set in advance. Extending at will until a result fits biases the result.

How many visitors does your decision question need?

Bring your decision question, and we will outline a possible test design.

Daniel Putsche

You will speak with Daniel Putsche
Founder & CEO, 30 minutes

Read more

Thank you, we have your request.

We will get back to you within one working day with suggested times.

Close

Demo · Video

A complete test, from design to data analysis

Play the demo

Chapters: test design · offer pages · live data · result

Book a call

First call

Book a call

30 minutes, your decision question, a possible test design. No preparation needed on your side.

By submitting, you agree to the processing of your details to arrange a call. Details in our privacy policy.

Request a call
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
SAMPLE REPORTExample

Sample report: insurance

Data analysis · Test design · Metrics · Methodology

Sample report

Sample report: insurance

A complete results report with example values: research question, test design, purchase intent per variant and the data analysis.

12 pages, as a PDF to share internally
Free, download right after a short form
Note