The development of magnetoactive microsystems for targeted drug delivery, magnetic biodetection, and replacement therapy is an important task of present day biomedical research. In this work, we experimentally studied the mechanical force acting in cylindrical ferrogel samples due to the application of a non-uniform magnetic field. A commercial microsystem is not available for this type of experimental study. Therefore, the original experimental setup for measuring the mechanical force on ferrogel in a non-uniform magnetic field was designed, calibrated, and tested. An external magnetic field was provided by an electromagnet. The maximum intensity at the surface of the electromagnet was 39.8 kA/m and it linearly decreased within 10 mm distance from the magnet. The Ferrogel samples were based on a double networking polymeric structure which included a chemical network of polyacrylamide and a physical network of natural polysaccharide guar. Magnetite particles, 0.25 micron in diameter, were embedded in the hydrogel structure, up to 24% by weight. The forces of attraction between an electromagnet and cylindrical ferrogel samples, 9 mm in height and 13 mm in diameter, increased with field intensity and the concentration of magnetic particles, and varied within 0.1–30 mN. The model provided a fair evaluation of the mechanical forces that emerged in ferrogel samples placed in a non-uniform magnetic field and proved to be useful for predicting the deformation of ferrogels in practical bioengineering applications.