Spur Gear Generator

Draw an involute spur gear and its mate from module or diametral pitch, tooth count, and pressure angle, then download STEP, DXF, or SVG or order them.

Design a laser-cut spur gear

Set the pitch, teeth, and pressure angle, add a mating gear, then choose a bore and plate.

Units
Presets
mm
x · module
Tooth thinning
mm

Preview the mesh, center distance, ratio, and contact ratio.

x · module

Hub, holes, and plate

mm
Min. feature 0.050 in · 1.27 mm

Gear dimensions

Pitch diameter
48 mm
Outside diameter
52 mm
Root diameter
43 mm
Base circle diameter
45.105 mm
Circular pitch
6.283 mm
Tooth thickness at pitch
3.092 mm
Diametral pitch
12.7 DP
Mating pitch diameter
96 mm
Mating outside diameter
100 mm
Center distance
72 mm
Gear ratio
2 : 1
Contact ratio
1.675

Mesh preview

Involute flanks and trochoid root fillets are generated by rolling a basic rack through each tooth space, the way a hob cuts a gear. Dashed circles are pitch circles.

True generated tooth form

Download the manufacturing files

100% in-browser

STEP solids are built and checked in your browser. DXF and SVG drawings use lines and true arcs at full scale. Nothing is uploaded until you order.

  • ⌀ 51.7 mm

  • ⌀ 99.9 mm

Laser cut it at Fabworks

We generate the STEP files, add them to a new quote, and open it in a new tab where you can review material, finish, and quantity.

How it works

Pitch diameter is module times tooth count, d = m·z, or z ÷ DP in inches. A standard tooth makes the outside diameter m(z + 2) and the root diameter m(z − 2.5). Two gears mesh only if their module (or DP) and pressure angle both match, so a 20 DP gear will not run with a module 1.25 gear.

How to use the calculator

  1. 1Pick the pitch to match what you are meshing with: module for metric gears, diametral pitch for inch gears. The two do not interchange, and 20 DP is module 1.27, not 1.25.
  2. 2Pick the pressure angle. Use 20° unless you must match existing 14.5° gears, which is common on FRC 20 DP gearboxes. Both gears need the same angle.
  3. 3Check the pinion’s tooth count. Below about 17 teeth at 20° the root undercuts. Use more teeth, or add profile shift with the Avoid undercut button.
  4. 4Add the mating gear and read the center distance and contact ratio. Keep the contact ratio above 1.2.
  5. 5Choose a material and thickness, add the bore and holes, clear any warnings, then download the gears or order them.

Spur gear formulas

Pitch diameter
d = m·z = z ÷ DP
m is the module in mm, z the tooth count, DP the diametral pitch in teeth per inch.
Module and diametral pitch
m = 25.4 ÷ DP
20 DP is module 1.27; module 2 is 12.7 DP.
Outside (tip) diameter
da = m·(z + 2 + 2x)
x is the profile shift coefficient, 0 for a standard gear.
Root diameter
df = m·(z − 2.5 + 2x)
Uses the ISO 53 dedendum of 1.25m.
Base diameter
db = d·cos α
α is the pressure angle. The involute flank starts at the base circle.
Circular pitch
p = π·m
Tooth spacing along the pitch circle. Tooth thickness on it is p/2 + 2·x·m·tan α before backlash.
Center distance
a = m·(z1 + z2)/2; with shift, a_w = a·cos α ÷ cos α_w
α_w comes from inv α_w = inv α + 2·tan α·(x1 + x2)/(z1 + z2), where inv α = tan α − α in radians.
Contact ratio
ε = [√(ra1² − rb1²) + √(ra2² − rb2²) − a_w·sin α_w] ÷ (π·m·cos α)
ra and rb are tip and base radii. Keep ε above 1.2; below 1 the gears lose contact between teeth.
Undercut limit
z_min = 2 ÷ sin²α, x_min = 1 − z·sin²α/2
About 17 teeth at 20°, 32 at 14.5°, and 12 at 25° without profile shift.

