Calculate the standard deviation of the sample variable data; since this is for a sample, not the entire population, this is called the standard error. This is an estimate of standard deviation for the entire population of data.
Determine the level of confidence needed for a statistically valid result. While any level of confidence can be used, 95% or greater is commonly chosen. This will be represented (1 – confidence level)/2 to reflect the appropriate column of the “Z table” and the fact that values greater and lesser than the standard error obtained in Step 1 are acceptable within the level of confidence. This is represented as “Zα.” For example, a confidence level of 96% results in a Z value of 2.054.
Specify a margin of error required. This is specified in the same unit measure as the standard error. For example, the standard error calculated is 0.068, and the margin of error needs to be 0.005.
Apply the formula n = (ZαSE/MOE) squared.