Speed is the rate of motion, or equivalently the rate of change of distance.
Speed is a scalar quantity with dimensions length/time; the equivalent vector quantity to speed is velocity. Speed is measured in the same physical units of measurement as velocity, but does not contain the element of direction that velocity has. Speed is thus the magnitude component of velocity.
In mathematical notation, if an object traveling at constant speed moves a distance x in time t, its speed, denoted by v, is simply given by
.In many situations, objects do not move at a constant speed. For example, if a car goes 120 miles in 4 hours, its average speed during that time is 30 miles per hour, but its instantaneous speed may have varied. For an object which is accelerating or decelerating, the instantaneous speed is given by
,where dx is the distance it travels in a very short period of time dt. If the object travels a total distance x in time t, its average speed over that time is given by
.