# Gear generator

Free online gear generator: involute spur, helical and herringbone gears, matched pairs, racks and planetary sets by module or teeth, as print-ready 3MF/STL.

- Page: https://paramlet.com/tools/gear/
- Tool id: `gear` · version 1.0.0 · Paramlet Module Spec 1.1 · API version 1 · docs: https://paramlet.com/agents/
- Category: workshop / jigs-fixtures · status: live
- Parameter schema (JSON Schema): https://paramlet.com/tools/gear/schema.json · presets: https://paramlet.com/tools/gear/presets.json
- Core parameters (`exportFormat`, `exportTol`, `units`) are in schema.json under `x-coreParams`, not `properties`; both are accepted.
- Presets: `gear-pair-2-1-module-1-5` (Gear pair 2:1, module 1.5, 5 mm bore), `replace-broken-gear` (Replace a broken gear (count teeth, measure Ø)), `rack-and-pinion-module-2` (Rack and pinion, module 2, 150 mm), `herringbone-gear-pair` (Herringbone gear pair (quiet, no axial thrust)), `planetary-gear-set` (Planetary gear set (sun, 3 planets, ring) 4:1), `servo-d-shaft-gear` (D-shaft motor gear with M3 set screw), `big-ratio-reduction-gear` (5:1 reduction gear pair with lightening holes). Each has a page: https://paramlet.com/tools/gear/gear-pair-2-1-module-1-5/, https://paramlet.com/tools/gear/replace-broken-gear/, https://paramlet.com/tools/gear/rack-and-pinion-module-2/, https://paramlet.com/tools/gear/herringbone-gear-pair/, https://paramlet.com/tools/gear/planetary-gear-set/, https://paramlet.com/tools/gear/servo-d-shaft-gear/, https://paramlet.com/tools/gear/big-ratio-reduction-gear/
- Deep link with parameters: `https://paramlet.com/tools/gear/?p=<url-encoded JSON>` or single values `?key=value`
- Deep link with a project: `https://paramlet.com/tools/gear/#project=<base64url project JSON>` (8,000 characters max)
- In the page: `window.paramlet` (getSchema, getParams, getState, getRecommendedMaterials, setParams, loadProject, getProject, exportModel, exportSTL, export3MF).
- WebMCP tools: `gear_get_parameter_schema`, `_get_state`, `_set_parameters`, `_load_project`, `_download`, and `get_recommended_materials`.
- Validation: unknown keys and out-of-range values are rejected; nothing is applied from an invalid request. Keys with x-agentSafe false can only be changed in the page.
- Output: 3mf, stl (default 3mf), millimetres, parts lying on the bed in print orientation. Every download contains README.txt and parameters.json (a project file).
- Downloads: free and unlimited at launch; API exports use the same download path as the button, including a short page with recommended products (affiliate links) that the user closes before the file starts.
- Export types: `3mf`, `stl`.

## Features

- True involute teeth cut by a simulated rack: correct root fillet, undercut and profile shift
- Module, diametral pitch, or measured outside Ø to replace a gear
- Gear pairs, racks and planetary sets placed at the computed centre distance
- Spur, helical and herringbone, 14.5°, 20° or 25° pressure angle
- Adjustable backlash, tip chamfer against elephant foot
- Round, D, hex and keyway bores, hub with M3 set screw, bore fit coupon
- Centre distance, ratio, contact ratio and mass readouts

## Use cases

- Replace a broken gear in a toy, appliance or printer from its tooth count and diameter
- Gear pairs and reductions for robots, winches, clocks and kinetic art
- Rack and pinion for linear slides, sliding doors and camera sliders
- Planetary gearboxes and herringbone sets for teaching and fidget models
- Motor and servo gears with D-shaft bore and set screw

## Recommended materials & tools

_As an Amazon Associate Paramlet earns from qualifying purchases. Some links are affiliate links; we may earn a commission at no extra cost to you._

