Installing a cotter pin prevents parts from backing out of or slipping off other parts. Standard, straight cotter pins, also called split cotter pins, have two straight prongs that are spread apart to keep other fasteners, such as bolts and nuts, in place. Cotter pins are sold with different diameters (sized for the hole in the bolt or other part that needs securing), head sizes (the head is the loop at one end of the pin) and prong lengths. The usable length of the cotter pin is measured from beneath the head to the end of the shorter prong. It's acceptable to use a pin that's too long because you can trim the prongs to an appropriate length, but a pin that's too short may not perform its job properly.

...
...

Step 1

Select the correct cotter pin size and material for your project. For instance, when installing a cotter pin where corrosion is a problem you may need to use stainless steel. Cotter pins come in a variety of materials including steel, stainless steel and copper. The pin should be the largest size possible for the hole to ensure that the pin will not wiggle in the bolt.

...

Step 2

Insert the cotter pin into the hole of the bolt until the head of the pin rests against the bolt.

...

Step 3

Secure the cotter pin by spreading the prongs in opposite directions, using pliers if desired.

...

Step 4

Use diagonal cutters to cut excess length from either prong, according to your application standards. Cutting the prongs to the correct length helps when it is time to replace the pin. Leaving excess prong length can lead to snagging injuries. However, the prongs must be long enough to prevent the pin from slipping back out through the bolt.