Library › Mechanisms › Gears ·

3D printable spur gears and racks, module 2: 10–40 teeth involute gears and gear racks (STL, STEP)

Where can I get 3D printable spur gears and a rack that actually mesh? · Hardware · basis: Standard involute spur gear: module m, reference diameter m·z, centre distance (d1 + d2)/2 (KHK Gear Technical Reference). Xem design.

Also called: 3d printable gears, module 2 gear stl, rack and pinion stl, printable spur gear, gear set 3d print, m2 gear 20 teeth

Exact dimensions. Every file is drawn at true size with no tolerance added. The holes and pins that meet another part are listed below under Mating features, with the fit each joint needs; open those by your process's clearance before making the part. Mating features

length
125.7 mm
width
84 mm
height
6 mm

Notes

  • Resize: multiply every length by one factor k and the motion stays identical: angles, ratios, timing and the formulas below do not change, because a mechanism's motion depends only on the ratios of its lengths. Here, stays the same: gear-m2-z10, gear-m2-z12, gear-m2-z15, gear-m2-z20, gear-m2-z24, gear-m2-z30, gear-m2-z40, rack-m2-10t, rack-m2-20t.
  • Resize: Gears scale by the module m (pitch Ø = m·z, centre distance = m·(z₁ + z₂)/2): keep the tooth counts so the ratio stays, and choose a standard module (0.5, 0.8, 1, 1.25, 1.5, 2, 2.5, 3).
  • Resize: fit clearances stay in mm (a slide fit is the same gap at any size); keep every printed wall and pin at least two nozzle widths; mass grows with k³ but part strength only with k², so at k = 2 parts are about 8× heavier and 4× stronger: check pins and thin links when scaling up.
  • Centre distance = m(z1 + z2)/2: 10+20 → 30 mm, 15+30 → 45 mm, 20+40 → 60 mm.
  • Rack and gear: put the gear centre m·z/2 above the rack's pitch line (the rack's pitch line is 2.5 mm above the root, 7.5 mm above its back).
  • Zero backlash as drawn: add 0.1–0.2 mm to the centre distance for FDM.
  • Print flat, 0.4 mm nozzle; module 2 teeth print cleanly without supports.

3D printable spur gears and racks, module 2: 10–40 teeth involute… size chart

filewhatoverall mm
gear-m2-z10Module 2 spur gear, 10 teeth, pitch Ø20, outside Ø24, 6 mm face, Ø5 bore, 20° pressure angle23.971 × 23.161 × 6
gear-m2-z12Module 2 spur gear, 12 teeth, pitch Ø24, outside Ø28, 6 mm face, Ø5 bore, 20° pressure angle27.972 × 27.972 × 6
gear-m2-z15Module 2 spur gear, 15 teeth, pitch Ø30, outside Ø34, 6 mm face, Ø5 bore, 20° pressure angle33.74 × 33.926 × 6
gear-m2-z20Module 2 spur gear, 20 teeth, pitch Ø40, outside Ø44, 6 mm face, Ø5 bore, 20° pressure angle43.978 × 43.978 × 6
gear-m2-z24Module 2 spur gear, 24 teeth, pitch Ø48, outside Ø52, 6 mm face, Ø5 bore, 20° pressure angle51.98 × 51.98 × 6
gear-m2-z30Module 2 spur gear, 30 teeth, pitch Ø60, outside Ø64, 6 mm face, Ø5 bore, 20° pressure angle63.983 × 63.787 × 6
gear-m2-z40Module 2 spur gear, 40 teeth, pitch Ø80, outside Ø84, 6 mm face, Ø5 bore, 20° pressure angle83.986 × 83.986 × 6
rack-m2-10tModule 2 rack, 10 teeth, 62.8 mm long, 6 mm face62.832 × 9.5 × 6
rack-m2-20tModule 2 rack, 20 teeth, 125.7 mm long, 6 mm face125.664 × 9.5 × 6

