Glyphosate (GLYP) is a broad-spectrum, non-selective, organic phosphine post emergence herbicide registered for use on many food and non-food field. Herein, we developed a biosensor (Mbs@dsDNA) based on carboxylated modified magnetic beads incubated with NH2-polyA and then hybridized with polyT-glyphosate aptamer and complementary DNA. Afterward, a quantitative detection method based on qPCR was established. When the glyphosate aptamer on Mbs@dsDNA specifically recognized glyphosate, a complementary DNA is released and then enters the qPCR signal amplification process. The linear range of the method was 0.1-5 μg/mL, and the detection limit was set at 0.1 μg/mL. The recoveries in tap water were ranged from 103.4 ~ 104.9%, and the relative standard deviations (RSDs) were < 1%. The aptamer proposed in this study has a good potential for recognizing glyphosate. The detection method combined with qPCR might have a good application prospect in detecting and supervising other pesticide residues.