In this work, Mn–Sb alloys were melted and held in various magnetic field gradients for various times. The corresponding distributions of the alloying elements in the alloys in liquid state were revealed by a quenching method. It was found that the primary MnSb showed a relatively uniform distribution in the alloy quenched in the magnetic field gradient of B d B/d z=0 T 2/m, while it was mainly distributed in the lower and upper part of the alloys quenched in negative and positive magnetic field gradients, respectively. The experimental results show that it is possible to in situ control the distributions of alloying elements in alloys in the liquid state using high gradient magnetic fields if there is a difference in magnetic susceptibility.