Distance and displacement are two quantities that seem to mean the same but are distinctly different with different meanings and definition. Distance is the measure of “how much ground an object has covered” during its motion while displacement refers to the measure of how far out of place is an object.
Displacement is defined as the change in position of an object. It is a vector quantity and has a direction and magnitude.
Distance is a scalar quantity as it only depends upon the magnitude and not the direction.