Mating features

Drawn at the exact size. Open press, slide, run and socket features by your process's clearance (tolerances by process); leave designed gaps and clamp fits as drawn.

featureexactmates withfitfiles
gear teethmodule 2, 20° PAany module 2 gear or rackdesignedall
boreØ55 mm shaft or printed pinrungears*

Where the files are

Other publishers' files are linked, not hosted. "verify" = check the license at the link before commercial use.

KHK GearsGear Technical ReferencewebPublisher's page; dimensions are facts
KHK GearsExploring the hows and whys of choosing the proper center distancewebPublisher's page; dimensions are facts

Free files

★ Free files 9 parts. Xem Studio design: free to use, print and sell things from; not to be republished as files. Xem Studio Design License. index.json

Use this part in your AI. Your AI gets the exact sizes and files straight from Xem and can design a mount, case or adapter around it. Direct downloads here are limited to one file every 10 minutes; through your AI they are unlimited.

Connect Xem to your AI (free, no account, about a minute)
https://xemstudio.com/mcp
  1. Claude: Add to Claude
  2. ChatGPT (Plus or higher): open Connectors → Advanced → turn on Developer mode → Create → paste the address, no authentication → Create.
  3. Cursor: install with one click. VS Code: install with one click.
Other apps and full steps
gear-m2-z10Module 2 spur gear, 10 teeth, pitch Ø20, outside Ø24, 6 mm face, Ø5 bore, 20° pressure angleSTEP · STL
gear-m2-z12Module 2 spur gear, 12 teeth, pitch Ø24, outside Ø28, 6 mm face, Ø5 bore, 20° pressure angleSTEP · STL
gear-m2-z15Module 2 spur gear, 15 teeth, pitch Ø30, outside Ø34, 6 mm face, Ø5 bore, 20° pressure angleSTEP · STL
gear-m2-z20Module 2 spur gear, 20 teeth, pitch Ø40, outside Ø44, 6 mm face, Ø5 bore, 20° pressure angleSTEP · STL
gear-m2-z24Module 2 spur gear, 24 teeth, pitch Ø48, outside Ø52, 6 mm face, Ø5 bore, 20° pressure angleSTEP · STL
gear-m2-z30Module 2 spur gear, 30 teeth, pitch Ø60, outside Ø64, 6 mm face, Ø5 bore, 20° pressure angleSTEP · STL
gear-m2-z40Module 2 spur gear, 40 teeth, pitch Ø80, outside Ø84, 6 mm face, Ø5 bore, 20° pressure angleSTEP · STL
rack-m2-10tModule 2 rack, 10 teeth, 62.8 mm long, 6 mm faceSTEP · STL
rack-m2-20tModule 2 rack, 20 teeth, 125.7 mm long, 6 mm faceSTEP · STL
Let your AI pull this. Claude: add Xem in one click. ChatGPT, Cursor or any MCP client: add https://xemstudio.com/mcp (free, no account). Your AI can then look up exact sizes, mating fits and free STEP/STL from every chat.
Set it up →

Plain text: sheet.txt · JSON: /api/geometry?object=printable-spur-gears-and-racks-module-2

3D printable spur gears and racks, module 2: 10–40 teeth involute gears and gear racks (STL, STEP), isometric render of a generated part
Render of gear-m2-z20 from the free STEP; not to scale.

Fits with

Questions

How far apart do two gears go?

Centre distance = module × (teeth1 + teeth2) / 2. For module 2 that is simply teeth1 + teeth2 in mm.

What gear ratio can I get?

Any ratio of the tooth counts: 10:40 is 4:1, 10:20 is 2:1, 12:24 is 2:1, 15:30 is 2:1.

Do printed gears need backlash?

Yes, add about 0.1–0.2 mm to the centre distance for FDM; these files are exact.

What is module?

Pitch diameter divided by tooth count. Gears mesh only with the same module and pressure angle.