Gravity forward modeling as a basic tool has been widely used for topography correction and 3D density inversion. The source region is usually discretized into tesseroids (i.e., spherical prisms) to consider the influence of the curvature of planets in global or large-scale problems. Traditional gravity forward modeling methods in spherical coordinates, including the Taylor expansion and Gaussian–Legendre quadrature, are all based on spatial domains, which mostly have low computational efficiency. This study proposes a high-efficiency forward modeling method of gravitational fields in the spherical harmonic domain, in which the gravity anomalies and gradient tensors can be expressed as spherical harmonic synthesis forms of spherical harmonic coefficients of 3D density distribution. A homogeneous spherical shell model is used to test its effectiveness compared with traditional spatial domain methods. It demonstrates that the computational efficiency of the proposed spherical harmonic domain method is improved by four orders of magnitude with a similar level of computational accuracy compared with the optimized 3D GLQ method. The test also shows that the computational time of the proposed method is not affected by the observation height. Finally, the proposed forward method is applied to the topography correction of the Moon. The results show that the gravity response of the topography obtained with our method is close to that of the optimized 3D GLQ method and is also consistent with previous results.