A vector is a mathematical object that has both magnitude (length) and direction. Vectors are used extensively to represent physical quantities such as displacement, velocity, acceleration, and force.