Calculadora de Tamanho de Amostra

n = (z·σ/E)² para IC com margem de erro E.
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

n (tamanho)
97,00

Formula

n = (z·σ/E)²

About this calculator

The sample size calculator determines the minimum number of observations needed in a survey to estimate a population parameter with a specified confidence level and margin of error. It is based on the formula n = (z·σ/E)², where n is the sample size, z is the critical value from the normal distribution corresponding to the confidence level (e.g., 1.96 for 95%), σ is the population standard deviation (or an estimate), and E is the desired margin of error. The formula assumes a large population and simple random sampling.

To use the calculator, you need to enter the confidence level (90%, 95%, or 99%), the estimated standard deviation, and the acceptable margin of error. The result is the minimum sample size rounded up. For example, if you want to estimate average height with 95% confidence, a 2 cm error, and a standard deviation of 10 cm, the required sample is (1.96·10/2)² ≈ 96 people. This tool is essential in opinion polls, market research, clinical trials, and statistical surveys.

Important considerations: the population standard deviation is rarely known; use an estimate from previous studies or conduct a pilot test. The formula assumes a normal distribution and random sampling; if the population is small, adjustments like finite population correction may be needed. Also, very small margins of error dramatically increase sample size, raising costs. The calculator does not replace full sampling design, which should consider stratification, clustering, or other methods.

Frequently asked questions

What if I don't know the population standard deviation?

Use an estimate from previous studies, conduct a pilot test with a small sample, or use the maximum possible value (e.g., for proportions, σ = 0.5).

Can I use this formula for proportions?

Yes, for proportions use σ = √(p(1-p)), where p is the estimated proportion. If unknown, use p = 0.5 to get the largest sample size.

What is the critical value z?

It is the value from the standard normal distribution corresponding to the confidence level. For 90% it is 1.645; 95% is 1.96; 99% is 2.576.

Does the formula work for small populations?

Not directly. For small populations (N < 20,000), use the finite population correction: n_adjusted = n / (1 + (n-1)/N).

What is the difference between margin of error and confidence interval?

The margin of error (E) is half the width of the confidence interval. The confidence interval is the estimate ± E. For example, 95% CI = mean ± 2 cm.

Other Testes e Inferencia calculators