A goniometer is a medical instrument used to measure the range of motion of joints in the body. It typically consists of two arms with a rotating protractor that allows for accurate angle measurements.