GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

Motion conversion

How Do KHK Gears and Racks Convert Between Rotation and Linear Motion?

A rack and pinion pair turns shaft rotation into straight travel, and back again. This guide is for design engineers and buyers who need to size the set, cut the mounting features, and hold backlash. You will finish knowing which numbers drive accuracy and where the design stops working.

Module and pressure angleBacklash controlRack mounting±0.005 mm machining
KHK gears and racks converting rotation to linear motion in a machined drive assembly
Quick answer

Key takeaways

Pitch line sets the travelEach pinion turn moves the carriage by the pitch circumference, not by the outside diameter.
Module must matchA module 2 pinion only meshes a module 2 rack. Mixed modules bind or rattle.
Backlash is a choice0.02–0.10 mm suits most positioning axes. Zero-backlash needs a split or dual pinion.
The rack is the datumMachine the mounting face flat and parallel before the rack is bolted down.
Straightness beats shapeA long travel axis fails on rack joint alignment more often than on tooth profile.
Mechanism

How KHK gears and racks turn rotation into straight travel

A rack is a gear blank rolled out flat. The teeth keep the same involute profile as the pinion, so the two mesh exactly like any spur gear pair. When the pinion turns, the contact point walks along the rack and the carriage moves in a straight line. Reverse the input and the rack drives the pinion.

The travel per pinion revolution equals the pitch circumference: π × module × tooth count. For a module 2 pinion with 20 teeth, that is about 125.66 mm per turn. Notice that the outside diameter never enters this number. Sizing off the outer diameter is the most common arithmetic error we see on drawings.

KHK publishes the pitch line, pressure angle, and tooth count for every catalog rack and pinion, so you can pick a set without recalculating the geometry. What you still have to decide is how the rack is held, how backlash is set, and how the axis is lubricated.

  • 1
    Pitch circumferenceπ × module × teeth = travel per pinion turn.
  • 2
    Pressure angle20° is the standard for KHK racks; it sets the thrust load on the pinion bearing.
  • 3
    Helical optionHelical racks run quieter and carry more load, but add axial thrust.
  • 4
    Rack jointButt two racks together and the tooth pitch must stay continuous across the seam.
Sizing

Sizing a KHK gears and racks set before you cut metal

Start with the load, not the tooth count. Add the carriage mass, the cutting or pressing force, and the friction of the guide rail. Multiply by a service factor of 1.5 to 2.0 for a reversing axis with shock. That number tells you the tangential tooth force the pinion must carry.

Convert tangential force into torque at the pinion: torque = force × pitch radius. Compare that to the motor torque after the gearbox ratio, then check the rack tooth bending stress at the same force. Skipping this step is how shops end up with a module 1.5 set on a 300 kg gantry.

Rack length follows from travel plus a safety margin. Add at least one tooth of overtravel at each end so the pinion never runs off the last tooth. If the axis needs more than roughly 2 m of travel, plan the rack as several sections with staggered joints.

  • 1
    Service factor1.5–2.0 for reversing or shock-loaded axes.
  • 2
    Pitch radiusmodule × teeth ÷ 2, in millimeters.
  • 3
    OvertravelAt least one full tooth beyond each travel limit.
Backlash

Setting backlash and preload on a rack drive

Backlash is the gap between the non-working flanks of the meshing teeth. On a positioning axis it shows up directly as lost motion when the direction reverses. On a slow indexing axis it barely matters. Decide the number from the job, not from habit.

For most machine tool and automation axes, 0.02–0.10 mm of backlash at the pitch line is workable. Below that, thermal growth and imperfect mounting start to bind the teeth. Above it, a servo axis will hunt and the surface finish will show it.

Two ways to remove backlash properly. A split pinion with a spring or shim between halves pushes the two tooth rows against opposite flanks. A dual-pinion arrangement drives the same rack with two pinions loaded against each other. Both cost money and add setup time. Neither is needed if the axis only moves in one direction.

  • 1
    Measure at the pitch lineA dial indicator on the carriage, not on the tooth tip.
  • 2
    Watch the temperatureA 30 °C rise on a 1 m steel rack closes roughly 0.36 mm of length.
  • 3
    Lubrication gapLeave room for the oil film; dry teeth wear faster than tight teeth.
Machining

Machining the mounting features that hold rack alignment

The rack only runs as straight as the surface it sits on. Machine the rack mounting face flat within 0.02 mm over its length, and keep the pinion axis parallel to that face. In practice this means cutting the face, the dowel holes, and the pinion bearing bores in one setup wherever the part size allows.

Our 5-axis centers hold ±0.005 mm on those bores, and we routinely finish locating faces to Ra 0.8–1.6 μm so the rack seats without rocking. A 4,000 mm maximum processing envelope covers long gantry beds and machine frames without re-fixturing.

Use dowel pins, not just bolts, to locate each rack section. Bolts clamp, dowels position. On a 2 m axis with three rack sections, the dowel pattern is what keeps the tooth pitch continuous across the joints. Ream the dowel holes in the same setup as the mounting face.

  • 1
    One setupFace, dowel holes, and bearing bores cut without re-clamping.
  • 2
    Dowel firstTwo dowels per rack section minimum, then tighten the bolts.
  • 3
    Check with a straight edgeFeeler gauge under a precision straight edge along the rack back.
