The invention provides a gear-rack steering gear. The gear-rack steering gear comprises a steering input shaft, a rack, a first pull rod, a second pull rod and a rack shell, wherein one end of the steering input shaft is provided with a gear matched with the rack, a first inner ball head is arranged at the first end of the rack, a second inner ball head is arranged at the second end of the rack, the first pull rod and the first inner ball head are movably connected, the second pull rod and the second inner ball head are movably connected, the rack shell is provided with a passage penetrating through the two ends of the rack shell, the rack penetrates through the passage and extends out of the two ends of the rack shell, a first magnet is arranged on the first inner ball head, a second magnet is arranged on the end face, close to the first inner ball head, of the rack shell, opposite faces of the first magnet and the second magnet have the same polarity, a third magnet is arranged on the second ball head, a fourth magnet is arranged on the end face, close to the second inner ball head, of the rack shell, and opposite faces of the third magnet and the fourth magnet have the same polarity. The gear-rack steering gear cannot make metal crash noise during steering.