Enter two vectors to calculate their difference.
How to Use the Vector Subtraction Calculator
Enter the x, y, and z components of both vectors. Their difference (A − B) comes out below.
A − B = (Ax − Bx, Ay − By, Az − Bz)
Subtracting vectors is addition with the second vector flipped first — A − B is exactly the same as A + (−B), which is why reversing the order (B − A) always produces a result pointing the opposite direction with the same length, never something unrelated. Geometrically, A − B is the vector that points from B's tip to A's tip when both start at the same origin.