A marking gauge, also known as a scratch gauge, is used in woodworking and metalworking to mark out lines for cutting or other operations. The purpose of the gauge is to scribe a line parallel to a reference edge or surface. It is used in joinery and sheetmetal operations. The gauge consists of a beam, a headstock, and a scribing or marking implement, typically a pin, knife, pen or wheel. The headstock slides along the beam, and is locked in place by various means: a locking screw, cam lever, or a wedge. The marking implement is fixed to one end of the beam.