In the TianQin space-based gravitational wave (GW) detection mission, the measurement of remanent magnetic moment (m⃗ ) of the kilogram-level test mass is a prerequisite before the launch. Current measurement methods have shown a measured deviation since the assumption of a uniform distribution ofm⃗ in the test mass volume, and the unconsidered interference from ambient magnetic fields. We develop a new torsion pendulum with a modulated 2D Helmholtz coils to measure the m⃗ . The 2D Helmholtz coils are set to get rid of the assumption and avoid the undesired systematic interference. The measurement precision of m⃗ by our instrument is better than 1 nA m2. The instrument is particularly useful for measuring the extremely low magnetic properties of the materials for use in the construction of TianQin space-based GW detection and other precision scientific apparatus.