Quasi-spherical cell size measurement plays an important role in medical test. The development of the lensless imaging system based lab-on-a-chip technology makes it possible to achieve the quasi-spherical cell size measurement for point-of-care test. Microfluidics based point-of-care test provide powerful platforms for biological cell detection. If you want to achieve the quasi-spherical cell size measurement in a microfluidic chip based on a lensless imaging system, the distance from the quasi-spherical cell to the imaging plane is a key parameter. In this paper, a Z-axis displacement measurement model of quasi-spherical cells based on microfluidics in the lensless imaging system is given. First, the relevant theoretical basis is introduced. Next, the Z-axis displacement measurement model is constructed based on the Fresnel diffraction at a straight edge. Then, the influence of diffraction superposition on the Z-axis displacement measurement model is explained. At last, the effectiveness and robustness of the Z-axis displacement measurement model are verified through experiments. The maximum standard deviation of the Z-axis displacement measurement is 5.86 μm.