- [PETG Filament 1.75 mm (1 kg) — heat-resistant & durable](https://paramlet.com/go/petg-filament-1kg?src=agent) — Stronger and more heat-resistant than PLA for molds, jigs and outdoor parts. (Affiliate link (Amazon Associates, tag paramlet-21))
- [Precision Deburring Tool with 10 HSS Blades](https://paramlet.com/go/deburring-tool-set?src=agent) — Cleans brim edges and drill-hole chamfers in seconds. (Affiliate link (Amazon Associates, tag paramlet-21))

## FAQ

**How do I find the module of a broken gear?**
Count the teeth and measure across the tips with calipers. Module = outside Ø / (teeth + 2). Pick "Measured outside Ø" and the generator works it out and rounds to the nearest standard module.

**How far apart do the shafts go?**
The centre distance is shown under the viewer: (teeth A + teeth B) × module / 2. Turn on the centre-distance plate to print a test plate with both holes.

**My printed gears bind. What should I change?**
Raise the backlash to 0.2–0.3 mm and keep the tip chamfer on (it hides elephant foot). Check that both gears use the same module and pressure angle.

**Which filament is best for gears?**
PETG or nylon for gears under load; PLA is fine for models and light duty. Use 3+ walls and 0.12–0.2 mm layers.

**Do herringbone gears need supports?**
No. They print flat on one face; each layer only steps a little sideways, well under 45°.

## Parameters

| key | label | type | range / values | default | agents |
|---|---|---|---|---|---|
| `kind` | What to make | string | pair|single|rack|planetary | "pair" | yes |
| `sizeBy` | Size by | string | module|diametralPitch|measuredOD | "module" | yes |
| `module` | Module | number | 0.5–5 mm (step 0.05) | 1.5 | yes |
| `diametralPitch` | Diametral pitch (teeth per inch) | integer | 6–48 count (step 1) | 24 | yes |
| `measuredOD` | Measured outside Ø of the old gear | number | 5–250 mm (step 0.1) | 44 | yes |
| `snapModule` | Round to the nearest standard module | integer | 0|1 | 1 | yes |
| `teethA` | Teeth: gear A / pinion / sun | integer | 6–200 count (step 1) | 20 | yes |
| `teethB` | Teeth: gear B / planets | integer | 6–200 count (step 1) | 40 | yes |
| `faceWidth` | Face width (thickness) | number | 2–60 mm (step 0.5) | 8 | yes |
| `pressureAngle` | Pressure angle | string | 20|14.5|25 | "20" | yes |
| `helixAngle` | Helix angle | number | 0–35 deg (step 1) | 0 | yes |
| `herringbone` | Herringbone (double helical) | integer | 0|1 | 0 | yes |
| `backlash` | Backlash | number | 0–0.6 mm (step 0.05) | 0.15 | yes |
| `profileShift` | Profile shift of gear A | number | -0.5–0.8 ratio (step 0.05) | 0 | yes |
| `chamfer` | Tooth tip chamfer | number | 0–1.5 mm (step 0.1) | 0.5 | yes |
| `boreType` | Bore shape | string | round|d|hex|keyway|none | "round" | yes |
| `boreA` | Bore of gear A / pinion / sun | number | 1–60 mm (step 0.1) | 5 | yes |
| `boreB` | Bore of gear B / planets | number | 1–60 mm (step 0.1) | 8 | yes |
| `boreFlat` | D-flat depth | number | 0.2–3 mm (step 0.1) | 0.5 | yes |
| `boreClearance` | Bore clearance (per side) | number | 0–0.5 mm (step 0.05) | 0.15 | yes |
| `fitCoupon` | Print the bore fit coupon instead | integer | 0|1 | 0 | yes |
| `hub` | Hub on gear A | integer | 0|1 | 0 | yes |
| `hubOnB` | Hub on gear B too | integer | 0|1 | 0 | yes |
| `hubDiameter` | Hub diameter | number | 4–80 mm (step 0.5) | 16 | yes |
| `hubHeight` | Hub height above the gear | number | 2–40 mm (step 0.5) | 8 | yes |
| `setScrew` | M3 set screw with nut trap | integer | 0|1 | 0 | yes |
| `lighten` | Lightening holes | integer | 0|1 | 0 | yes |
| `rackLength` | Rack length | number | 20–250 mm (step 1) | 150 | yes |
| `rackBase` | Rack back thickness | number | 2–30 mm (step 0.5) | 6 | yes |
| `planetCount` | Planets | integer | 2–8 count (step 1) | 3 | yes |
| `ringRim` | Ring wall behind the teeth | number | 1.5–20 mm (step 0.5) | 4 | yes |
| `mountPlate` | Centre-distance plate | integer | 0|1 | 0 | yes |
| `colorA` | Gear A colour | string | string | "#e8742a" | yes |
| `colorB` | Gear B colour | string | string | "#3a6fd8" | yes |
| `colorC` | Ring and plate colour | string | string | "#2b2f36" | yes |
| `printMaterial` | Print material | string | petg|pla|nylon | "petg" | yes |
