MachineCalcs

Lathe Change Gear Calculator

Screw-cutting gear trains: the exact driver/driven pair or compound train for any thread pitch on any leadscrew — metric on imperial (the 127-tooth problem), imperial on metric, or same-system — with the ppm error when no train is exact. Free, no signup.

Machining 7 inputs 7 results

Calculator

How the target thread is specified.
Target thread pitch. Used when the thread is metric.
mm
Target TPI (11.5 and similar fractional pipe pitches are fine). Used when the thread is imperial.
How the lathe leadscrew is specified.
Leadscrew pitch. Used when the leadscrew is metric.
mm
Leadscrew threads per inch. Used when the leadscrew is imperial. 8 TPI is the classic engine-lathe leadscrew.
Generic sets for the search — real lathes ship different gears; check the required ratio against yours.

Results

Default result
Edit inputs
Required ratio(i)
0.472441
Pass

60 driver → 127 driven (idler between, any size)

Spindle → leadscrew: thread advance ÷ leadscrew pitch. The universal answer for any gear set.

Also computed

Driver 1Pass60

On the spindle/stud side.

Driven 1Pass127

Driver 21

Simple train — second pair not needed.

1 means a simple train — one pair plus an idler.

Driven 21

Achieved pitch1.5mm

Pitch error0

Exact train — the thread tracks the spec perfectly.

Parts per million; 0 when the train is exact.

Method notes 4 notes
  • Ratio = thread advance per spindle rev ÷ leadscrew pitch; the train multiplies as driver₁·driver₂ / (driven₁·driven₂). Idlers fill center distance and set rotation direction without changing the ratio.
  • Cross-system jobs carry the exact factor 1 in = 25.4 mm = 127/5 — a 127-tooth gear makes them exact; without one the solver returns the closest train and its ppm error.
  • The searched set is generic (every 5 teeth, one of each). Real lathes ship different sets — hold the required ratio against your own gears, and check banjo clearance and thread HAND (idler count flips direction) on the machine.
  • Quick-change gearboxes do this internally; this screen is for change-gear lathes, gearbox gaps and special pitches.

Thread cutting ties the spindle to the leadscrew at an exact ratio: thread advance per spindle revolution ÷ leadscrew pitch, made physical as driver/driven gear pairs. Same-system jobs reduce to small fractions (16 TPI on an 8 TPI leadscrew is just 20:40); crossing systems carries the exact factor 1 in = 25.4 mm = 127/5, which is why the prime 127-tooth transposing gear exists — M1.5 on 8 TPI is 60:127 exactly. This solver does exact integer arithmetic on the reduced ratio, returns the simplest exact train from a generic gear bank, and states the ppm error when nothing is exact.

Continue workflow

All Machining

How to use this calculator

  1. Enter thread and leadscrew. Pitch in mm or TPI for each — the solver handles the 25.4 factor exactly when they differ.
  2. Read the train. Driver 1 goes on the spindle/stud side; a second pair appears only when compounding is needed. Idlers fill space without changing the ratio.
  3. Check the error output. Zero means exact. Anything else accumulates along the thread — judge it against your engagement length.
  4. Verify on the machine. Banjo clearance, gear mesh backlash and thread hand (each idler flips direction) are physical checks the arithmetic cannot make.

How it works

Per spindle revolution the work must advance one pitch; the leadscrew advances its own pitch per revolution of itself. The change gears bridge the two —

i = advance / P_leadscrew · i = (driver₁ × driver₂) / (driven₁ × driven₂) · 1 in = 127/5 mm exactly

Same-system jobs reduce to small fractions; cross-system jobs carry the prime 127. The solver does exact integer arithmetic on the reduced ratio, prefers the simplest exact train, and falls back to the closest approximation with its error stated. The thread itself comes from the thread pitch chart and tap drill calculator; the pass-by-pass depths from the threading infeed calculator; and the same worm-fraction thinking on the mill side lives in the dividing head indexing calculator.

Worked example

Verified against the live calculator

Cutting M1.5 on a classic 8 TPI leadscrew:

i = 1.5 × 8 / 25.4 = 60/127 → 60 driver : 127 driven, exact

One pair plus an idler — this is the 127 gear doing the only job it exists for. Remove it (the no-127 set) and the best the solver can assemble is 20:45 × 85:80 at −463 ppm: each thread lands half a thousandth of a millimeter short, which a ten-thread nut never notices and a 300 mm leadscrew certainly does. Meanwhile the awkward-looking 11.5 TPI pipe thread needs no special gear at all: 8/11.5 reduces to 16/23, and 80:115 cuts it exactly.

Frequently asked questions

How do you calculate change gears for thread cutting?

Ratio first: thread advance per spindle revolution ÷ leadscrew pitch. Then find gears whose driver ÷ driven (times a second pair if compounded) equals it exactly. M1.5 on an 8 TPI leadscrew needs 1.5 × 8 ÷ 25.4 = 60/127 — one 60-tooth driver into a 127-tooth driven, with any idler between.

Why do lathes use a 127-tooth gear for metric threads?

Because 1 inch = 25.4 mm exactly, and 25.4 = 127/5. Any metric-on-imperial ratio therefore carries a factor of 127 — a prime number, so no combination of smaller gears can replace it exactly. The 127 transposing gear makes metric conversion exact; everything else is an approximation.

How accurate are metric threads cut without a 127 gear?

From a plain every-5-teeth set, the best train for M1.5 on 8 TPI is 20:45 compounded 85:80 — 463 ppm short, about half a thousandth of pitch per thread. Fine for a nut that engages ten threads; wrong for a long leadscrew. Import lathes ship 63-tooth gears because 80/63 gets the same job to 125 ppm.

What about cutting 11.5 TPI pipe threads?

Fractional TPI is just another ratio: 8 ÷ 11.5 = 16/23, and 80:115 cuts it exactly from a by-5s set — no special gear needed. Enter any fractional TPI; the solver treats it as exact arithmetic, not a decimal approximation.

Method & assumptions

  • Exact rational arithmetic on the ratio (decimals taken exact to six places; TPI through the exact 127/5 inch factor); the searched sets are generic every-5-teeth banks with one gear of each size, ±127.
  • Real lathes ship different sets (many imports carry 57s and 63s; quick-change boxes cover the common pitches internally) — the required-ratio output is the universal number to check against your own bank.
  • Single-start threads; multi-start leads enter the per-start pitch and index the starts separately.
  • Banjo geometry, mesh clearance and thread hand (idler count) are machine-side checks; gear hobbing and helical-lead trains with machine constants are outside this screen.
Embed this calculator on your site free

Paste this where you want the calculator to appear. It stays in sync — same formulas, metric & imperial, light/dark — and a small credit link helps people find more tools.

Open widget

Live preview