Spur Gear Calculator: Module, Diameters and Tooth Dimensions (Formulas + Tool)

24 August 2026

Mentor CNC Editör Ekibi

The spur gear is the most fundamental gear type, with teeth cut parallel to the shaft axis, and it appears everywhere power is transmitted: gearboxes, machine tools, automotive transmissions and pump drives. The tool below calculates the pitch circle diameter, tip (blank) diameter, root diameter, base circle, pitch and tooth depth when you enter the module (m) and number of teeth (z). If you also enter the mating gear's tooth count, the centre distance, gear ratio and contact ratio are calculated as well. The tool warns you when there is a risk of undercut.

What is a spur gear and where is it used?

In a spur gear the teeth are cut on a cylindrical body parallel to the axis, transmitting power between two parallel shafts. Being the easiest gear type to manufacture and measure, it is the first choice both in training and in industry. Because tooth contact starts and ends across the whole face width at once, it runs noisier than a helical gear, but it generates no axial force — which simplifies bearing design. Gearboxes with moderate peripheral speeds, idler gears, pump and crane drives are typical applications of the spur gear.

Key concepts: module, pitch, pitch circle

The module (m) is the size unit of a gear — the ratio of the pitch circle diameter to the number of teeth: m = d / z. The first condition for two gears to mesh is that their modules and pressure angles are identical. The pitch circle (d) is the theoretical circle on which two gears roll on each other without slipping; all gear calculations are based on this circle. The circular pitch (p) is the arc distance between the same-side flanks of two consecutive teeth on the pitch circle, found as p = π · m. The pressure angle (α) defines the slope of the tooth profile; today the standard value is 20°, while 14.5° may be found on older gears.

Spur Gear Terminology (m = 4 mm, z = 16, α = 20°)Odₐ = m·(z + 2) — tip diameterd = m·z — pitch circle diameterd_b = d·cos α — base circled_f = m·(z − 2.5) — root diameterp = π·mhₐ = mh_f = 1.25·mh = 2.25·mα = 20°Basic rack profileDrawn from true involute geometry — standard basic rack: hₐ = m, h_f = 1.25·m (bottom clearance c = 0.25·m)
Spur gear terminology: pitch circle (d), tip diameter (dₐ), root diameter (d_f), base circle (d_b), circular pitch (p), tooth depths and pressure angle (α). Drawn from true involute geometry.

Spur gear formulas

QuantitySymbolFormulaUnit
Modulemm = d / zmm
Pitch circle diameterdd = z · mmm
Tip diameter (blank diameter)dₖdₖ = d + 2m = m(z + 2)mm
Root diameterd_fd_f = d − 2.5mmm
Base circle diameterd_bd_b = d · cosαmm
Addendumhₖhₖ = 1.00 · mmm
Dedendumh_fh_f = 1.25 · mmm
Whole depth (cutting depth)hh = 2.25 · mmm
Circular pitchpp = π · mmm
Centre distanceaa = (z₁ + z₂) · m / 2mm
Gear ratioii = z₂ / z₁ = n₁ / n₂
Spur gear formulas for the standard full-depth ISO profile (hₖ = m, h_f = 1.25m)

Worked example: m = 3, z₁ = 20, z₂ = 40

For a gear pair with a 3 mm module and 20 / 40 teeth: the pinion's pitch circle is d₁ = 20 × 3 = 60 mm and the gear's is d₂ = 40 × 3 = 120 mm. The pinion's tip diameter is dₖ₁ = 60 + 2×3 = 66 mm; the blank is turned to this diameter on the lathe. The root diameter is d_f₁ = 60 − 2.5×3 = 52.5 mm and the cutting depth is h = 2.25×3 = 6.75 mm. The centre distance works out to a = (20+40)×3/2 = 90 mm and the gear ratio to i = 40/20 = 2; so if the pinion turns at 1450 rpm, the gear turns at 725 rpm. Enter the same values into the tool above to see all results including the contact ratio.

Meshing Pair and Centre Distance (m = 3 mm, z₁ = 20, z₂ = 40)O₁O₂a = (d₁ + d₂)/2 = m·(z₁ + z₂)/2 = 3·(20 + 40)/2 = 90 mmPinionz₁ = 20, d₁ = 60 mmGearz₂ = 40, d₂ = 120 mmPitch point: the two pitch circles are tangent hereGear ratio i = z₂/z₁ = n₁/n₂ = 2 — to mesh, both gears must share the same module and pressure angle
The worked example in mesh: m = 3 mm, z₁ = 20, z₂ = 40 → d₁ = 60 mm, d₂ = 120 mm, a = 90 mm. The pitch circles are tangent at the pitch point.

Undercut and minimum number of teeth

When the number of teeth drops below a certain limit, the cutting tool digs into the tooth root and weakens it; this is called undercut. The theoretical limit is z_min = 2 / sin²α: 17 teeth at a 20° pressure angle, 32 teeth at 14.5°. If fewer teeth are needed, the solution is profile shift (cutting with the tool withdrawn from the gear); we will publish a profile-shifted gear calculator as a separate tool. The tool above checks this limit automatically and shows a warning when necessary.

Undercut — Effect of Tooth Count (α = 20°)z = 10 → UNDERCUTThe involute flank is gouged away; the root thins and weakensThinned rootz = 30 → FULL PROFILEThe root stays full; a complete involute profile is obtainedFull rootTheoretical limit for α = 20°: z_min = 17 (in practice slight undercut is tolerated down to z ≥ 14)Remedies: raise the tooth count, apply positive profile shift (+x), or use a helical gearDashed red: pitch circle — dashed grey: root circle (generated by simulating a real rack cutter)
Simulated rack-cutter generation: at z = 10 the tooth root is gouged away (undercut); at z = 30 a full involute profile is obtained.

Module or diametral pitch (DP)?

In the metric system gear size is expressed by the module; in the inch system by the diametral pitch (DP) — the number of teeth per inch of pitch circle diameter. The conversion between the two systems is DP = 25.4 / m. If a gear you measure gives an "odd" module such as 2.117, that gear is most likely DP-based (25.4/2.117 = 12 DP). The tool also shows the DP equivalent of the entered module.

Frequently asked questions

How do I find the module of a gear?

Count the teeth and measure the tip diameter with a caliper — you can use the gear module finder we built for exactly this job. For a standard spur gear the module follows from m = dₖ / (z + 2). For example, a gear with 22 teeth and a 72 mm tip diameter has m = 72/24 = 3. If the result is not close to the standard series (1 – 1.25 – 1.5 – 2 – 2.5 – 3 – 4 – 5…), the gear may be profile-shifted or DP-based.

What is required for two gears to mesh?

Their modules and pressure angles must be identical. The tooth counts may differ — the gear ratio comes from that difference.

How deep do I cut when machining a gear?

For the standard full-depth profile the whole depth is h = 2.25 × m; for a module 2 gear, for example, you plunge 4.5 mm. The blank is turned to the tip diameter (dₖ = m(z+2)), then the teeth are cut to this depth.

Why does the contact ratio matter?

The contact ratio (εₖ) is the average number of tooth pairs in contact at the same time and must always be greater than 1 for spur gears. Below 1.2 the mesh runs rough and noise increases; raising the tooth counts or lowering the pressure angle increases the ratio.

The tool and formulas on this page are intended for education and preliminary design; they apply to standard full-depth ISO profiles without profile shift. Verify the results before manufacturing. When cutting the gear on a machine, you can calculate the required speed and feed values here and try the turning cycles with our CNC simulators.

Other gear calculators: helical gear calculator · rack and pinion calculator · bevel gear calculator · gear formulas for every type