You do not draw the involute by hand: a generator traces it from five numbers, the module m, the tooth count z, the pressure angle α, the profile shift x and the backlash. What takes work is knowing which numbers to feed it and checking what comes back: two generators can mean the normal or the transverse module by "module", "backlash" can be the total or a per-gear figure, and the "clearance" in some tools is the gap at the bottom of the tooth space. The module and face width that hold come from Sizing a gear that holds.
What a generator asks for and what to check
- Module m. The size of the tooth. Two gears only mesh if they share m.
- Teeth z. With m, they fix the pitch diameter: d = m·z.
- Pressure angle α. 20° for almost everything. A 14.5° gear and a 20° gear will not mesh even with the same module.
- Profile shift x. In modules. Almost every tool defaults to 0; BOSL2 defaults to automatic.
- Backlash. Check whether the number is the total jt on the pitch circle or the amount trimmed from each gear.
- Root radius and face width.
- For helical gears: the helix angle β, the hand and, above all, whether the module you type is the normal mn or the transverse mt.
Before you print, measure the model with the CAD's measuring tool and compare the diameters with the formulas:
| Dimension | Formula | m = 1, z = 20, x = 0 |
|---|---|---|
| Pitch | d = m·z | 20 |
| Tip | da = m·(z + 2 + 2x) | 22 |
| Root | df = m·(z − 2.5 + 2x) | 17.5 |
| Tip, helical | da = mn·(z/cos β + 2 + 2x) | — |
The decisive one is da. If it does not match, the tool is using another convention: diametral pitch in inches, transverse module, a different addendum, or tips it trims on its own. Find out now, not when you are holding two printed gears that will not mesh. The root diameter df can vary with the root clearance each tool applies (BOSL2 and FreeCAD let you set it), and that does not stop the mesh as long as there is room under the mating gear's tip.
Where to put the backlash
For a printed-on-printed pair, jt = 0.2 mm total on the pitch circle, on a modern bedslinger. Give it one way only: thin the teeth 0.1 mm per gear or spread the centers 0.27 mm, never both (Spur gears). If the tool already thins the teeth, the theoretical center distance is the right one. Check what its number means: in BOSL2, backlash is how much each gear is narrowed and the pair's backlash is the sum, so backlash=0.1 on both gives jt = 0.2. You calibrate backlash rather than read it off a table, because printed flanks scatter by ±0.1 mm; the logic is the same as in Real printed clearances.
The generators
| Tool | What it generates | Profile shift | Backlash | Output |
|---|---|---|---|---|
| KapyCAD, sketch | Spur, ring, rack | No | Built into the sketch gears | Parametric geometry |
| Fusion, Spur Gear script | Spur | No | Backlash parameter (check whether it is total) | Solid in your design |
| Fusion, add-ins from the Autodesk App Store | Spur, ring, rack | Check the listing | Clearance parameter (check whether it is backlash or root clearance) | Solid in your design |
| Onshape, Spur Gear and community FeatureScripts (Gear Lab: cylindrical, bevel, face) | Depends on the script | Check the listing | Depends on the script | Parametric feature |
| FreeCAD, Part Design › Involute gear | External or internal 2D profile to extrude | Yes (shift coefficient) | — | Parametric profile |
| FreeCAD, Gear workbench | External and internal involute, cycloidal, rack, bevel, worm, timing pulley | Yes | Its own parameter | Parametric object |
OpenSCAD + BOSL2 (gears.scad) |
Spur, ring, rack, worm, bevel, planetary, Wolfrom | Yes, auto on spur gears |
Narrows the teeth at the pitch circle, per gear (adds up) | Mesh, or DXF of the 2D profile |
Use the generator in the CAD you are designing the rest of the part in, so the gear stays parametric. If that CAD cannot shift the profile, or you need a worm, a Wolfrom train or a shifted ring gear, go to FreeCAD or BOSL2; the latter also has gear_dist() for the center distance. Web-based 2D generators that export DXF or SVG are fine for a one-off spur pair, but before you trust one, check that the profile is an involute and that α and da are what you expect.
With BOSL2, watch the defaults. profile_shift="auto" shifts only a pinion of fewer than 17 teeth and leaves the wheel at 0: you are in strategy B from the next section, and if you mount at the unshifted distance the pair jams. Compute the distance with gear_dist(), passing both shifts, or set x2 = −x1 by hand. Ring gears, on the other hand, come out with zero shift: if the pinion got an automatic shift, give the ring profile_shift = auto_profile_shift(...) of the pinion, or they will not mesh.
Two more traps. A tool that exports a mesh (STL) loses the parametric gear: import it as DXF or STEP, or regenerate it. And a tool that trims the tips on its own to leave more root clearance, or rounds them, changes da: measure it.
Profile shift: saving the root of a small pinion
When a gear is cut, a generating rack rolls on its pitch circle. Shifting the profile means moving that rack x·m away from the center. The pitch circle and the tooth count stay the same; the tooth uses a stretch of the same involute further out, so the root thickens and the tip narrows.

