The formula for calculating sample sizes for means or proportions involves n = minimum required sample size, Z = determined by your alpha level, σ or P u = population standard deviation (use s if unknown) or population proportion, and ME = margin of error (in +/ - actual units of your desired estimate).