Spur gear dimensions: formulas and calculator

Every dimension of a standard involute spur gear follows from three numbers: the tooth count, the module (or diametral pitch), and the pressure angle. This page lists the formulas for metric and inch gears, external and internal, with a worked example and a calculator.

Spur gear formulas

For standard full-depth teeth: addendum 1 module, dedendum 1.25 module. z is the tooth count, m the module in mm, P the diametral pitch in teeth per inch (m = 25.4 / P), and α the pressure angle.

DimensionMetric (module)Inch (diametral pitch)
Pitch diameterd = m · zd = z / P
Addendumha = mha = 1 / P
Dedendumhf = 1.25 · mhf = 1.25 / P
Whole depthh = 2.25 · mh = 2.25 / P
Clearancec = 0.25 · mc = 0.25 / P
Outside (tip) diameterda = m · (z + 2)da = (z + 2) / P
Root diameterdf = m · (z − 2.5)df = (z − 2.5) / P
Base diameterdb = d · cos αdb = d · cos α
Circular pitchp = π · mp = π / P
Base pitchpb = p · cos αpb = p · cos α
Tooth thickness at pitch circles = π · m / 2s = π / (2P)
Centre distance (external pair)a = m · (z1 + z2) / 2a = (z1 + z2) / (2P)

Fine-pitch inch gears (20 DP and finer) are often cut with a slightly different dedendum, 1.2 / P + 0.002 in. GearStudio uses 1.25 for all pitches.

How do you calculate the outside diameter of a spur gear?

Add two addenda to the pitch diameter: da = m · (z + 2), or (z + 2) / P in inches. A 20-tooth, module 2 gear has a pitch diameter of 40 mm and an outside diameter of 44 mm; a 24-tooth, 20 DP gear has a pitch diameter of 1.2 in and an outside diameter of 1.3 in. Its root diameter is (24 − 2.5) / 20 = 1.075 in.

How do you find the module of an existing gear?

Count the teeth and measure the outside diameter, then reverse the formula: m ≈ da / (z + 2), or P ≈ (z + 2) / da in inches. Round to the nearest standard size (see the module and diametral pitch chart). If the result falls between standard sizes, the gear may be profile shifted, or an inch gear measured in millimetres: try both.

What is the centre distance of two spur gears?

Half the sum of the pitch diameters: a = m · (z1 + z2) / 2. A 20-tooth and a 40-tooth gear at module 2 sit 60 mm apart. For a pinion inside an internal gear it is half the difference, a = m · (z2 − z1) / 2, which is how a planetary set's planets meet the ring.

Internal gears

An internal gear's teeth point inward, so its addendum reduces the diameter and its dedendum increases it:

da = m · (z − 2)
df = m · (z + 2.5)

A 60-tooth ring at module 2 has a pitch diameter of 120 mm, a tip (inside) diameter of 116 mm, and a root diameter of 125 mm.

Profile-shifted gears

Shifting the cutter outward by x modules makes the tooth thicker at the root and moves both diameters out:

ha = m · (1 + x)
hf = m · (1.25 − x)
s = m · (π / 2 + 2x · tan α)

The standard centre distance still holds when the two shifts add up to zero; otherwise the gears run at a different centre distance. See undercut and profile shift.

Calculator

Centre distance: 60 mm
Dimension (mm)GearMating gear
Pitch diameter d4080
Tip diameter da4484
Root diameter df3575
Base diameter db37.587775.1754
Addendum ha22
Dedendum hf2.52.5
Whole depth h4.54.5
Circular pitch p6.28326.2832
Base pitch pb5.90435.9043
Tooth thickness s3.14163.1416

GearStudio draws the true involute and trochoid root fillet from these numbers and exports the gear to STEP, STL or DXF.

Open GearStudio

Related guides

Module vs diametral pitchConversion chart and standard sizes. Undercut and profile shiftMinimum tooth counts and how shift fixes them.