Sample size plays a critical role in the width of the confidence interval. Larger sample sizes generally result in narrower confidence intervals because they reduce the standard error. This is why large-scale epidemiological studies often provide more reliable estimates than smaller studies.