CalcWorldHub
Free online calculator · no signup

Sample size for a mean calculator

This planning calculator estimates a sample size for a mean when a planning standard deviation and target margin are specified.

Sample size for a mean calculator — Planning SD σ, Desired margin E, Confidence level (%) and calculation method
Sample size for a mean calculator: inputs and calculation method.

How to use this calculator

This planning calculator estimates a sample size for a mean when a planning standard deviation and target margin are specified.

  1. Enter Planning SD σ, Desired margin E, Confidence level (%). Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

How Sample size for a mean calculator works

This planning calculator estimates a sample size for a mean when a planning standard deviation and target margin are specified.

Inputs and units

  • Planning SD σ: Planning SD σ is the assumed population spread in the measured outcome’s units; it must be positive.
  • Desired margin E: Desired margin E is the target half-width in the same units and must be positive.
  • Confidence level (%): Confidence level is entered as a percentage from 80% up to but not including 100%.

Formula and method

n=ceil((zσ/E)²), where z is the standard-normal critical value for the two-sided confidence level.

Worked example

For σ=10, E=2, and 95% confidence, z≈1.96 and (1.96·10/2)²≈96.04; round up to 97 observations.

Interpreting the result

The reported count is the minimum under the stated normal-approximation planning assumptions. Rounding upward ensures the target margin is not exceeded by rounding down.

Assumptions and limits

This calculation treats σ as known from planning and does not add allowances for nonresponse, clustering, finite-population correction, or a t critical value. A study design may require a larger sample.

Sources and method

Frequently asked questions

Why is the result rounded upward?

A fractional observation is impossible, and rounding down could miss the requested precision.

What if the planning SD is uncertain?

Use a defensible prior estimate or a conservative larger SD, then document that choice.

How do I use the Sample size for a mean calculator?

Enter Planning SD σ, Desired margin E, Confidence level (%). Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Sample size for a mean?

For σ=10, E=2, and 95% confidence, z≈1.96 and (1.96·10/2)²≈96.04; round up to 97 observations.

What does the Sample size for a mean calculator calculate?

This planning calculator estimates a sample size for a mean when a planning standard deviation and target margin are specified.

Related calculators