This chapter discusses the commonly used numerical methods in modeling mantle convection. While the general principles of finite-difference, finite-volume, and spectral methods are presented, the focus is on finite-element methods and their implementation. Additionally, the chapter also discusses general strategies in modeling geophysical processes including solid-phase transitions, thermal convection of multiple chemical components, and thermal convection with a power-law rheology.