We theoretically investigate the interplay between the confinement length L and the thermal de Broglie wavelength {\Lambda} to optimize the thermoelectric power factor of semiconducting materials. When L is much smaller than {\Lambda} for a particular semiconductor, the power factor can be significantly enhanced. Therefore, the lower dimensional semiconductors having L smaller than their {\Lambda} will generally give a better thermoelectric performance compared to their bulk performance. On the other hand, when L is larger than {\Lambda}, bulk semiconductors may give a high power factor compared to the lower dimensional ones. We derive a simple analytical formula for the power factor based on the one-band model to describe quantum effects on the power factor and we also discuss the corresponding classical limit. The present formula is useful to evaluate the power factor of low-dimensional semiconductors.