The sample size to achieve a confidence interval of width 'ω ' for a large sample can be calculated from:
where:

z statistic for the confidence level 
ω 
confidence interval 
p 
population proportion 
The population proportion may not be known before the sample is taken, and so must be estimated.
