Rack motion is the linear travel produced when a rotating pinion gear meshes with a straight, toothed bar called a rack. The pinion is the critical component — its rotation per tooth engagement directly sets how far the rack moves per revolution. This converts rotary input from a motor or hand crank into precise, repeatable linear travel without hydraulics or belts. You see it on CNC gantries, sliding gates, and rack railway locomotives climbing 25% gradients on the Pilatus line in Switzerland.
Rack Motion Interactive Calculator
Vary pinion module, tooth count, and revolutions to see pitch diameter, linear travel per revolution, and total rack travel.
Equation Used
The pinion pitch diameter is D = m*z. One full pinion revolution rolls out one pitch circumference, so rack travel per revolution is L = pi*D = pi*m*z. Total travel is that distance multiplied by the number of revolutions.
- Metric gear module is used.
- Rack and pinion have matching module and pressure angle.
- No backlash, slip, tooth deflection, or pitch error is included.
- Travel is calculated at the pitch circle.
The Rack Motion in Action
A rack and pinion is the simplest way to turn rotation into a straight line. The pinion — a round gear of pitch diameter D — meshes with a rack, which is effectively a gear with infinite radius unrolled flat. Every full revolution of the pinion advances the rack by π × D, or equivalently π × m × z where m is the module and z is the tooth count. That linear-per-rev figure is what you anchor every CNC gantry rack drive calculation to.
The geometry has to be right or the whole thing chatters. Centre distance between pinion axis and rack pitch line must match the pinion's pitch radius within roughly 0.05 mm for a module 2 system — too close and you bind, too far and you get backlash that ruins positioning accuracy. Tooth pressure angle is almost always 20°, and tooth flanks must run parallel to the rack length within a few hundredths of a millimetre per metre, or the pinion walks side-to-side as it rolls. If you notice the rack chattering or the gantry hunting for position under reversal, you are looking at backlash — the gap between meshing teeth on the non-driving flank — and a single-pinion drive cannot eliminate it. Dual-pinion preloaded drives or split pinions with a torsion spring are the standard backlash compensation fix.
Failure modes are predictable. Tooth-root fatigue cracking shows up first on under-sized modules running near rated load. Pitting on the flanks comes from poor lubrication or misalignment. And a worn pinion always fails before the rack because the pinion sees every tooth on every pass while any one rack tooth only sees the pinion occasionally — typical pinion replacement intervals run 5 to 10 times more often than rack replacement on a heavily-cycled machine.
Key Components
- Pinion Gear: The rotating gear that drives the rack. Pitch diameter D = m × z sets the linear travel per revolution. For a module 2, 20-tooth pinion, every revolution advances the rack 125.66 mm. Tooth count below 17 risks undercut and reduces tooth bending strength.
- Gear Rack: A straight bar with teeth machined to the same module and pressure angle as the pinion. Standard lengths run 0.5 m to 2 m per segment, butt-jointed for longer travel. Joint accuracy must hold ±0.02 mm pitch error across the seam or you'll feel the bump on every pass.
- Mounting Surface: The rack bolts to a machined edge or precision-ground reference. Flatness tolerance is typically 0.05 mm/m for industrial CNC. Any twist or bow translates directly into pinion-axis misalignment and accelerated tooth wear.
- Pinion Bearings: Support the pinion shaft and resist the separating force that pushes pinion away from rack — roughly 36% of tangential load at a 20° pressure angle. Undersized bearings let the pinion deflect under load and increase backlash dynamically.
- Backlash Compensation Mechanism: On precision systems, two pinions mesh with the rack and are preloaded against each other through a torsion spring or split servo control. This eliminates the dead band on direction reversal and is the only way to hold ±0.05 mm positioning over a 6 m gantry.
Where the Rack Motion Is Used
Rack motion shows up wherever you need long linear travel with high stiffness and reasonable accuracy. Ball screws beat racks for short, ultra-precise moves, and belts beat racks for low-cost light-duty travel — but anywhere the stroke is longer than about 2 m and the load is more than a few hundred kilograms, rack and pinion is what gets specified. The mechanism scales: same principle drives a 50 mm woodworking router lift and a 200-tonne mountain railway locomotive.
- Machine Tools: Long-travel gantry axes on CNC routers like the Multicam 3000 series, where X-axis travel exceeds 3 m and ball screws would whip
- Automotive: Steering racks on virtually every passenger car since the 1970s — the Volkswagen Golf Mk1 helped popularise the layout
- Rail Transport: Rack railway locomotives on the Pilatus Bahn and Jungfraubahn in Switzerland, climbing gradients up to 48% using Locher and Strub rack systems
- Industrial Automation: Linear travel axes on KUKA KL series robot ground rails, extending a standard 6-axis robot's working envelope to 30+ m
- Material Handling: Sliding gate drives like the FAAC 884 MC, using a steel rack and brushless pinion motor for gates up to 2,200 kg
- Theatre and Entertainment: Stage lift and orchestra pit drives at venues like the Royal Opera House, where rack motion provides the stiffness and synchronisation belts cannot
The Formula Behind the Rack Motion
The core calculation tells you how fast the rack travels for a given pinion RPM, and how far it moves per revolution. At the low end of the typical operating range — say a 12-tooth module 1 pinion at 30 RPM — you get a slow, high-resolution feed suitable for engraving. At the high end — a 30-tooth module 4 pinion at 1,500 RPM — you get gantry rapid speeds over 9 m/s, which is where rack-flex and pinion-bearing dynamic loading start to dominate. The sweet spot for most industrial CNC sits at module 2 to module 3, 20-25 teeth, 500-1,000 RPM input, giving 1-3 m/s travel with manageable inertia.
Variables
| Symbol | Meaning | Unit (SI) | Unit (Imperial) |
|---|---|---|---|
| v | Linear velocity of the rack | m/s | in/s |
| m | Gear module (tooth size) | mm | in (use diametral pitch instead) |
| z | Number of teeth on the pinion | teeth | teeth |
| N | Pinion rotational speed | RPM | RPM |
| D | Pinion pitch diameter (D = m × z) | mm | in |
Worked Example: Rack Motion in a heavy-duty plasma cutting gantry
You are sizing the X-axis rack drive on a 6 m × 2 m heavy-plate plasma cutting gantry similar to a Messer MetalMaster Xcel, where a 4 kW servo with a 10:1 planetary reducer drives a module 3, 22-tooth pinion meshing with a hardened steel rack. Servo nominal output speed at the gearbox output is 600 RPM. You need to know cutting feed at low cut speed, nominal cut speed, and rapid traverse, and where the practical ceiling sits before rack-flex and pinion bearing loads become a problem.
Given
- m = 3 mm
- z = 22 teeth
- Nnom = 600 RPM
- Nlow = 150 RPM
- Nhigh = 1500 RPM
Solution
Step 1 — compute the pinion pitch diameter and travel per revolution. This is your base unit for everything.
Step 2 — at nominal 600 RPM (typical plate-cutting feed):
That is roughly 124 m/min — a clean rapid traverse for a 6 m gantry, fast enough to reposition between cuts without operator frustration but not so fast that the gantry overshoots its accel envelope.
Step 3 — at the low end of the typical operating range, 150 RPM (slow piercing or fine contour cutting):
This is the feed range you actually cut at — about 31 m/min, which matches typical plasma cut speeds for 12 mm mild steel. Slow enough that thermal input stays controlled, fast enough that the cut edge stays clean.
Step 4 — at the high end, 1500 RPM rapid traverse:
Theoretically 311 m/min, but in practice you'll cap rapids around 3.5 m/s on a 6 m rack because beyond that the pinion separating force excites rack-mount resonance and you'll see torch-tip oscillation of 0.3 mm or more on direction reversal. That is the high-end ceiling, not the formula's ceiling.
Result
Nominal rack speed at 600 RPM input is 2. 07 m/s. That is comfortable rapid traverse — the gantry repositions briskly without slamming into the accel limits of a 4 kW servo. The full operating range runs from 0.52 m/s at slow cut feed up to a theoretical 5.18 m/s at top servo speed, but the practical sweet spot for plate cutting sits between 0.5 and 2.0 m/s where thermal control and edge quality stay clean. If you measure travel speed below predicted, check three things in order: (1) loose pinion-to-gearbox coupling — a 0.2 mm radial slop here costs you 1-2% per joint and stacks fast, (2) rack-mount bolt torque — racks bolted to a sub-frame rather than directly to a machined edge will deflect under tangential load and absorb travel, and (3) servo following error climbing under acceleration, which usually means inertia mismatch above 10:1 between load and motor reflected through the gearbox.
When to Use a Rack Motion and When Not To
Rack and pinion sits in the middle of the linear-drive options. It beats ball screws on travel length and beats belts on stiffness, but it loses to ball screws on positioning accuracy and to belts on cost. Pick by stroke length, load, and accuracy class.
| Property | Rack and Pinion | Ball Screw | Toothed Belt Drive |
|---|---|---|---|
| Practical travel length | Unlimited (rack segments butt-jointed) | Up to ~6 m before whip | Up to ~10 m, limited by belt stretch |
| Positioning accuracy (typical) | ±0.05 mm with dual preloaded pinions | ±0.005 mm ground class | ±0.1 mm, drifts with belt tension |
| Maximum linear speed | 5+ m/s | 1-2 m/s before critical speed | 10+ m/s |
| Load capacity | Up to 50,000+ N tangential | Up to ~30,000 N axial | Up to ~5,000 N tangential |
| Backlash without compensation | 0.05-0.2 mm | 0.01-0.05 mm (preloaded nut) | Dependent on belt tension |
| Cost per metre of stroke | Medium | High and rises sharply with length | Low |
| Best application fit | Long-stroke gantries, gates, rail traction | Short-stroke precision machines, jig boring | Light pick-and-place, 3D printers |
Frequently Asked Questions About Rack Motion
Preload by itself does not eliminate backlash if the preload force is below the cutting tangential load. When the cut force exceeds preload, the trailing pinion unloads and you get full backlash on reversal. Rule of thumb — set mechanical or electronic preload at 1.3-1.5× the maximum tangential cutting force, not nominal. On servo-driven master-slave dual-pinion systems, also check the slave torque offset parameter; a value below ~10% of rated torque is functionally no preload at all.
Worth checking the pinion shaft bearings too. If the pinion can deflect radially under cut load, you reintroduce backlash dynamically even with perfect preload.
Switch to helical when noise, smoothness, or load capacity demand it — usually above 1.5 m/s travel speed or when single-tooth contact noise becomes audible. Helical racks at 19°31' helix angle give continuous tooth engagement (more than one tooth in mesh at all times), which cuts tooth-meshing noise by 6-10 dB and increases load capacity roughly 30% for the same module.
The trade is axial thrust on the pinion shaft, which means you need an angular contact or tapered roller bearing instead of a deep-groove ball bearing. Below 1 m/s with light loads, straight teeth are simpler and cheaper — don't over-spec.
Start with the Lewis bending equation simplified — required module m ≈ √(Ft / (Y × σallow × b/m)), where Ft is tangential force, Y is the Lewis form factor (≈0.32 for a 20-tooth pinion at 20° pressure angle), σallow is allowable bending stress (~200 MPa for through-hardened 4140), and b/m is the face-width-to-module ratio (typically 8-12).
Quick rule for hardened steel rack and pinion: module 2 handles ~3,500 N continuous, module 3 handles ~8,000 N, module 4 handles ~15,000 N at b = 10×m. Always step up one module if the duty cycle includes shock loads.
Almost always rack pitch error accumulating across joints. Each butt-jointed rack segment has a pitch tolerance and an installation alignment tolerance, and they stack. Over 6 m of rack with three joints, a 0.03 mm/joint error becomes 0.09 mm of cumulative position error that the encoder cannot see because the encoder is on the motor, not the load.
Fix it by switching to a linear scale on the axis itself, closing the loop on actual load position rather than motor position. Or specify pitched-and-pinned rack joints (the rack supplier drills a transfer-pin hole at the seam) which holds joint pitch error below 0.01 mm.
You can — rack and pinion vertical lifts are standard on construction hoists and stage lifts — but you must use a self-locking gearbox or a fail-safe brake. A standard rack and pinion is not self-locking; back-drive efficiency is around 90%, so the load will free-fall under gravity if the motor loses power.
The standard solutions are either a worm-gear reducer (self-locking below ~5° lead angle) feeding the pinion, or a spring-applied electrically-released brake on the motor. Construction hoists like the Alimak SC series also add a centrifugal safety brake that grips the rack directly if descent speed exceeds rated by ~25%.
Yes, and it is geometry not a defect. A 20-tooth pinion travelling along a 6 m rack engages each of its own teeth roughly 95 times per single end-to-end pass, while any single rack tooth engages only once per pass. Over a year of cycling, the pinion sees about 100× the tooth-contact cycles of any one rack tooth — so it wears about 100× faster.
Plan on pinion replacement as a wear item, not a failure. Specify the pinion in a harder material than the rack (induction-hardened 60 HRC pinion against a 45 HRC rack is common), and keep a spare on the shelf. Replacing a pinion is a 30-minute job; replacing a 6 m rack is a day.
References & Further Reading
- Wikipedia contributors. Rack and pinion. Wikipedia
Building or designing a mechanism like this?
Explore the precision-engineered motion control hardware used by mechanical engineers, makers, and product designers.