In space-based gravitational wave detection, the gravitational force generated by the spacecraft itself at the location of the test masses, known as self-gravity, can disrupt the free-fall state of the test masses. The self-gravity effect is one of the main noise sources in gravitational wave detection. Currently, the only established method to estimate this effect before launch is the finite element calculation based on the precise spacecraft computer aided design model. In this paper, we propose a torsion pendulum experiment to measure the dominant gravitational multipole components of spacecraft to assess the self-gravity. This provides an important ground-validation approach for finite element calculations. The results of a proof-ofprinciple experiment show that the measurement resolution can reach 3.4 × 10−11 m s−2 for differential linear acceleration, 1.6 × 10−10 rad s−2 for angular acceleration, and 4.7 × 10−9 s−2 for linear gradients. These measurement resolutions are sufficient for estimating the self-gravity of Laser Interferometer Space Antenna or TianQin.