When you need it
Below z_min = 2/sin²α = 17 teeth at 20°, the rack cuts into the root and undercuts it; at 14, slight undercut is acceptable. Undercut weakens the tooth exactly where it breaks and shortens the usable involute, which lowers the contact ratio. The minimum shift is:
x ≥ (17 − z) / 17
At 14 teeth, 0.18; at 12, 0.29; at 10, 0.41.
With a shift, the dimensions become da = m·(z + 2 + 2x), df = m·(z − 2.5 + 2x), and the tooth thickness on the pitch circle s = m·(π/2 + 2·x·tan α). A positive x on the pinion thickens its root; a negative x on the wheel thins its own.
In FDM the limit is at the tip
On a printed gear the limit is not the root, it is the tip. As x goes up, the tip land narrows. On a module 1.5, 12-tooth pinion, x = 0.3 leaves a land of about 0.65 mm, one and a half 0.45 mm beads. At x = 0.6 it drops to 0.30 mm, less than one bead: the printer rounds it off and the gear loses addendum. Rule of thumb: leave a tip land of at least one bead.
Two strategies
- A: x1 + x2 = 0. The pinion gets +x and the wheel −x. The center distance does not change, but the wheel has to take −x without undercutting: check that (17 − z2)/17 ≤ x2.
- B: pinion only. The center distance grows.
In B, the exact calculation goes through the involute function, inv θ = tan θ − θ:
- inv αw = 2·tan α·(x1 + x2)/(z1 + z2) + inv α
- a = a0·cos α / cos αw, where a0 is the unshifted distance
The shortcut a ≈ a0 + (x1 + x2)·m lands about 0.02 mm from the exact value in the example below, well within your printer's scatter, and the difference only adds a little backlash. That is why the shortcut is fine for printed gears and not for a ground steel pair.
Profile shift also lets you fit a pair to a fixed distance (a motor's bolt pattern, or two ring gears of different tooth counts sharing planets, as in Split-ring compound planetaries) and balance root strength between pinion and wheel.
Center distance: external, internal and helical

External: a = m·(z1 + z2)/2. With m 1 and 20/40 teeth, 30 mm.
Internal: a = m·(z2 − z1)/2, where z2 is the ring. With 20/60, 20 mm. With a shift, the sign flips on the ring: its x subtracts, so to keep a the ring takes the same shift as the pinion (x2 = x1). BOSL2 requires the ring's shift to be at least the pinion's. To keep the tips from interfering with full-depth 20° teeth, hold z2 − z1 ≥ 12; 9 or 10 only if you trim the tips. The rest is in Internal ring gears.
Helical: the module is what trips people up. mt = mn / cos β and a = mn·(z1 + z2) / (2·cos β). Two gears set to "module 1.5" in two tools, one using normal and the other transverse, will not mesh. An external pair on parallel shafts needs the same mn, the same αn, the same β and opposite hands; an internal pair has the same hand. With mn 1.5, β 20° and 12/30 teeth, a = 33.52 mm instead of 31.5, and the pinion measures da = 22.15 mm. Axial thrust and the herringbone are in Helical and herringbone gears.
A helical pinion undercuts later, because it behaves like a spur gear with zv = z / cos³β virtual teeth. At β 20° the limit drops to about 14 real teeth, and a 12-tooth helical pinion is equivalent to a 14.5-tooth spur.
The pitch cone of bevel gears and their virtual teeth zv = z / cos δ are in Bevel gears; the lead angle and center distance of a worm, in Worm drives.
Worked example: a 12-tooth pinion
The brief: a PETG pair, m 1.5, a 12-tooth pinion on the motor and a 30-tooth wheel (i = 2.5), 12 mm face width, printed on an enclosed CoreXY. Unshifted, the 12-tooth pinion undercuts (12 < 17).
Step 1, shift. x1 ≥ (17 − 12)/17 = 0.29. You pick x1 = +0.3.
Step 2, strategy A. x2 = −0.3. Check the wheel: (17 − 30)/17 = −0.76 ≤ −0.3, no undercut. a = 1.5·42/2 = 31.5 mm, unchanged.
Step 3, dimensions to check on the model.
| Pinion (z 12) | Wheel (z 30) | |
|---|---|---|
| da | 21.9 (21.0 unshifted) | 47.1 |
| df | 15.15 (14.25 unshifted) | 40.35 |
| Thickness on the pitch circle s | 2.68 (2.36 unshifted) | 2.03 |
| Tip land | ≈ 0.65: printable | — |
Step 4, contact ratio. Strategy A gives 1.48: above the 1.2 minimum and inside the usual 1.4–1.8. It is a theoretical figure; rounded printed tips and backlash reduce it. With a 12-tooth pinion, check on the coupon that the pair does not skip, and if the design allows, 17 teeth or more, ideally 18–20, spare you the problem.
Step 5, strategy B instead. If the wheel is off the shelf and you cannot shift it, x2 = 0. Then αw = 22.0° and a = 31.93 mm exactly; the shortcut gives 31.95. The contact ratio drops to 1.43.
Step 6, backlash. If the generator thins the teeth by 0.1 mm per gear, mount at 31.5 (A) or 31.93 (B). If it does not, spread the centers by 0.27 mm. Do not do both.
The first thing you print is the coupon described in "How to test it".
Non-circular gears
They are the only continuously meshing gears whose ratio changes on purpose within one turn. Cycloidal and strain-wave reducers are not: their ratio is constant.
Two pitch curves are conjugate if at every angle:
- r1(θ1) + r2(θ2) = a
- dθ2/dθ1 = r1/r2, that is, they roll without slipping
You do not choose the second curve: it follows from the first and from a. It also has to close after a whole number of turns, and that condition fixes a. The classic case is two identical ellipses, each turning about one of its foci: a = 2A, the major axis, and the ratio swings between (1 − e)/(1 + e) and (1 + e)/(1 − e).

The teeth are cut by rolling the rack along the pitch curve; a spur gear generator does not do that. You need a dedicated non-circular gear generator or script. They are used for pulsed flow, quick return or indexing at variable speed, although for most of that a cam is simpler (Cams and followers). Print them flat and mount them at the exact a they were generated for: an offset center jams at some angles and separates at others.
Nutating reducers look similar at first glance, but their ratio is constant. A face gear wobbles on a tilted crank and meshes with a fixed one of a slightly different tooth count: a large reduction in little axial space. They are hard to model and hard to print cleanly, because the mesh plane is tilted. The alternatives are compared in Choosing a reducer.
When it fails
| Symptom | Cause | Fix |
|---|---|---|
| They will not mesh even though both tools say "module 1.5" | One uses transverse module (helical) or diametral pitch | Compare da with m·(z + 2 + 2x), or with mn·(z/cos β + 2 + 2x) for helical gears |
| The pinion root is thin and snaps | z < 17 without a shift | x ≥ (17 − z)/17, or more teeth |
| Rounded tips, the pair skips under load | Too much shift, tip land below one bead | Lower x or raise m |
| Jams at the theoretical distance | No backlash applied, or undersized shaft holes | Apply jt once; check the holes (Why holes print small) |
| Too much backlash, noisy | Backlash applied twice: thinned teeth and spread centers | Remove one of the two |
| Shifted pinion with unshifted wheel jams | Strategy B with the centers at a0 | Spread the centers to the a from inv αw, or a0 + x·m |
| The internal pair clashes at the tips | z2 − z1 < 12, or the ring shifted differently from the pinion | More tooth difference, or x2 = x1 |
| Helical pair on parallel shafts will not mesh | Same hand on an external pair | Opposite hands (same hand for internal) |
| Helical gear walks along its shaft | Axial thrust with no stop | Thrust faces or a bearing (Helical and herringbone gears) |
How to test it
Before printing, measure da and df on the model and compare them with the formulas. Check the mesh in an assembly or in a sketch with Mesh gears.
The first print is a coupon: a plate with two pins at the calculated a, the gear bores at a sliding-fit diameter, and a 4–5 mm slice of each gear with the full profile. It prints in minutes and checks profile, shift and backlash. Turn the wheel a full revolution by hand: no tight spots and no skipping. A tight spot once per revolution is runout or a bad tooth: if it repeats on every turn of the wheel, the wheel is to blame; if on every turn of the pinion, the pinion. If it is tight all the way round, the backlash is missing or a is too short.
To measure backlash, hold the wheel, rock the pinion and measure the arc on the pitch circle (or the angle multiplied by the pitch radius). Aim for the jt you chose, ±0.05 mm. The method is in Test coupons and Iterate and measure.
Once the coupon works, print the gears at full face width and put them through the load and cycle test in Testing a mechanism before you trust it.
See also
- Spur gears: the geometry, the minimum tooth count and where the backlash goes.
- Internal ring gears: the internal pair, its tooth difference and the rim thickness.
- Helical and herringbone gears: the normal module, the helix hand and the axial thrust.
- Planetary reducers: sun, planets and ring at the same center distance.
