This OpenSCAD script lets you generate a wide variety of gears - spur, ring, crown, bevel, worm gears, and gear racks - all fully parametric and customizable. Built using the power of BOSL2, it uses real-world gear parameters like circular pitch, pressure angle, and helical angles to create functional, realistic gears. Whether you're designing for mechanical systems, learning about gear mechanics, or simply experimenting, this script has you covered.
Click on Customize to open the generator.
🚀 Quick Start
Select a Gear Type Choose a gear type. Adjust general parameters like circular pitch and teeth count, which are shared across all types.
Customize Your Gear Each gear type has its own unique parameters. Expand the relevant section (e.g., spur, bevel) and adjust those to your needs.
Render and Export Generate your gear at the desired resolution, then export it for slicing and 3D printing.
⭐ Features
Multiple Gear Types Generate spur, ring, crown, bevel, worm gears, and gear racks with ease.
Customizable Parameters Adjust circular pitch, teeth count, pressure angle, helical angles, clearance and more.
Precision Modeling Adheres to standard gear design principles for functional prototypes and gear ratio experiments.
Realistic Results Create not just visual representations but fully functional designs that meet engineering standards.
This script is open source under a Creative Commons Attribution license - free to use, modify, and share with proper credit. Credits go to the BOSL2 library and team. Refer to gears.scad for full documentation. If you have GitHub, go show them some love with a star!
🛠️ Changelog
v1.1
Added Gear Racks – Supports both straight and helical gear racks.
Improved Parameter Controls – Enhanced parameters for finer control over gear properties.
v1.2
Fixed an issue with worm gears in the MakerWorld Customizer where top faces would connect.
v1.3
Added the ability to specify the cutter radius for bevel gears.
Added support for straight bevel gears (set cutter radius and spiral to 0).
v1.4
Added a worm type that mates with a worm gear.
Added support for defining gear size by module or circular pitch.
Thanks to you I've sostitute a broken gear of an orange juicer despite the gears is't straight but have a little spiral. Can you implement straight teeth?
Version 1.3 is out 🚀. Now you can set the cutter radius for bevel gears. To create a straight bevel gear, simply set both the cutter radius and spiral to zero (see attached image). I'd love to see your results - let me know if I can feature a photo in the guide I'm working on!
This is amazing, I didn't know how to design gears for my projects so this works perfectly for when I'll need it, you could possibly also make a Rail generator to accompany this too!
amazing Tool, wondering if there is going to be an option to make just the worm. would be a game changer.
brilliantly made, and many thanks from me and my neighbor who loves his new costum gear
Good catch. Oddly enough, it works fine in my OpenSCAD software (see attached image). I will have to dig deeper to find out what's going on here, but It's probably related to the online customizer or the version of OpenSCAD. I will let you know once I have more details.
Boosted. I might not be cool enough to build something with these right now- but i will someday and now have the tools. A generator like this is infinitely more useful than hundreds of models, because you know you have anything you want, and aren't storing anything you don't need. Arete! Excellence!
Sweet work Jason! I need to look into that over the weekend to see if I can get some bevel gear replacements for my Tatra Axle. I did design it with straight teeth since that was available in McMaster Carr add-on in Fusion.
Hi @runescope , unfortunately, the library does not currently support Geneva gears. However, I’ve looked into the math behind the mechanism, and I could definitely give it a shot. If I do implement it, it would likely be part of a separate script rather than this one. I'll add it to my ideas list, and if there’s enough interest, I’ll see what I can do. No promises, but I appreciate the suggestion!
Comment & Rating (191)