How to draw an involute spur gear profile

  1. 1Calculate d = m·z, da = m(z + 2), df = m(z − 2.5), and db = d·cos α, and draw the four circles about the gear center.
  2. 2Plot the involute from the base circle: x = rb(cos t + t·sin t), y = rb(sin t − t·cos t), from t = 0 until the radius reaches da/2.
  3. 3Rotate it so the tooth is π·m/2 thick on the pitch circle. Its half-angle at the base circle is π/(2z) + inv α.
  4. 4Mirror the flank about the tooth centerline to make one tooth.
  5. 5Blend the flank into the root circle with a fillet of about 0.38m. This generator draws the trochoid a rack cutter leaves instead.
  6. 6Thin each flank by half the backlash allowance, then pattern the tooth z times.
  7. 7Add the bore and holes, and keep tip lands and gaps above the minimum feature size for your plate.

Module 2, 24 teeth meshing with 48 teeth

Inputs
m = 2 mm, z = 24, 20° pressure angle, no shift, mating gear z = 48.
Result
Pitch diameter 48 mm, outside diameter 52 mm, root diameter 43 mm, base diameter 45.105 mm. Center distance 72 mm, ratio 2:1, contact ratio 1.675.

d = 2 × 24, da = 2 × (24 + 2), df = 2 × (24 − 2.5), db = 48 × cos 20°. Center distance is 2 × (24 + 48) ÷ 2 = 72 mm.

What to know before using the result

How do I convert between module and diametral pitch?
m = 25.4 ÷ DP, so 20 DP is module 1.27 and module 2 is 12.7 DP. Convert only to compare. A 20 DP gear and a module 1.25 gear differ by about 1.6% in tooth spacing, so they bind after a few teeth.
What is the fewest teeth I can use?
About 17 at 20°, 32 at 14.5°, and 12 at 25° (z = 2 ÷ sin²α). Below that the root is undercut and the tooth is weak. Profile shift fixes it: 12 teeth at 20° needs x of about 0.30, and the Avoid undercut button sets it for you.
Can I mix 14.5° and 20° gears?
No. At the same pitch their base pitches differ by about 3% (cos 14.5° ÷ cos 20°), so the teeth do not roll together. FRC 20 DP gears are usually 14.5°, and the FRC preset sets that up.
How far apart do I drill the shaft holes?
At a = m(z1 + z2)/2 plus a little. Our cut tolerance is ±0.005" and usually ±0.002", and a gear pair is tight at nominal spacing. FRC teams add about 0.003" at 20 DP. You can also raise the backlash setting, which thins the teeth (0.05 mm per gear by default).
Are laser-cut gears strong enough?
For robots, fixtures, and light machinery, yes. The cut teeth have slight taper, about 0.001" per 0.1" of thickness, and the plate is not hardened, so they wear faster than hobbed gears. Do not use them for high speed, high torque, or anywhere a stripped tooth is dangerous.

Module 2 spur gear dimensions, 20° pressure angle

Standard ISO 53 proportions in millimeters: addendum 1.0m, dedendum 1.25m, no profile shift.

Teeth zPitch dia dOutside dia daRoot dia dfBase dia db
1224.0028.0019.0022.553
1530.0034.0025.0028.191
1836.0040.0031.0033.829
2040.0044.0035.0037.588
2448.0052.0043.0045.105
3060.0064.0055.0056.382
3672.0076.0067.0067.658
4896.00100.0091.0090.210
60120.00124.00115.00112.763

Minimum teeth before undercut by pressure angle

For a standard full-depth tooth cut by a rack (addendum 1.0m). Profile shift x moves the cutter out so fewer teeth can be cut without undercut.

Pressure angle2 ÷ sin²αCommonly quoted minimumShift x needed for 12 teethShift x needed for 10 teeth
14.5°31.9320.6240.687
20°17.1170.2980.415
25°11.212none0.107

Formula

d = m·z · dₐ = m(z + 2) · d_f = m(z − 2.5) · d_b = d·cos α

Pitch diameter d is the module m times the tooth count z, and diametral pitch converts with m = 25.4 ÷ DP. Flanks are true involutes of the base circle d·cos α, and the root is the fillet a rack cutter leaves.

Assumptions and limits

  • Default tooth proportions follow ISO 53 profile A: addendum 1.0m, dedendum 1.25m, root fillet 0.38m.
  • Backlash thins each gear’s teeth by the entered allowance at the pitch circle.
  • Center distance and contact ratio assume rigid, aligned shafts at the working center distance.
  • Exported flanks are arcs within 0.005 mm of the generated tooth form.

Order Sheet Metal Parts

Upload a 2D DXF or 3D STEP file for an instant laser cutting quote. Quote in seconds, order in minutes, receive parts in days.