Home / Articles / Draw and calculate a rack and pinion (travel per turn)
Draw + calculate · Trade

Draw and calculate a rack and pinion (travel per turn)

8 min read · updated 20 Nov 2026

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 findFormulaExample m=2, z=20
Pinion pitch Ø dd = m · z40 mm
Pinion tip Ø dₐdₐ = m(z + 2)44 mm
Pinion root Ø d_fd_f = m(z − 2.5)35 mm
Tooth pitch (rack and pinion) pp = π · m6.283 mm
Rack travel per 1 pinion turnL = π · d = π · m · z125.66 mm
Whole tooth depth hh = 2.25 · m4.5 mm
Rack tooth angle (from vertical)= pressure angle20°
Key idea: the rack rolls on the pinion's pitch line without slipping, so the rack moves one pitch circumference (π·d) per pinion turn, and exactly one pitch p = π·m per tooth.
p pinion z teeth, pitch Ø d 1 turn → rack moves π·d rack pitch line (dashed) · tooth pitch p = π·m
The pinion pitch circle (dashed) rolls on the rack pitch line (dashed horizontal). One full turn moves the rack π·d; both tooth pitches equal π·m.

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).

PositionLevel yHalf tooth width
Tip+2.0 (addendum = m)1.571 − 2·tan20° = 0.843 mm
Pitch line01.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.

  1. Type L and press Enter, draw a horizontal pitch line (y = 0) as a reference.
  2. 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
  3. 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.
  4. 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.
  5. 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.
Check the mesh: use D to measure the tooth pitch on both the rack and the pinion — both must equal π·m — and set the pinion's pitch circle just touching the rack pitch line so the teeth roll freely.

Try it right now — a free 2D CAD in your browser. Nothing to install, no sign-up.

Open DXCAD2D Online

How 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.