⟵ Back to projects

Two-Stage Spur Gearbox for an Electric Go-Kart

April 202610 min read

Two-Stage Spur Gearbox for an Electric Go-Kart cover

My independent project for the machine design course was a 20:1 two-stage spur gearbox for an electric go-kart. Most requirements came straight out of Shigley’s Mechanical Engineering Design textbook.

  • Shaft first: found the spot fatigue punishes hardest, gear 3, and sized the shaft there with DE-Goodman. The gear bore clears the math by 0.77 mm.
  • Module 4, 16/64/20/100 teeth: torque climbs from 315 to 6,300 inch-pounds.
  • Every check passed with margin: shaft fatigue at FOS of 2.06 against a 1.5 target, AGMA tooth checks, bearings good for 91 million revolutions, keys at FOS of 6.4 or higher.
  • Twelve MATLAB files, one master file controls them all. Change a tooth count and every safety factor regenerates.

Design for the worst spot in the machine first. Let that decision drive everything else.

Context

My final project for ME 354, Purdue’s machine design course (Spring 2026). Machine design is sizing real parts so they carry their loads for a lifetime without breaking. Every equation ran straight out of Shigley’s Mechanical Engineering Design, the thousand-page brick that has been settling “will this shaft break” arguments since 1963 (iykyk).

The task was to design the gear train that powers one wheel of an electric go-kart. A gearbox trades speed for twist the same way bike gears do. The motor spins fast but gently, while the wheel needs to turn slower with far more torque. Here are the specs:

Overall gearbox layout with the four gears and three shafts
Input shaft up top, intermediate in the middle, output down bottom.

Where to start? The obvious move is to pick the gears first and hope the shaft cooperates. But the shaft is the part fatigue kills, the way a paperclip snaps after enough bending back and forth. A spinning shaft bends slightly on every revolution, millions of times a day. So I found the spot the loads punish hardest, sized it to last forever, and let that decision drive the gear selection.

Picking the Module and Teeth

The 20:1 reduction splits into two stages of spur gears, 4:1 then 5:1. Torque climbs from 315 inch-pounds at the input to 6,300 at the output. That is 525 lb·ft, more twist than the V8 in a typical full-size pickup makes.

Gear teeth come in standard sizes called the module, in millimeters. Bigger module, beefier teeth. I compared modules 3 and 4 at the gear-3 seat, the patch of shaft that gear clamps onto:

Module m (mm)Gear-3 force (lbf)First-pass shaft diameter (mm)
3106736.5
480033.7

Module 4 wins. Bigger teeth means a larger gear that pushes at a wider radius with less force. Less force means less shaft, which keeps the gearbox shallow. Those diameters are early screening estimates. The real number comes out smaller once the shaft layout is pinned down.

Final tooth counts ended up at 16/64/20/100, every one above Shigley’s interference floor, the rule that keeps small gears from gouging each other as they roll. Three of the four are stock MISUMI catalog parts. Gear 3 came with induction-hardened teeth, for reasons about to become obvious. Gear 4, at 100 teeth, would be made in-house.

Sizing the Intermediate Shaft

The 12-in shaft carries two gears, two bearings, and the shoulders, keys, and retaining rings that lock each part in place. Mechanically, it is a plank across two sawhorses, held up by a bearing at each end and pushed on by the gears in the middle. I split the gear forces into vertical and horizontal components, solved each direction, then recombined them.

Free-body diagram of the intermediate shaft in both planes The driving push (top) spins the shaft while the separating push (bottom) shoves the gears apart. Torque enters at one gear and leaves at the other. Only the stretch between them carries torque.

Add up the bending from the driving push (1040 in·lbf) and the separating push (290). Everything points at one spot:

M3=10402+2902=1080 in⋅lbfM_3 = \sqrt{1040^2 + 290^2} = 1080 \text{ in·lbf}

Gear 3 is the critical location. It takes the hardest bend and the full twist at once. If the shaft survives here, it survives everywhere.

Resultant bending moment diagram peaking at gear 3 Combined bending moment along the shaft. The peak sits right at the gear-3 seat, marked critical.

From that load, the DE-Goodman equation returns the thinnest shaft that reaches infinite life. Infinite life means it never fails from fatigue, no matter how many times it spins:

d=[16 nfπ(2KfMSe+3 KfsTSut)]1/3d = \left[\frac{16\,n_f}{\pi}\left(\frac{2K_f M}{S_e} + \frac{\sqrt{3}\,K_{fs}T}{S_{ut}}\right)\right]^{1/3}

I needed 31.23 mm. The catalog gear’s bore, the hole through its center, is 32 mm. That is 0.77 mm of margin, which is tight on purpose. The bore only has to clear the math. Every millimeter of extra shaft diameter ripples outward into bigger bearings and a deeper gearbox.

Sharp corners concentrate stress, so every key slot, shoulder step, and ring groove got its own Neuber-corrected check. The worst is the gear-3 key slot at nf=2.06n_f = 2.06, about twice its design load and comfortably past the 1.5 target.

Verifying the Whole Thing

The shaft is only one part. Everything pressed, keyed, or meshed onto it gets its own check:

All of it is scripted in twelve MATLAB files under one master run file. Change a tooth count and every force, safety factor, and diagram downstream regenerates. When early gear candidates failed the shaft check, which happened more than once, the re-run took seconds instead of an evening of tedious recalculations.

Bringing It Into CAD

Every dimension in the drawings, down to each rounded corner and key slot, traces back to a number above.

2D dimensioned assembly drawing of the full intermediate shaft with all components
Full intermediate-shaft assembly: gears, bearings, keys, and rings positioned along the 12-in span.

2D dimensioned drawing of the full intermediate shaft The bare shaft, fully dimensioned, with stepped diameters, keyways, ring grooves, and bearing shoulders.

3D CAD assembly of the four-gear train
The gear train assembled in 3D. Each gear on its shaft, bearings in green, retaining rings in blue.

Results

Every check, in one table. nfn_f is the shaft fatigue safety factor, SFS_F and SHS_H the AGMA factors for tooth bending and surface stress, L10L_{10} the revolutions 90% of bearings survive. A FOS of 1.0 survives on paper. Everything here clears with room:

CheckRequirementResult
Total ratio20:14 × 5 = 20
Shaft fatiguenf≥1.5n_f \geq 1.52.06 at gear 3
AGMA bendingSF≥1S_F \geq 1≥ 2.55
AGMA contactSH≥1S_H \geq 1≥ 1.19
Bearing lifeL10>106L_{10} > 10^6 rev91 Mrev (609 h)
Key stressn≥1.5n \geq 1.5≥ 6.4

What I’d Change Next Time

The Ultimate Takeaway

Find the one spot in the machine that has it worst and design for it first. Here that was gear 3. I sized the shaft there, the bore cleared by 0.77 mm, and every downstream check passed with room to spare. Shigley has an equation for every way a part can fail. The design work is knowing which one to run first.