A gear or gearwheel, also called a toothed wheel, is a rotating machine part typically used to transmit rotational motion or torque by means of a series of "teeth" that engage with compatible teeth of another gear or other part. The teeth can be integral saliences or cavities machined on the part, or separate pegs inserted into it. In the latter case, the gear is usually called a cogwheel. A cog may be one of those pegs or the whole gear. Two or more meshing gears are called a gear train.
The smaller member of a pair of meshing gears is often called pinion. Most commonly, gears and gear trains can be used to trade torque for rotational speed between two axles or other rotating parts or to change the axis of rotation or to invert the sense of rotation. A gear may also be used to transmit linear force or linear motion to a rack, a straight bar with a row of compatible teeth.