Understand how the rack and pinion work
This mechanism is made up of a gear wheel, called the pinion, that meshes with a toothed bar, called the rack.
The pinion and rack turn circular motion into straight-line motion, or vice versa. It is a reversible mechanism, although the pinion usually acts as the driving element.
Motion relation between the pinion and the rack
For the pinion and the rack to mesh, their teeth must be the same size. This happens when the module of the pinion and that of the rack are equal.
This mechanism gives fast travel. If d is the pitch diameter of the pinion, z its number of teeth and m the module, the circular pitch is worked out like this:
p = π · dz
As d = m · z, it can also be written as:
p = π · m
The travel of the rack for each tooth of the pinion is:
az = p
And the travel for each full turn of the pinion is:
av = p · z
This fast travel means the mechanism is used mainly with hand drives or with motor drives that include a speed reducer.
Applications of the rack and pinion
The mechanism is used to achieve long movements and high speeds. Here are some examples.
Feed in machine tools
The mechanism can move the main carriage of a lathe. Here the bed carries a fixed rack that meshes with a pinion attached to the carriage. When the pinion is turned with a handwheel or an automatic drive, it travels along the rack and pulls the carriage with it.

This mechanism is also used for the quick feed of the head of pillar and bench drills, and to move other parts of various machine tools.
Opening automatic sliding doors
In sliding doors, the rack is fixed to the door and meshes with a pinion driven by a motor, usually through a speed reducer. As the pinion turns, it moves the rack and, with it, the door, which travels guided and supported to open or close.

Car steering
Many cars have rack and pinion steering. The steering wheel turns the pinion, which moves the rack. The rack in turn passes the movement to the tie rods and steers the wheels.
Other applications
The rack and pinion can also be found in many other devices, for example:
- Corkscrew.
- Rack railways, which can climb very steep slopes. A rack is fitted along the middle of the track and meshes with a pinion on the locomotive. This gives the train traction and reduces the risk of it sliding back.
- Focusing mechanisms of tripods, microscopes and telescopes.
- Stairlifts.
Practise solved exercise of the rack and pinion
Exercise 1. Rack travel
An 18-tooth pinion with a 2 mm module drives a rack. How far does the rack travel per tooth and per turn? How many turns must the pinion make for the rack to travel 500 mm?
Data: z = 18; m = 2 mm; displacement = 500 mm
Show the solution
az = p = π · m = π · 2 ≈ 6.28 mm
av = p · z = 6.28 · 18 ≈ 113.1 mm
turns = 500113.1 ≈ 4.42
Answer: It moves 6.28 mm per tooth and 113.1 mm per turn; for 500 mm the pinion makes about 4.4 turns.