Materials

Material and heat treatment choices for rack and pinion

Carbon steel racks such as S45C are the default for general machine axes. They machine cleanly, take a case-hardening treatment, and cost less than alloy grades. For higher tooth loads, alloy steel with carburizing gives a hard case over a tough core, which resists both wear and shock.

Stainless grades like 304 or 17-4PH suit food, medical, and wash-down equipment. They are softer than case-hardened carbon steel, so derate the tooth load or increase the module. For clean-room and medical builds, we machine 304 and 316L routinely and finish to Ra 0.8–1.6 μm.

Aluminum racks in 6061-T6 or 7075 work well in light automation and pick-and-place heads where inertia matters more than load. Anodize the teeth if the axis runs dry, but keep the coating thin. A hardcoat that builds 0.05 mm per flank changes the backlash you set at assembly.

  • 1
    S45CGeneral machine axes, case-hardened after cutting.
  • 2
    17-4PHCorrosion resistance with better strength than 304.
  • 3
    6061-T6Light, fast axes; anodize thin or leave bare and lubricate.
Workflow

Step by step: building a rack and pinion axis

  • 1
    1. Fix the travel and loadWrite down stroke in mm, carriage mass in kg, and peak force in N. Add a 1.5–2.0 service factor. This is the input to every later decision.
  • 2
    2. Pick module from tooth forceUse the rack tooth bending rating at the tangential force. Module 1.5–2 for light axes, module 3–4 once you pass a few hundred newtons.
  • 3
    3. Choose tooth count and pitch lineMatch the pinion to the motor and gearbox. Confirm travel per turn as π × module × teeth before ordering.
  • 4
    4. Set the backlash target0.02–0.10 mm for positioning. Zero-backlash only if the axis reverses under load. Write the number on the drawing.
  • 5
    5. Machine the mounting face flatHold flatness within 0.02 mm over the rack length. Cut dowel holes and pinion bearing bores in the same setup.
  • 6
    6. Pin and bolt the rack sectionsDowel each section, then torque the bolts. Verify tooth pitch across each joint with a pin gauge.
  • 7
    7. Set the mesh and checkShim or adjust the pinion height until backlash is in range, then run the full stroke and re-check at both ends and at operating temperature.
Selection

Rack drive options compared

Pick the row that matches your axis, then confirm the numbers against the load case.

OptionBest forBacklashWatch out for
Straight spur rackGeneral positioning axes0.02–0.10 mm standardThrust on the pinion bearing
Helical rackQuiet, high-load axesSame as spur with shimAxial thrust needs a thrust bearing
Split pinionReversing under loadNear zeroHigher cost and setup time
Dual pinionHigh dynamic stiffnessNear zeroTwo motors or a load split
Aluminum rackLight, fast pick-and-place0.05–0.10 mmLow tooth load, anodize carefully

Where KHK gears and racks fit, and where they do not

Use a rack and pinion when the stroke is long, the load is moderate, and you can machine a flat mounting face. If the stroke is under about 300 mm and you need near-zero backlash, a ball screw is usually the cheaper answer.

FAQs

Common questions

Can I mix a KHK pinion with a rack from another maker?

Only if module, pressure angle, and tooth profile match. KHK racks use a 20° pressure angle as standard, and many catalog racks do the same.

Check the profile shift too. A shifted pinion will mesh but the backlash and contact pattern change. When in doubt, buy the pair together.

How much backlash should a CNC axis have?

For a servo positioning axis, 0.02–0.10 mm at the pitch line covers most machines. That is enough for an oil film and thermal growth, and small enough that the servo does not hunt.

If the axis cuts in both directions and the finish matters, go to the low end or use a split pinion.

Why does my rack drive get noisy after a few months?

Usually lubrication or alignment, not the teeth. Dry teeth on a steel rack wear a step into the flank, and the noise appears at that spot on the stroke.

Check the rack back for flatness with a straight edge and feeler gauge. If you can slide a 0.05 mm gauge under a 1 m straight edge, the rack is rocking and the mesh is opening and closing.

How long can a single rack section be?

Catalog sections commonly run 0.5 m to 2 m. Longer than that, shipping and handling start to drive cost and the rack is harder to keep straight.

For long travel, use several sections with doweled, staggered joints. Stagger means the joints on adjacent rack rows are not in line, which spreads the mesh error.

Does the rack need to be hardened?

If the axis runs often under load, yes. Case-hardened or induction-hardened teeth hold backlash far longer than soft teeth, because wear on the flank is what opens the mesh.

Light, low-duty axes in aluminum or soft steel can run bare if lubrication is maintained. Re-check backlash after the first few hundred hours either way.

How do I hold backlash on a rack assembled from several pieces?

Set the mesh at the middle of the travel, then check both ends. Joint alignment and rack straightness change the mesh along the stroke more than tooth wear does.

If backlash varies by more than 0.03 mm end to end, fix the mounting face or the joint doweling before you adjust the pinion.

Send your rack and pinion drawings

Upload the drawing and load case. We return a quotation and a free DFM analysis within 12 hours, with the mounting faces and dowel pattern reviewed before you commit to production.

12-hour quote±0.005 mm tolerance100% inspection

Follow

More machining notes

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC