Draw and calculate a rack and pinion (travel per turn)
A rack and pinion turns rotation into straight-line travel — sliding gates, machine feeds, car steering. The heart of the design is one question: how far does the rack move when the pinion turns once? That comes straight from the module and the tooth count. This guide gives the formulas for travel per turn, rack tooth pitch, tooth depth and tooth angle, with a worked example and the steps to draw the straight-sided rack teeth accurately in DXCAD2D.
Variables and the key formulas
A meshing rack and pinion must share the same module m and the same pressure angle (usually 20°). Let z = the number of pinion teeth.
| To find | Formula | Example m=2, z=20 |
|---|---|---|
| Pinion pitch Ø d | d = m · z | 40 mm |
| Pinion tip Ø dₐ | dₐ = m(z + 2) | 44 mm |
| Pinion root Ø d_f | d_f = m(z − 2.5) | 35 mm |
| Tooth pitch (rack and pinion) p | p = π · m | 6.283 mm |
| Rack travel per 1 pinion turn | L = π · d = π · m · z | 125.66 mm |
| Whole tooth depth h | h = 2.25 · m | 4.5 mm |
| Rack tooth angle (from vertical) | = pressure angle | 20° |
A worked example with real numbers
Problem: a pinion of m = 2, z = 20 teeth, 20° pressure angle, meshing with a rack. Find the sizes and the travel.
- Pitch Ø d = m·z = 2 × 20 = 40 mm
- Tip Ø dₐ = 2(20 + 2) = 44 mm · Root Ø d_f = 2(20 − 2.5) = 35 mm
- Tooth pitch p = π × 2 = 6.283 mm
- Travel per turn = π × 40 = 125.66 mm (same as z × p = 20 × 6.283 = 125.66 ✓)
- Whole depth h = 2.25 × 2 = 4.5 mm (addendum 2 mm + dedendum 2.5 mm)
Working backwards: to move the rack 50 mm the pinion must turn = 50 ÷ 125.66 × 360° = 143.2°
Rack tooth sizes (a trapezoid)
Rack teeth are straight-sided, inclined at the 20° pressure angle from vertical; the top (tip) is narrower than the bottom (root). Put the pitch line at y = 0; the tooth thickness at the pitch line = p/2 = 3.142 mm (half = 1.571 mm).
| Position | Level y | Half tooth width |
|---|---|---|
| Tip | +2.0 (addendum = m) | 1.571 − 2·tan20° = 0.843 mm |
| Pitch line | 0 | 1.571 mm |
| Root | −2.5 (dedendum = 1.25m) | 1.571 + 2.5·tan20° = 2.481 mm |
Drawing the rack teeth in DXCAD2D
Straight rack teeth draw exactly from coordinates, then repeat with array.
- Type L and press Enter, draw a horizontal pitch line (y = 0) as a reference.
- Type PL and press Enter, draw one tooth outline centred at x = 0, entering absolute coordinates (prefix with
#) round the tooth: left root#-2.481,-2.5→ left tip#-0.843,2→ right tip#0.843,2→ right root#2.481,-2.5 - Add the root floor between teeth at level −2.5 to complete one pitch (width p = 6.283 mm), then type AR to array the tooth in a straight line at 6.283 mm pitch along the rack length you need.
- Type O and offset the pitch line up 2 mm for the tip line and down 2.5 mm for the root line, to check the tips and roots stay in line.
- The pinion is an involute gear: draw the pitch Ø40, tip Ø44 and root Ø35 circles with C, then shape the teeth following draw and calculate a spur gear.
Try it right now — a free 2D CAD in your browser. Nothing to install, no sign-up.
Open DXCAD2D OnlineHow to choose the module
A bigger module means bigger, stronger teeth, but also more travel per turn (faster, though it needs more torque). For finer travel per turn, use a smaller module or fewer pinion teeth, since travel = π·m·z depends on both. A meshing rack and pinion must always share the same module and pressure angle.
Frequently asked questions
how far does the rack move per pinion revolution
As far as the pinion's pitch circumference = π·d = π·m·z. For m=2, z=20 the pitch Ø is 40 mm, so the rack moves π×40 = 125.66 mm per turn.
how to calculate rack tooth pitch
Rack tooth pitch = π·m, where m is the module. A module of 2 gives a pitch of π×2 = 6.283 mm, and a meshing rack and pinion must have the same pitch.
how deep are rack teeth
The whole depth = 2.25·m (addendum m + dedendum 1.25m). A module of 2 gives 4.5 mm: 2 mm tip above and 2.5 mm root below the pitch line.
must the rack and pinion have the same module
Yes — the same module and the same pressure angle (usually 20°) so the teeth mesh. If the modules differ the teeth will not mesh and the drive will jam.
Summary
A rack and pinion comes from the module and tooth count: travel per turn = π·m·z, tooth pitch = π·m, whole depth 2.25m, tooth angle 20°. In the example m=2, z=20 gives a 40 mm pitch Ø and 125.66 mm of travel per turn. Draw the straight rack teeth from coordinates and array them at the pitch, shape the pinion teeth as a spur gear, and always match module and pressure angle across the pair.