Sample Size Mean Margin
Calculator

Inputs

Required sample size
34.5744

Results

Required sample size
34.5744
Required sample size (rounded)
35

Statistical results

Required sample size34.5744
Required sample size (rounded)35

formula-map diagram

Required sample size
34.5744
Required sample size (rounded)
35

Statistical relationship

Formula

n = (z × σ / E)²

= 34.5744

Note

This is a simplified model: it applies the displayed standard formula to the summary values you entered and assumes their underlying conditions (independence, normality, correct sampling) hold. It does not analyse a real data set. Check the assumptions before relying on the result.

Example: with the default inputs, calculator.statistics.required_sample_mean is 34.5744.

More in Statistics and probability

See all →

Frequently asked questions

How do I calculate the sample size needed for a target margin of error?+

Enter the critical z, the standard deviation σ and the target margin E. The calculator applies n = (z × σ / E)².

Why are two sample sizes shown?+

One is the raw result of the formula, the other is that result rounded up to the next whole number. The rounded one is the number of observations you would actually collect.

Why is the result rounded up and not to the nearest integer?+

Rounding up guarantees the margin of error is at most the target. Rounding down could leave it slightly above.

Which critical z value should I use?+

You enter it yourself. The default is 1.96, and the calculator does not derive z from a confidence level.

What happens if I choose a smaller margin of error?+

n grows with the square of 1/E, so halving the target margin multiplies the required sample size by four.