n média (margem E)

(z·σ/E)².
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

n
97

About this calculator

The 'n mean (margin E)' calculator determines the sample size required to estimate a population mean with a specific margin of error and a predetermined confidence level. The formula used is (z·σ/E)², where 'z' is the z-score corresponding to the confidence level, 'σ' is the population standard deviation, and 'E' is the desired margin of error. This calculation is crucial in statistical studies to ensure results are representative of the population.

The z-score varies depending on the chosen confidence level (e.g., 1.96 for 95% confidence). The standard deviation (σ) must be known or estimated from prior data. The margin of error (E) is the maximum precision limit accepted by the researcher. This tool helps properly size the sample, avoiding excessive data or undersized samples.

This calculator is ideal for market research, scientific experiments, and social studies when the population is large and variability is known. If the standard deviation is unknown, a pilot study is recommended to estimate it. The defined margin of error directly impacts the sample size: smaller margins require more observations.

Note: The formula assumes an infinite or much larger population than the sample. For small populations, adjust the final result using a finite population correction formula. Additionally, the calculated margin of error refers only to the precision of the mean; other factors, such as sampling biases, can affect data reliability.

Frequently asked questions

What z-score corresponds to a 95% confidence level?

The z-score for 95% confidence is 1.96. Common values include 1.645 for 90% and 2.576 for 99%.

How does the margin of error affect sample size?

A smaller margin of error requires a larger sample, as precision increases. For example, halving E quadruples the sample size.

Do I need the population standard deviation (σ) to use this calculator?

Yes, σ is required. If unknown, conduct a pilot study or use historical data to estimate it.

What if the population is small?

Apply a finite population correction formula after calculating the initial sample size.

Can I use this calculator for non-random samples?

No, the formula assumes simple random sampling. Other methods require additional adjustments.

Other Amostragem calculators