A coupling is a mechanical device that rigidly joins two rotating shafts together. There are three main types of couplings: rigid couplings for perfectly aligned shafts, flexible couplings for shafts with misalignment, and flange couplings which can transmit high torque capacities but do not tolerate misalignment or shocks/vibrations. Design of couplings involves calculating shaft diameters, sleeve/flange dimensions, key dimensions, and bolt diameters based on the transmitted power, material properties, and safety factors. Dimensional relationships and equations are used to check stresses in the various coupling components.