Home / Articles / Draw and calculate a spur gear (module and teeth)
Draw + calculate · Trade

Draw and calculate a spur gear (module and teeth)

8 min read · updated 14 Nov 2026

A metric spur gear is defined by two values: the module m (tooth size) and the number of teeth z. From these you can work out the pitch diameter, outside diameter, root diameter, tooth depth, and the centre distance between a pair of meshing gears. This guide gives the formulas, a worked m = 2, z = 20 example, and how to draw the gear reference circles in DXCAD2D Online.

Module and spur-gear formulas

The module is the ratio m = d ⁄ z (pitch diameter per tooth), in millimetres. A standard tooth rises one module above the pitch circle (addendum) and goes 1.25 modules below it (dedendum). The standard pressure angle is 20°.

To findFormulam=2 z=20
Pitch diameter dd = m · z40.00 mm
Outside (tip) dia dₐdₐ = m · (z + 2)44.00 mm
Root dia d_fd_f = m · (z − 2.5)35.00 mm
Addendumhₐ = m2.00 mm
Dedendumh_f = 1.25 · m2.50 mm
Whole depthh = 2.25 · m4.50 mm
Circular pitchp = π · m6.283 mm
Base circle dia at 20°d_b = d · cos20°37.59 mm
Easy to remember: outside Ø = pitch Ø + 2 modules, and root Ø = pitch Ø − 2.5 modules — so a larger module means bigger teeth.
dₐ d (pitch) d_f
A 20-tooth gear: the solid outer line = outside Ø dₐ · the long-dash circle = pitch Ø d · the short-dash circle = root Ø d_f.

Worked example: a gear with m = 2, z = 20

A module-2 gear with 20 teeth and a 20° pressure angle. Substitute into the formulas:

  1. Pitch diameter: d = 2 × 20 = 40 mm
  2. Outside diameter: dₐ = 2 × (20 + 2) = 2 × 22 = 44 mm
  3. Root diameter: d_f = 2 × (20 − 2.5) = 2 × 17.5 = 35 mm
  4. Addendum hₐ = 2 mm, dedendum h_f = 2.5 mm, whole depth = 4.5 mm
  5. Circular pitch p = π × 2 = 6.283 mm (tooth thickness at the pitch circle ≈ p ⁄ 2 = 3.142 mm)
Cross-check: outside Ø − root Ø = 44 − 35 = 9 mm, which equals the whole tooth depth over both sides = 2 × 4.5 = 9 mm exactly.

Centre distance of a gear pair

When two gears of the same module mesh, the centre distance is half the sum of their pitch diameters.

Formula: centre distance a = (d₁ + d₂) ⁄ 2 = m × (z₁ + z₂) ⁄ 2

Example: a module-2 pair with z₁ = 20 and z₂ = 40 → a = 2 × (20 + 40) ⁄ 2 = 60 mm, ratio = z₂ ⁄ z₁ = 40 ⁄ 20 = 2:1.

Try it right now — a free 2D CAD in your browser. Nothing to install, no sign-up.

Open DXCAD2D Online

Drawing the gear reference circles

Drawing a true involute tooth takes many steps, but what you actually use to make and check the part are the three reference circles (outside, pitch, root). Below we draw the m = 2, z = 20 gear at full size.

  1. Type C Enter, click the centre 0,0, enter radius 22 Enter for the outside circle (Ø44).
  2. Repeat C with radius 20 Enter for the pitch circle (Ø40), then C radius 17.5 Enter for the root circle (Ø35).
  3. Sketch one tooth between the root and outside circles: type PL Enter and draw the two flanks and the tip, using the pitch-circle tooth thickness ≈ 3.14 mm as a guide.
  4. Type PO Enter (polar array), select the tooth, set the centre 0,0, enter 20 items over 360° to fill the whole gear.
  5. Type TR Enter to trim surplus lines at the root circle, draw the bore with C, and finish with D to dimension Ø44 and Ø40.

Frequently asked questions

What is a gear module

The module m = pitch diameter ÷ number of teeth (in mm); it sets the tooth size. Two gears will mesh only if they share the same module and pressure angle.

How do I calculate a gear outside diameter

Outside diameter = module × (teeth + 2), so m = 2, z = 20 gives 2 × 22 = 44 mm, because the tooth tip rises one module above the pitch circle on each side.

What is the diameter of a 20-tooth module-2 gear

Pitch Ø 40 mm, outside Ø (tip to tip) 44 mm, root Ø 35 mm, and a whole tooth depth of 4.5 mm.

How do I find the centre distance of two gears

a = module × (teeth₁ + teeth₂) ÷ 2, so a module-2 pair of 20 and 40 teeth gives 2 × 60 ÷ 2 = 60 mm.

Summary

A spur gear is set by its module m and tooth count z; every dimension follows: pitch Ø = m·z, outside Ø = m(z+2), root Ø = m(z−2.5), and whole depth = 2.25m. For m = 2, z = 20 that gives a pitch Ø of 40, an outside Ø of 44 and a root Ø of 35 mm. For a meshing pair, the centre distance is a = m(z₁+z₂)⁄2. When drawing, lay out the three reference circles first, then sketch and repeat one tooth with a polar array.