Rack and Pinion Calculator
Calculate rack and pinion travel per revolution, linear speed, force from torque, and pinion center distance from module or diametral pitch.
Design a laser-cut gear rack
Set the pitch, rack length, and pinion, then place the mounting holes and choose a bore and plate.
A row of holes evenly spaced along the back of the rack.
Pinion bore, holes, and plate
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.
Download the manufacturing files
100% in-browserSTEP 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
One pinion turn moves the rack π·m·z, and the force at the teeth is F = 2T ÷ d, where d = m·z. Speed is the travel per turn times revolutions per second. A smaller pinion gives more force and less speed from the same motor, and a larger one gives the reverse.
How to use the calculator
- 1Start with the speed you need. Divide it by the motor rpm (in turns per second) to get the travel per turn, then pick the pinion whose π·m·z matches.
- 2Check the force with F = 2T ÷ d, using the torque at the pinion after any gearbox. If it falls short, use a smaller pinion or more reduction.
- 3Keep the pinion above the undercut limit for your pressure angle. The calculator warns and gives the tooth count that clears it.
- 4Enter the pinion torque to see the linear force, then set the rack teeth for your stroke and generate both parts.
Rack and pinion formulas
- Travel per revolution
- s = π·m·z = π·d
- Linear speed
- v = π·d·n
- n in revolutions per second gives v per second.
- Linear force
- F = 2T ÷ d
- T is pinion torque; d is in the same length unit.
- Torque for a required force
- T = F·d ÷ 2
- Use it to size the motor, then add gearbox ratio and losses.
- Force pushing the pinion off the rack
- Fr = F·tan α
- α is the pressure angle. It acts at right angles to the rack.
Module 1.5 pinion on a 120 rpm motor
- Inputs
- m = 1.5 mm, 18-tooth pinion, 3 N·m at the pinion, 120 rpm.
- Result
- Pitch diameter 27 mm, travel 84.82 mm per turn, speed 169.65 mm/s, force about 222 N.
d = 1.5 × 18 = 27 mm and travel = π × 27 = 84.82 mm. 120 rpm is 2 turns per second, so 169.65 mm/s. F = 2 × 3 N·m ÷ 0.027 m = 222.2 N before friction. The teeth also push the pinion away from the rack with F·tan 20° = 81 N.
What to know before using the result
- How do I choose a pinion for a given speed?
- Divide the speed by the turns per second to get the travel per turn. 200 mm/s from a 60 rpm motor needs 200 mm per turn, which a 32-tooth module 2 pinion gives (201 mm). Then check that the torque at that diameter gives enough force.
- Why is the real force lower than F = 2T ÷ d?
- The formula gives the ideal force at the pitch circle. Friction in the guides and the mesh takes some, and accelerating the load takes more. T also has to be the torque at the pinion, so multiply motor torque by any gearbox ratio first.
- Does the pinion push the rack away?
- Yes. Besides the force along the rack, the teeth push apart with F·tan α, which is 36% of F at 20° and 26% at 14.5°. A 250 N drive force pushes with 91 N, so the rack needs a guide or backing rail that takes that load.
- How much backlash should a rack and pinion have?
- Some, so the mesh does not bind and oil can reach the teeth. The generator thins each part by 0.05 mm by default, about 0.1 mm of lash in the pair. It shows up as lost motion every time the drive reverses, which matters for positioning. Gear Solutions notes that accumulated backlash hurts position accuracy and suggests an encoder.
- How do I get the force in pounds?
- Switch to inches and enter the torque in lbf·ft, and the result reads in lbf. By hand, F = 2T ÷ d with T in lbf·in and d in inches: a 1.000 in 20 DP pinion at 10 lbf·in gives 20 lbf.
Pinion size against travel, speed, and force
Pitch diameter d = m·z in mm. Force is for 1 N·m of pinion torque before friction, so multiply by your torque.
| Pinion pitch dia (mm) | Travel per turn (mm) | Speed at 100 rpm (mm/s) | Force per 1 N·m (N) |
|---|---|---|---|
| 20 | 62.83 | 104.72 | 100.0 |
| 30 | 94.25 | 157.08 | 66.7 |
| 40 | 125.66 | 209.44 | 50.0 |
| 60 | 188.50 | 314.16 | 33.3 |
| 80 | 251.33 | 418.88 | 25.0 |
| 100 | 314.16 | 523.60 | 20.0 |
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.
Keep designing
Fabworks resources
Related calculators
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.