To insert gears in Solidworks, you need to start Toolbox Add-Ins. If you don't know how to activate Add-Ins in Solidwoks, check this page.
If your version of Solidworks does not include the Toolbox Add-in, you can use the configurable gear for solidwork.
Once the Toolbox Add-in is started, open the assembly where gears are needed. At the right of the solidworks window, click on the Design Library tab.
Expand the following tree: Toolbox > ISO > Power Transmission > Gears in the library:
If you need other standards like ANSI, click the right standard in the menu instead of ISO. A selection of gear parts should appear at the bottom of the library. The menu is composed of helical gear, internal spur gear, rack, spur gear, straight miter gears, straight bevel gears and pinions:
Drag the gear you need and drop it in the assembly (Spur Gear is the most common). A new component should appear in your assembly. You now need to configure the gear:
On the left part of the window, you can configure the gear (module, number of teeth, pressure angle, shaft diameter... ). Let's illustrate this with the following parameters:
|Number of teeth||30|
|Nominale shaft diameter||30|
Confirm your configuration and here is the result: