Important – use at your own risk. Figures, code and guides on this site are guides only, not professional or technical advice. Always check your machine’s manual and the manufacturer’s limits before use. You are responsible for your own safety and for checking every result. See the disclaimer and terms.
Spur gear calculator
How it works, guides and notes
Basic dimensions for a standard full-depth spur gear from module and tooth count, the centre distance for a meshing pair, and the measurements to check a gear you have cut (span, over pins or with a gear tooth vernier). For cutting gears on the mill, pair with the dividing head calculator.
How it works
For a standard full-depth metric spur gear: pitch diameter d = m × z, tip diameter da = d + 2m, root diameter df = d − 2.5m (addendum = m, dedendum = 1.25m), circular pitch p = π m, base diameter db = d × cos α. Centre distance for two gears of the same module: a = m (z1 + z2) / 2. Module and diametral pitch: m (mm) = 25.4 / DP.
Checking a gear you have cut
- Span (base tangent length) over k teeth: W = m cos α [π (k − 0.5) + z inv α] + 2 x m sin α, where inv α = tan α − α (radians). It does not depend on the tip diameter, so it is the best check for a home-cut gear. The usual k is z α/180 + 0.5, rounded.
- Over pins (or balls): put equal pins in opposite tooth spaces. inv φ = inv α + dp/(m z cos α) − π/(2z) + 2x tan α / z; the pin centre diameter is m z cos α / cos φ. For an even tooth count M = that + dp; for an odd count, multiply the centre diameter by cos(90°/z) first. A pin of about 1.728 m touches near the pitch circle.
- Chordal tooth thickness for a gear tooth vernier: s = m z sin ψ and the depth setting ha = m (1 + x) + (m z / 2)(1 − cos ψ), where ψ = 90°/z + 2x tan α / z. This depends on the tip diameter being right, so turn the blank accurately.
Diametral pitch: choose DP above and everything is worked in module m = 25.4 / DP internally, then shown in inches and mm. Pin sizes are entered in inches in DP mode (1.728 / DP by default).
Formulae: standard involute gear geometry as published in gear references (for example KHK technical data and ISO/TR 10064-2 measuring methods); our own wording and diagram. Measure to the cutter’s intended thickness; allow for backlash as the drawing specifies. Related: gear cutter number, dividing head.
Proportions follow the common ISO 53 / DIN 867 full-depth system with a 20° pressure angle by default. This is geometry only — not a strength, backlash or profile-shift design. Check the cutter and gear drawing for the job.
Spotted a mistake? Report an error.