Gear Rack Generator

Size a gear rack and its pinion from module or diametral pitch: rack length, travel per turn, and linear force, then download STEP, DXF, or SVG.

Design a laser-cut gear rack

Set the pitch, rack length, and pinion, then place the mounting holes and choose a bore and plate.

Units
Presets
mm
Pitch line to back edge
mm
Tooth thinning
mm
Optional
N·m

A row of holes evenly spaced along the back of the rack.

mm
mm

Pinion bore, holes, and plate

mm
Min. feature 0.050 in · 1.27 mm

Rack dimensions

Linear pitch
6.283 mm
Rack length Ends stop mid-gap so racks butt together on pitch
125.664 mm
Overall rack height Back edge to tooth tips
17 mm
Travel per pinion turn
125.664 mm
Pinion pitch diameter
40 mm
Pinion outside diameter
44 mm
Pinion center to rack pitch line
20 mm
Pinion center to rack back
35 mm
Contact ratio
1.769

Mesh preview

The rack has straight flanks at the pressure angle and rounded roots. The pinion's involute teeth are generated by rolling that same rack profile through each tooth space. The dashed circle is the pinion's pitch circle, which rolls along the rack's pitch line.

True generated tooth form

Download the manufacturing files

100% in-browser

STEP solids are built and checked in your browser. DXF and SVG drawings use lines and true arcs at full scale. Nothing is uploaded until you order.

  • 125.7 mm × 17.0 mm

  • ⌀ 43.6 mm

Laser cut it at Fabworks

We generate the STEP files, add them to a new quote, and open it in a new tab where you can review material, finish, and quantity.

How it works

Rack teeth are spaced p = π·m apart, so a rack of n teeth is n·π·m long. A pinion with z teeth moves it π·m·z per turn, which is 125.66 mm for a 20-tooth module 2 pinion. The rack and pinion must share module (or DP) and pressure angle, and the pinion center sits d/2 above the rack pitch line.

How to use the calculator

  1. 1Match the rack to the pinion: same module (or DP) and pressure angle. At 20° use 18 or more pinion teeth, or the tool shows undercut.
  2. 2Pick the pinion tooth count for the travel you want. One turn moves the rack π·m·z.
  3. 3Set the rack length from your stroke, with a few extra teeth so the pinion stays fully engaged at each end.
  4. 4Drill the pinion shaft at the “center to rack back” distance the tool gives, measured from the rack’s back edge.
  5. 5Enter pinion torque to see linear force, add mounting holes, then download the rack and pinion or order them.

Gear rack formulas

Linear pitch
p = π·m = π ÷ DP
Spacing between rack teeth along the pitch line.
Rack length
L = n·π·m
n is the number of rack teeth.
Travel per pinion revolution
s = π·m·z = π·d
z is the pinion tooth count and d its pitch diameter.
Pinion center to rack pitch line
h = d/2 = m·z/2
Add x·m if the pinion has profile shift.
Pinion center to rack back
H = d/2 + distance from pitch line to rack back
Use this to locate the pinion shaft from the rack’s mounting surface.
Linear force from torque
F = 2T ÷ d
T is pinion torque and d its pitch diameter. 5 N·m on a 40 mm pinion gives 250 N.
Linear speed
v = π·d·n
n is pinion speed in revolutions per unit time.

How to draw a gear rack profile

  1. 1Draw the pitch line and mark tooth centers every p = π·m.
  2. 2Make each tooth π·m/2 thick on the pitch line, less half the backlash on each flank.
  3. 3Draw both flanks as straight lines at the pressure angle α from the tooth centerline. A rack’s involute is a straight line.
  4. 4Draw the tip line m above the pitch line and the root line 1.25m below it, and round the root corners with a fillet of about 0.38m.
  5. 5Repeat for n teeth, then add the back height and mounting holes.
  6. 6Place the pinion center d/2 from the pitch line (plus x·m for a shifted pinion).

Module 2 rack, 48 teeth, with a 20-tooth pinion

Inputs
m = 2 mm, 20° pressure angle, 48 rack teeth, 20-tooth pinion, 5 N·m on the pinion.
Result
Linear pitch 6.283 mm, rack length 301.59 mm, travel 125.66 mm per pinion turn (2.4 turns end to end). Pinion pitch diameter 40 mm, center 20 mm above the pitch line, linear force 250 N.

p = π × 2 = 6.283 mm and length = 48 × 6.283. Travel = π × 2 × 20. The pinion center is 40 ÷ 2 = 20 mm from the pitch line, and F = 2 × 5 N·m ÷ 0.040 m = 250 N.

What to know before using the result

How far does a rack move per pinion revolution?
One pitch-circle circumference of the pinion: π·m·z. A module 2, 20-tooth pinion moves the rack 125.66 mm per turn, and a 20 DP, 20-tooth pinion moves it 3.142 in.
How long a rack do I need for a given stroke?
Divide the stroke by π·m for the tooth count, then add a few teeth so the pinion is fully engaged at each end. At module 2, 600 mm of stroke is 96 teeth (603 mm); with 3 extra teeth the rack is 99 teeth, 622 mm.
Where does the pinion shaft go?
d/2 = m·z/2 above the rack pitch line, which is 20 mm for module 2 and 20 teeth. The tool also gives the distance to the rack back, which is what you measure from. Go slightly loose rather than tight: a pinion pushed in below nominal binds, while extra distance only adds backlash.
How much force does a rack and pinion produce?
F = 2T ÷ d before friction and mesh losses: 5 N·m on a 40 mm pitch diameter pinion gives about 250 N. Only one or two teeth carry that load at a time, so check tooth strength for anything heavy.
How do I join two racks end to end?
Each rack here stops mid-gap, so two racks butt together with the tooth spacing across the joint still exactly π·m. Dowel both pieces to the frame, and clamp a short piece of rack across the joint while you fix them so the pitch stays continuous.

Rack travel per pinion revolution (mm)

Travel = π·m·z. Linear pitch p = π·m is the rack tooth spacing.

ModuleLinear pitch12-tooth pinion15-tooth20-tooth30-tooth
0.51.57118.8523.5631.4247.12
13.14237.7047.1262.8394.25
1.253.92747.1258.9078.54117.81
1.54.71256.5570.6994.25141.37
26.28375.4094.25125.66188.50
2.57.85494.25117.81157.08235.62
39.425113.10141.37188.50282.74
412.566150.80188.50251.33376.99
515.708188.50235.62314.16471.24
618.850226.19282.74376.99565.49

Rack travel per pinion revolution, diametral pitch (in)

Travel = π·z ÷ DP. Linear pitch is π ÷ DP.

Diametral pitchLinear pitch12-tooth pinion15-tooth20-tooth30-tooth
320.09821.1781.4731.9632.945
240.13091.5711.9632.6183.927
200.15711.8852.3563.1424.712
160.19632.3562.9453.9275.890
120.26183.1423.9275.2367.854

Formula

p = π·m · L = n·π·m · travel per turn = π·m·z

Tooth spacing along the rack is p = π·m, so n teeth make a rack n·π·m long. One pinion turn moves the rack π·m·z, and pinion torque T pushes it with F = 2T ÷ d.

Assumptions and limits

  • Rack teeth have straight flanks at the pressure angle, with addendum 1.0m and dedendum 1.25m.
  • The pinion center sits d/2 from the rack pitch line, with no profile shift.
  • Linear force is ideal, with no friction or mesh losses.
  • Each rack ends mid-gap, so two racks butt together on pitch.

Order Sheet Metal Parts

Upload a 2D DXF or 3D STEP file for an instant laser cutting quote. Quote in seconds, order in minutes, receive parts in days.