Two factors that made Magadha powerful were
1. It was located in the fertile Gangetic river valley. Hence, it was agriculturally rich. Magadhan rulers could, therefore, earn lots of tax revenues and raise powerful armies.
2. The network of rivers formed by the Ganga and its tributaries facilitated trade which contributed to the prosperity of Magadha.