Unplug the garage door opener unit's power cord from the power outlet.
Take off the cover from the garage door opener unit. This requires the removal of several screws using a Phillips head screwdriver.
Find the white sprocket and gear assembly at the top of the motor unit once you have removed the cover. Use your Phillips head screwdriver to take out the three screws holding this assembly in place. Lift the assembly out of the top of the motor unit.
Disengage the clip from the limit switch at the side of the unit by flipping the clip upward. Slide the edge of a flathead screwdriver under the clip to gain the appropriate leverage in order to flip the clip. Remove the gear beneath the clip, but take note of the position the switch was set in in relation to whether the garage door was opened or closed. This is important during reassembly.
Use your Phillips screwdriver to remove the screws holding the motor to the motor unit. Pull out the motor from the housing. This provides access to the drive gear.
Slide the drive gear off the shaft below where the motor unit was seated. Slide the replacement drive gear into place.
Follow your disassembly procedures in reverse to rebuild the unit. Ensure the limit switch is set in the same position as it was upon removal.