Enter a vector to calculate its unit vector and magnitude.
How to Use the Unit Vector Calculator
Enter the x, y, and z components of a vector. Its magnitude and unit vector — the same direction, scaled to length 1 — come out below.
|A| = √(Ax² + Ay² + Az²)
unit vector = (Ax ÷ |A|, Ay ÷ |A|, Az ÷ |A|)
Dividing every component by the vector's own length can't change which way it points — only how far it reaches — which is exactly why the result always has a magnitude of exactly 1. Unit vectors show up constantly in physics and graphics precisely because they isolate pure direction, with the "how much" and "how far" info stripped out and stored somewhere else instead.