Most online gear generators ask for a dozen numbers before they show a single tooth. I wanted the opposite: a construction kit where you drop a gear onto the floor, drag a second one next to it, and it simply snaps into the correct mesh. Behind that simplicity sits the full geometry of involute gearing: the true involute flank, the root shape that a real cutter leaves behind, undercut, profile shift, working center distance and all the numbers an engineering drawing needs. This page explains that geometry step by step, so you know what the generator is doing and why its warnings matter.
The notation follows ISO 21771 and DIN 3960, and the default tooth shape is the ISO 53 basic rack. All lengths are in millimeters, angles in degrees unless a formula needs radians.
How to Use the Generator
The stage above is the workbench. Its grid is a millimeter grid, and everything happens directly on it:
- Add parts. Drag a Gear, Ring, Rack or Bevel gear from the dock onto the floor, or click it to place a new part next to the current selection.
- Snap into mesh. Drag a gear close to another one. A ghost shows the exact position on the circle of the working center distance \(a_w\), already rotated so that its teeth fall into the partner's tooth spaces. Release, and the pair meshes. Drag a meshed gear around its partner and it orbits along that circle; pull it away to detach it. Hold Shift to move freely without snapping.
- Stack on a shaft. Drop a gear onto the center of another gear to put both on the same shaft. They form a compound gear: a new layer that turns together with the one below. Drop a gear inside a ring and it snaps to the internal mesh.
- Edit in place. Selecting a part opens a small inspector next to it. The tooth count is the big number: scroll, drag or use the arrow keys to change it. The fold below holds module, pressure angle, profile shift, helix angle, face width and bore. Module and pressure angle must be equal for gears that mesh, so changing them updates the whole train.
- Drive it. Double-click a gear (or press the motor button in its inspector) to make it the driver and set its input speed. Every other gear then shows its speed and direction, and the animation runs with exact ratios, including compound gears and planet carriers. A rack runs back and forth so it never leaves its pinion.
- Assemblies. Planetary inserts a complete set of sun, planets, ring and carrier. Its inspector edits \(z_s\), \(z_p\), the number of planets and the fixed member, derives the ring and suggests the nearest valid tooth counts. Differential inserts a working differential, either the classic bevel type or a spur-gear type that prints flat; a slider sets the speed difference between the left and right output, as when a car takes a corner.
- Warnings with fixes. Undercut, interference, thin tips or a low contact ratio show up as small badges on the affected gear. Most of them offer a one-click fix, such as applying the profile shift that removes the undercut.
- 2D and 3D. The switch at the top changes to a 3D view of the same scene with extruded spur, helical, herringbone and bevel gears. Drag to orbit, Shift-drag to pan; parts can be selected there as well. In both views, drag the empty floor to pan and hold Ctrl while scrolling (or pinch) to zoom, so the page itself still scrolls normally.
- Export and share. Export the selected part or the whole assembly as STL for 3D printing, or the 2D outlines as SVG and DXF at 1:1 scale for laser cutting and CNC. Copy link encodes the whole scene in the URL, so a design can be shared or bookmarked without any account. Ctrl+Z undoes, Ctrl+Shift+Z redoes, Delete removes the selected part and Esc closes the inspector.
The Details fold in the inspector lists the engineering quantities of the selected gear or pair: \(d\), \(d_a\), \(d_f\), \(d_b\), \(s\), \(s_a\), \(a_w\), \(\alpha_w\), \(\varepsilon_\alpha\), \(\varepsilon_\beta\), \(W_k\) and the backlash. The rest of this article explains where each of them comes from.
Why Gear Teeth Are Involutes
A pair of gears should transmit rotation at a constant ratio. If gear 1 turns at angular speed \(\omega_1\), gear 2 must turn at \(\omega_2=\omega_1 r_1/r_2\) at every instant, not only on average. Otherwise the output jerks with every tooth and the drive becomes loud.
Look at the point where two flanks touch. Both flanks may slide along each other, but they may not penetrate or separate, so the velocity components of both flanks along their common normal have to be equal. Working this condition through gives the law of gearing: the ratio is constant exactly when the common normal at the contact point always passes through one fixed point \(C\) on the line of centers. This point is the pitch point, and the circles through \(C\) around both centers are the pitch circles that roll on each other without slipping.
Many curve pairs satisfy this law, but one family does it particularly elegantly. Wrap a taut string around a circle of radius \(r_b\), the base circle, and unwind it. The end of the string traces an involute. While unwinding, the straight piece of string \(TQ\) is always tangent to the base circle at \(T\), and it is always perpendicular to the curve at \(Q\), because the string end momentarily rotates about \(T\). So:
Every normal of an involute is a tangent to its base circle.
Now take two gears with involute flanks. At the contact point, the common normal must be tangent to both base circles. There is only one such line that runs between both centers: the internal common tangent of the two base circles. It is a fixed line, it crosses the line of centers at a fixed point, and so the law of gearing holds automatically. Contact always travels along this straight line, the line of action, and the force between the teeth always acts along it.
The ratio then follows from the base circles alone: \(\omega_1/\omega_2=r_{b2}/r_{b1}\). Since the base circles are part of the gears, moving the shafts slightly apart changes neither the ratio nor its constancy. That tolerance to center distance errors is the main reason why practically all power gears use involutes.
To compute the curve, let the string unwind by the roll angle \(t\). The straight string piece then has length \(r_b t\), equal to the arc \(ST\) it came from. In polar coordinates around the gear center, a point at radius \(r_y\) has the local pressure angle \(\alpha_y\), the angle between the radius \(OQ\) and the base circle radius \(OT\):
\[ \cos\alpha_y=\frac{r_b}{r_y},\qquad t=\tan\alpha_y. \]The polar angle of \(Q\), measured from the start point \(S\), is the roll angle minus \(\alpha_y\). This combination appears everywhere in gear geometry and has its own name, the involute function:
\[ \operatorname{inv}\alpha_y=\tan\alpha_y-\alpha_y. \]In Cartesian coordinates, an involute starting on the \(x\) axis is
\[ x=r_b(\cos t+t\sin t),\qquad y=r_b(\sin t-t\cos t). \]The generator evaluates this parametric form for the flanks. The polar form with \(\operatorname{inv}\alpha\) is the more useful one for the derivations that follow.
Module, Pitch and the Reference Circle
For \(z\) teeth spread evenly around a circle of diameter \(d\), the distance from one tooth to the next along that circle is the pitch \(p=\pi d/z\). A pitch that contains \(\pi\) is inconvenient, so gear standards define the module \(m=p/\pi\) instead. That gives the reference diameter
\[ d=m\,z,\qquad p=\pi m. \]Two gears can only mesh when their pitch is equal, so they need the same module and the same pressure angle. Common modules are 0.5, 0.8, 1, 1.25, 1.5, 2, 2.5 and 3 mm; ISO 54 lists the preferred series for the general engineering range. The tooth size grows linearly with \(m\): a module 2 gear has teeth twice as large as a module 1 gear.
The reference circle is where the tooth profile has the standard pressure angle \(\alpha\), usually \(20^\circ\). The base circle follows directly from the definition of the pressure angle above:
\[ d_b=d\cos\alpha,\qquad p_b=p\cos\alpha=\pi m\cos\alpha. \]The base pitch \(p_b\) is the distance between neighboring flanks measured along the line of action. Two involutes of the same base circle are parallel curves, and the string picture shows why: both strings unwind from the same circle, so their ends always stay one base-circle arc apart. This distance is the key to the contact ratio and to tooth measurement later on.
For \(m=2\), \(z=20\) and \(\alpha=20^\circ\): \(d=40\,\mathrm{mm}\), \(d_b=37.588\,\mathrm{mm}\), \(p=6.283\,\mathrm{mm}\) and \(p_b=5.904\,\mathrm{mm}\).
The Basic Rack
Let the number of teeth grow without bound. The base circle becomes a straight line, and an involute of a straight line is a straight line perpendicular to it. An involute gear with infinitely many teeth is therefore a rack with straight flanks inclined by \(\alpha\). Every involute gear of the same module and pressure angle meshes correctly with this rack, and consequently with every other such gear. The rack is the common denominator of a whole gear family, and standards define the tooth shape by it.
The ISO 53 profile A (equivalent to DIN 867) uses, in multiples of the module:
- pressure angle \(\alpha_P=20^\circ\), tooth thickness and space width \(p/2\) on the datum line,
- addendum \(h_{aP}=1.0\,m\) above the datum line,
- dedendum \(h_{fP}=1.25\,m\), so the bottom clearance is \(c_P=0.25\,m\),
- root fillet radius \(\rho_{fP}=0.38\,m\).
A gear made with this rack and no profile shift has the tip and root diameters
\[ d_a=d+2h_{aP}=m(z+2),\qquad d_f=d-2h_{fP}=m(z-2.5). \]The tool that cuts the gear is the negative of the basic rack: its teeth are \(1.25\,m\) high and have the \(0.38\,m\) rounding at their tips. Those odd numbers are not arbitrary. The rounding begins where the straight flank of the cutter ends, at the height
\[ h_{fP}-\rho_{fP}(1-\sin\alpha)=1.25\,m-0.38\,m\,(1-\sin20^\circ)\approx1.00\,m. \]So exactly the upper \(1.0\,m\) of the cutter flank is straight, matching the addendum of the mating gear. The extra \(0.25\,m\) below is rounded and only cuts the root fillet, where the strong, rounded transition reduces stress concentration.
The generator also offers \(14.5^\circ\) and \(25^\circ\). The old \(14.5^\circ\) runs quieter but undercuts earlier; \(25^\circ\) gives thicker roots and more strength at the cost of higher bearing loads.
Generating a Tooth with a Rack
Gears are usually not cut by copying a tooth shape. A hob or a rack-shaped cutter generates the gear: the machine rolls the gear's reference circle without slipping along a line of the cutter, the datum line, while the cutter removes material. Every intermediate cutter position removes a little, and the finished tooth is the envelope of all positions.
The generator does the same thing numerically. It rolls the ISO 53 cutter around the blank and keeps what was never touched. The straight cutter flanks produce the involute, the rounded cutter tips produce the root fillet. That fillet is a trochoid-like curve, and it is the reason why the generated root is exact rather than a simple arc. You can see the mechanism in the figure: each thin line is one cutter position, and the gear is what remains.
Undercut and the Minimum Number of Teeth
The figure shows a nine-tooth gear, and the flanks near the root are visibly cut away. This is undercut. It does not only weaken the tooth, it also removes the lower part of the involute, so the contact ratio drops.
Its cause is the line of action. The straight cutter flank only generates involute while the contact point lies on the line of action between the pitch point \(C\) and the point \(T\), where the line touches the base circle. Below \(T\) there is no involute; there the cutter cannot generate anything useful, but it keeps moving and digs into the flank. Undercut happens when the end of the straight cutter flank, point \(I\) in the figure, crosses the line of action beyond \(T\).
The line of action leaves \(C\) at the angle \(\alpha\). The distance \(CT\) is \(r\sin\alpha\), and its depth below the datum line is \(r\sin^2\alpha\). The straight flank of the cutter reaches \(h_{aP}=1.0\,m\) below the datum line. No undercut requires
\[ h_{aP}\le\frac{d}{2}\sin^2\alpha=\frac{mz}{2}\sin^2\alpha \quad\Longrightarrow\quad z\ge z_{\min}=\frac{2h_{aP}^*}{\sin^2\alpha}, \]where \(h_{aP}^*=h_{aP}/m=1\). For \(\alpha=20^\circ\) this gives \(z_{\min}=17.1\), so 18 teeth are the smallest completely undercut-free gear and 17 teeth show a negligible trace. A small amount of undercut is tolerable, so 14 teeth are often named as the practical limit for unloaded gears. For \(25^\circ\) the theoretical limit drops to 11.2; for \(14.5^\circ\) it rises to 31.9.
Profile Shift
Undercut has a simple cure: move the cutter away from the gear center by \(x\,m\) while it still rolls on the same reference circle. \(x\) is the profile shift coefficient. The reference circle and the base circle do not change, so the flanks are still involutes of the same base circle. The tooth only uses a different section of the involute, farther away from the base circle, and the cutter's straight flank no longer reaches beyond \(T\):
\[ x\ge x_{\min}=h_{aP}^*-\frac{z}{2}\sin^2\alpha. \]For \(z=12\) this gives \(x_{\min}=0.298\), so a shift of \(x=0.3\) removes the undercut. The shift also changes the tooth thickness. On the rolling circle, the gear's tooth is as thick as the cutter's tooth space on the line that rolls on it. That line now lies \(x\,m\) from the datum line towards the cutter tips, where the cutter's tooth space is wider by \(2\,x\,m\tan\alpha\):
\[ s=m\left(\frac{\pi}{2}+2x\tan\alpha\right),\qquad d_a=d+2m(h_{aP}^*+x),\qquad d_f=d-2m(h_{fP}^*-x). \]With the involute function, the thickness can be carried to any other radius. The tooth's half angle is \(s/d\) on the reference circle, and along the flank the polar angle changes with \(\operatorname{inv}\alpha_y\). On a circle of diameter \(d_y\) with \(\cos\alpha_y=d_b/d_y\):
\[ s_y=d_y\left(\frac{s}{d}+\operatorname{inv}\alpha-\operatorname{inv}\alpha_y\right). \]The most important application is the tip thickness \(s_a\), evaluated at \(d_a\). Positive shift makes the tooth wider at the root but pointed at the tip. For \(z=12\) and \(x=0.3\) the tip is still \(0.46\,m\) wide, but small gears with large shifts quickly reach zero. The generator warns below \(s_a=0.2\,m\), a common lower limit; for printed gears more is better, as discussed below.
Negative shift is possible as well, as long as the gear has enough teeth to tolerate it. It is useful for the larger gear of a pair, or for adjusting a center distance.
Center Distance and Working Pressure Angle
Without shift, two gears mesh without backlash at the reference center distance
\[ a=\frac{d_1+d_2}{2}=\frac{m(z_1+z_2)}{2}. \]With shift, the teeth become thicker or thinner, and the gears have to move apart or together until the flanks touch on both sides again. The circles that now roll on each other are the working pitch circles with diameter \(d_w\), and the line of action is inclined by the working pressure angle \(\alpha_w\) with \(d_w=d_b/\cos\alpha_w\).
The condition for zero backlash is that the two tooth thicknesses on the working pitch circles add up to exactly one working pitch: \(s_{w1}+s_{w2}=\pi d_{w1}/z_1\). Inserting \(s_y\) from above with \(\alpha_y=\alpha_w\), using \(d_{w}/d=\cos\alpha/\cos\alpha_w\) for both gears, and simplifying, all diameters cancel and only one equation remains:
\[ \operatorname{inv}\alpha_w=\operatorname{inv}\alpha+2\tan\alpha\,\frac{x_1+x_2}{z_1+z_2}. \]This has no closed-form inverse, so the generator solves it with Newton's method. The rest follows directly:
\[ a_w=a\,\frac{\cos\alpha}{\cos\alpha_w},\qquad y\,m=a_w-a,\qquad k\,m=(y-x_1-x_2)\,m. \]\(y\,m\) is the center distance modification. It is always a bit smaller than the sum of the shifts \((x_1+x_2)\,m\), because the teeth are inclined. If the tip circles were kept at \(d+2m(1+x)\), the bottom clearance would shrink below \(0.25\,m\). DIN 3960 therefore reduces both tip diameters by the tip shortening \(k\,m\le0\):
\[ d_a=d+2m(h_{aP}^*+x+k). \]Example: \(z_1=12\) with \(x_1=0.3\), \(z_2=30\) with \(x_2=0\), \(m=1\). The equation gives \(\alpha_w=22.02^\circ\), the center distance grows from \(21.000\) to \(a_w=21.286\,\mathrm{mm}\), so \(y=0.286\) and \(k=-0.014\). The tip shortening is only 14 µm here, but it grows quickly for larger shifts.
The same equation also works backwards. If the housing dictates a center distance, \(\alpha_w\) follows from \(\cos\alpha_w=a\cos\alpha/a_w\), and the equation gives the sum \(x_1+x_2\) that fills the gap. The generator then splits the sum between the two gears with a simplified balancing rule that gives the smaller gear more shift, so that both stay free of undercut and their tooth roots end up comparably strong.
Line of Action and Contact Ratio
Contact begins where the tip circle of the driven gear crosses the line of action, point \(A\), and ends where the tip circle of the driver crosses it, point \(E\). Between them lies the length of path of contact \(g_\alpha\). In the right triangles formed by each center, its base circle tangent point and a tip circle point, the distance from the tangent point to the tip circle is \(\tfrac12\sqrt{d_a^2-d_b^2}\). Measured from \(T_1\) and \(T_2\), the two distances together overshoot the tangent length \(T_1T_2=a_w\sin\alpha_w\) by exactly the path of contact:
\[ g_\alpha=\frac12\left(\sqrt{d_{a1}^2-d_{b1}^2}+\sqrt{d_{a2}^2-d_{b2}^2}\right)-a_w\sin\alpha_w. \]Successive flanks follow each other along the line of action at a distance of one base pitch. The transverse contact ratio counts how many tooth pairs are in contact on average:
\[ \varepsilon_\alpha=\frac{g_\alpha}{p_b}. \]A value of 1.59, as for \(z_1=18\) and \(z_2=30\) in the figure, means that two tooth pairs share the load during 59 % of the time and one pair carries it alone for the rest. \(\varepsilon_\alpha\) must be greater than 1, or the next tooth pair is not engaged when the previous one leaves. In practice, at least 1.2 is required, because deflection, tip rounding and tolerances eat into the theoretical value. The generator warns below that limit. Positive shifts increase \(\alpha_w\) and shorten the path of contact: our shifted 12/30 pair has \(\varepsilon_\alpha=1.41\), compared to 1.64 for a standard 20/40 pair.
The path of contact must also lie between \(T_1\) and \(T_2\). If \(A\) were beyond \(T_1\), the tip of gear 2 would touch gear 1 below its base circle, where there is no involute. That is the meshing counterpart of undercut, and a gear generated without undercut generally avoids it with external partners of standard addendum, because no partner reaches farther along the line of action than the rack that cut it. The generator still checks every pair.
Backlash
A pair meshing without backlash at both flanks would jam from the slightest form error, thermal expansion or lubricant film. Real gear pairs have backlash: when one gear is held, the other can rotate by a small amount. On the working pitch circle this is the circumferential backlash \(j_t\); measured perpendicular to the flanks, along the line of action, it is the normal backlash
\[ j_n=j_t\cos\alpha_w\cos\beta_b. \]There are two ways to get it. The first is to make the teeth thinner than nominal. If each gear loses \(\Delta s\) on its working pitch circle, \(j_t=\Delta s_1+\Delta s_2\). This is the method of DIN 3967, which specifies tooth thickness allowances, and it is what the generator does: you enter \(j_n\), and both gears are thinned by half of it, measured along the line of action. The center distance then stays the theoretical \(a_w\), which is convenient for designing housings.
The second way is to increase the center distance by \(\Delta a\). Moving the line of action outwards opens a gap of \(\Delta a\sin\alpha_w\) on each side, so \(j_n\approx2\Delta a\sin\alpha_w\). This is useful as a correction on the workbench, but it also changes the bottom clearance and the contact ratio, so the generator keeps it as an explicit choice rather than a default.
Checking a Gear: Span Measurement
How do you verify the tooth thickness of a finished gear? The pitch circle is invisible, but a caliper or micrometer with flat jaws can be placed across \(k\) teeth. Flat jaws touch the flanks where the flank normal is perpendicular to the jaws. The normal of an involute is a tangent of the base circle, so both contact points lie on one base circle tangent, and the distance between them is an unrolled base circle arc: \(k-1\) base pitches plus one tooth thickness on the base circle. Taking \(s_b\) from the thickness formula at \(d_y=d_b\), where \(\operatorname{inv}\alpha_y=0\), gives the span measurement
\[ W_k=m\cos\alpha\left[(k-0.5)\pi+z\operatorname{inv}\alpha\right]+2x\,m\sin\alpha. \]It does not depend on the gear center at all, which makes it robust in the workshop. The number of spanned teeth should place the contact points near the middle of the flanks. Requiring the tangent point to lie on the circle \(d+2xm\) leads to
\[ k=\frac{z}{\pi}\left(\tan\alpha_M-\operatorname{inv}\alpha\right)-\frac{2x\tan\alpha}{\pi}+0.5, \qquad \cos\alpha_M=\frac{z\cos\alpha}{z+2x}, \]rounded to the nearest integer. For \(x=0\) this reduces to \(k=z\alpha/180^\circ+0.5\). For \(m=2\), \(z=20\): \(k=2.72\to3\) and \(W_3=15.321\,\mathrm{mm}\). With backlash, the measured value is smaller by the tooth thinning measured along the line of action.
Helical and Herringbone Gears
Twist the teeth of a spur gear into a helix of angle \(\beta\) on the reference cylinder, and you get a helical gear. Cut perpendicular to the axis, it still has involute teeth, only with transverse quantities. With \(m_n\) and \(\alpha_n\) defined in the normal section, as the cutter sees them:
\[ m_t=\frac{m_n}{\cos\beta},\qquad \tan\alpha_t=\frac{\tan\alpha_n}{\cos\beta},\qquad d=z\,m_t,\qquad \sin\beta_b=\sin\beta\cos\alpha_n. \]All spur formulas above hold with the transverse quantities, with the exception of the shift itself, which is defined in the normal section as \(x\,m_n\). Two external helical gears on parallel shafts must have opposite hands. Across the face width \(b\), the tooth turns by the angle
\[ \Delta\varphi=\frac{2b\tan\beta}{d}, \]which is the twist the generator applies when it extrudes a helical gear for 3D. A face width of 10 mm on a \(m_n=2\), \(z=20\), \(\beta=20^\circ\) gear gives \(d=42.567\,\mathrm{mm}\) and a twist of \(9.8^\circ\).
The reward for the twist is a second contact ratio. Contact moves not only along the profile but also across the face width, and the overlap ratio
\[ \varepsilon_\beta=\frac{b\sin\beta}{\pi m_n} \]adds to \(\varepsilon_\alpha\). The example has \(\varepsilon_\beta=0.54\). Helical gears run smoother and quieter because teeth enter the mesh gradually. Undercut also comes later: in the transverse section, the gear behaves like a bigger spur gear, and the limit becomes \(z_{\min}=2h_{aP}^*\cos\beta/\sin^2\alpha_t\).
The price is an axial force \(F_a=F_t\tan\beta\) that the bearings have to take. A herringbone gear joins a left-hand and a right-hand half, so the two axial forces cancel inside the gear. Herringbone gears are expensive to machine, but they are easy to print, and they also center each other axially.
Internal Gears and Their Interferences
An internal gear, or ring gear, has its teeth on the inside. Its tooth spaces have the shape of external teeth, so its flanks are concave involutes of the same base circle. With positive tooth counts and no shift, its tip circle is inside and its root circle outside the reference circle:
\[ d_a=d-2m,\qquad d_f=d+2.5\,m,\qquad a=\frac{m(z_2-z_1)}{2}. \]Internal meshes are compact, have a long path of contact and turn both gears in the same direction. They are also more prone to geometric conflicts, and the generator checks three of them:
- Tips inside the base circle. The ring's tip diameter must not be smaller than its base diameter, because there is no involute inside the base circle. With standard addendum, \(z(1-\cos\alpha)\ge2\), which means at least 34 teeth at \(20^\circ\). Smaller rings need shortened tips or a shift.
- Tip interference. The path of contact formula changes to \(g_\alpha=\frac12\left(\sqrt{d_{a1}^2-d_{b1}^2}-\sqrt{d_{a2}^2-d_{b2}^2}\right)+a_w\sin\alpha_w\), and as with external gears, contact must not start below the pinion's base circle.
- Trimming. If the tooth counts are too close, the tips of pinion and ring collide outside the line of action while they enter or leave the mesh. As a rule of thumb, the ring should have at least about 10 more teeth than the pinion at \(20^\circ\) and \(x=0\). The generator verifies the actual outlines and suggests a different tooth count or shift when they overlap.
Planetary Gear Sets
A planetary gear set puts a sun gear in the middle, several planets around it, an internal ring around them and a carrier that holds the planet axles. The planets mesh with sun and ring at the same time, so both meshes must have the same center distance. Without shift, \(m(z_s+z_p)/2=m(z_r-z_p)/2\), which gives
\[ z_r=z_s+2z_p. \]The ratios follow from a trick usually credited to Willis. Watch the set from the rotating carrier. In that frame, all axles stand still, and the set is an ordinary gear train: sun drives planet externally (reversing the direction) and planet drives ring internally (keeping it). The ratio from sun to ring in the carrier frame is therefore \(-z_r/z_s\). Converting speeds into the carrier frame means subtracting \(n_c\):
\[ \frac{n_s-n_c}{n_r-n_c}=-\frac{z_r}{z_s}. \]This one equation contains all operating modes. Holding one member fixed and solving for the other two gives:
- Ring fixed (\(n_r=0\)), sun in, carrier out: \(n_s/n_c=1+z_r/z_s\), the classic reduction.
- Sun fixed, ring in, carrier out: \(n_r/n_c=1+z_s/z_r\), a small reduction.
- Carrier fixed, sun in, ring out: \(n_s/n_r=-z_r/z_s\), a reversing fixed-axis train.
With \(z_s=21\), \(z_p=18\) and \(z_r=57\) from the figure, the ring-fixed ratio is \(1+57/21=3.714\).
Tooth counts satisfying \(z_r=z_s+2z_p\) are not yet enough. The planets also have to fit in.
Assembly condition. Insert the first planet, then turn the carrier by \(360^\circ/N\) while holding the ring. The first planet arrives where the second one belongs, and the sun has turned by \((360^\circ/N)(1+z_r/z_s)\). The second planet can be inserted in the same way as the first only if the sun teeth are now in the same position as before, i.e. if this angle is a whole number of sun tooth pitches. Multiplying by \(z_s/360^\circ\) gives
\[ \frac{z_s+z_r}{N}\in\mathbb{Z}. \]Neighbor condition. Planets with center distance \(a\) are \(2a\sin(\pi/N)\) apart. That must exceed the tip diameter of the planets, plus some clearance:
\[ 2a\sin\frac{\pi}{N}>d_{a,p}. \]For our set, \(z_s+z_r=78\), so \(N=2\), 3 and 6 can be assembled, while 4 and 5 cannot. With \(m=1\), \(a=19.5\,\mathrm{mm}\) and \(d_{a,p}=20\,\mathrm{mm}\), three planets are 33.8 mm apart and fit comfortably, but six planets would be only 19.5 mm apart and collide. The generator checks both conditions continuously and suggests the nearest valid sets when you change a tooth count.
With profile shift, \(z_r=z_s+2z_p\) is no longer mandatory. The two working center distances, from the external sun-planet mesh and from the internal planet-ring mesh, only have to be equal. For the internal pair, \(\operatorname{inv}\alpha_w=\operatorname{inv}\alpha+2\tan\alpha\,(x_r-x_p)/(z_r-z_p)\). This adds freedom to reach a specific ratio or to satisfy the assembly condition with an odd tooth count.
Differentials
A differential splits one input between two outputs that may turn at different speeds, like the wheels of a car in a curve. Its kinematic core is a planetary set whose fixed-carrier ratio is exactly \(-1\): seen from the carrier, the left output turns backwards exactly as fast as the right one turns forwards. Willis's equation with \(-1\) gives
\[ n_c=\frac{n_L+n_R}{2}. \]The carrier, driven by the input, turns at the average of both outputs. Driving straight, all parts turn together; in a curve, one wheel speeds up as much as the other slows down. In the 3D view, the turn slider changes exactly this speed difference.
Bevel differential. The classic design has two equal bevel side gears on the output shafts and two or four bevel pinions, the spider gears, on a cross pin in the carrier. Shaft angle \(\Sigma=90^\circ\). A bevel gear is cut from a cone instead of a cylinder; the two pitch cones touch along a line through their common apex. Their cone angles \(\delta\) follow from the tooth counts:
\[ \tan\delta_1=\frac{\sin\Sigma}{z_2/z_1+\cos\Sigma},\qquad\delta_2=\Sigma-\delta_1,\qquad R_e=\frac{d_{e2}}{2\sin\delta_2}=\frac{m_e}{2}\sqrt{z_1^2+z_2^2}\ \ (\Sigma=90^\circ). \]Everything shrinks linearly towards the apex, so the module \(m_e\) is defined at the outer end, the heel, and the face width is usually limited to \(b\le R_e/3\). The exact tooth flank of a bevel gear lives on a sphere, not on a plane. For the tooth shape, Tredgold's approximation unfolds the back cone, the cone perpendicular to the pitch cone at the heel, into a plane. On it, the teeth look like those of a spur gear with the virtual number of teeth
\[ z_v=\frac{z}{\cos\delta}. \]The generator builds this equivalent spur profile with the rack simulation described above and scales it towards the apex to obtain the 3D tooth. Undercut checks use \(z_v\). For spider gears with \(z_1=10\) and side gears with \(z_2=16\): \(\delta_1=32.0^\circ\), \(\delta_2=58.0^\circ\), \(z_{v1}=11.8\) and \(z_{v2}=30.2\). The pinions would undercut, so they receive a positive shift of about \(0.3\), and the side gears the same negative shift. Opposite shifts keep the cone angles and the cone distance unchanged. With \(m_e=1.5\), \(R_e=14.15\,\mathrm{mm}\), so the face should not exceed about 4.7 mm.
Spur-gear differential. The same \(-1\) ratio is possible with spur gears only. Two equal suns sit next to each other on the axis, each meshing with its own planets, and the planets mesh with each other in pairs in an axial middle zone where no sun is present. In the carrier frame, the chain sun, planet, planet, sun has three external meshes, each reversing the direction, and the tooth count ratios cancel, which gives exactly \(-1\). The partner planets are \(m\,z_p\) apart and both run on the circle of radius \(a=m(z_s+z_p)/2\), so the angle \(\varphi\) between them follows from \(2a\sin(\varphi/2)=m\,z_p\). This design is flat, has no bevel gears and is very well suited to 3D printing.
3D Printing and Laser Cutting Gears
The geometry above describes perfect parts. Printed and laser-cut gears are not perfect, and a few habits make the difference between a gearbox that turns freely and one that binds:
- Module. With a 0.4 mm nozzle, use \(m\ge1\). At \(m=1\), the tip of a standard tooth is only about 0.7 mm wide, which is less than two extrusion lines. For gears that transmit noticeable torque, \(m=1.5\) to 3 is more forgiving. Very small modules work with resin printers.
- Backlash. Plan the clearance from the start instead of sanding later. A normal backlash of 0.1 to 0.2 mm is a reasonable starting point for FDM; the right value depends on your printer, so print a test pair first. The generator applies it by thinning the teeth, so the shaft spacing stays at the nominal \(a_w\).
- Orientation. Print gears lying flat, with the axis vertical. The teeth are then formed by continuous perimeters in each layer, and the bending load at the tooth root acts within the layers instead of pulling them apart. Helical gears up to about \(30^\circ\) and herringbone gears print well in this orientation. Bevel gears print best with the back face on the bed.
- First layer. A squashed first layer, the elephant's foot, widens the teeth at the bottom and is a frequent cause of binding. A small chamfer or a slightly reduced first-layer flow helps.
- Bores and shafts. Printed holes tend to come out undersized. A D-flat or keyway transmits torque far better than friction on a round bore; drill or ream critical bores after printing.
- Material. PLA is stiff but creeps under constant load and softens when warm. PETG, nylon or other tougher filaments are better for gearboxes that run for longer periods. A little grease reduces wear and noise noticeably.
- Laser and CNC. The SVG and DXF exports are the exact outlines at 1:1 scale. A laser beam removes a kerf of typically 0.1 to 0.3 mm, so apply a kerf offset in your CAM software, or the teeth come out thinner than designed and the backlash increases accordingly.
References
- [ISO53]ISO, ISO 53:1998, Cylindrical gears for general and heavy engineering — Standard basic rack tooth profile.
- [ISO54]ISO, ISO 54:1996, Cylindrical gears for general engineering and for heavy engineering — Modules.
- [ISO21771]ISO, ISO 21771-1:2024, Cylindrical involute gears and gear pairs — Part 1: Concepts and geometry.
- [ISO23509]ISO, ISO 23509-1:2025, Bevel and hypoid gear geometry — Part 1: Basic methods.
- [DIN3960]DIN 3960:1987, Begriffe und Bestimmungsgrößen für Stirnräder (Zylinderräder) und Stirnradpaare (Zylinderradpaare) mit Evolventenverzahnung.
- [DIN867]DIN 867:1986, Bezugsprofile für Evolventenverzahnungen an Stirnrädern (Zylinderrädern) für den allgemeinen Maschinenbau und den Schwermaschinenbau.
- [DIN3967]DIN 3967:1978, Getriebe-Passsystem; Flankenspiel, Zahndickenabmaße, Zahndickentoleranzen; Grundlagen.
- [Willis]R. Willis, Principles of Mechanism, 1841: relative-motion method for epicyclic gear trains.
- [Tredgold]Tredgold's approximation: back-cone equivalent spur gear for bevel gear tooth profiles.