Several factors influence the determination of sample size, including the research question, the expected effect size, the acceptable level of statistical significance (alpha), and the desired power (1-beta). Researchers often use statistical formulas or software to calculate the required sample size. Consulting a statistician can be beneficial for accurate calculations.