Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
A unit vector points in exactly the same direction as the original vector but has a magnitude (length) of exactly 1 — it captures pure "direction" with the size stripped away. This operation, called normalization, is used constantly in computer graphics and game development (surface normals for lighting calculations must be unit vectors), physics (expressing a force or velocity's direction independently of its strength), and robotics/navigation (representing heading direction for steering calculations).
How it works
Enter the vector's components (2D or 3D). The calculator first finds the vector's magnitude using the Pythagorean theorem, |v|=√(x²+y²(+z²)), then divides every component of the original vector by that magnitude. Because each component shrinks by the same factor, the resulting vector points in the identical direction but its new magnitude works out to exactly 1.
- Enter dimension.
- Enter vector — x.
- Enter vector — y.
- Enter vector — z (3D only).
- Click Calculate to see your results.
Examples
(3, 4)
|v|=√(9+16)=√25=5, so the unit vector is (3/5, 4/5) = (0.6, 0.8). Check: √(0.6²+0.8²)=√(0.36+0.64)=√1=1.
(1, 2, 2)
|v|=√(1+4+4)=√9=3, so the unit vector is (1/3, 2/3, 2/3) ≈ (0.333, 0.667, 0.667).
Common mistakes to avoid
- Dividing only some components by the magnitude instead of all of them.
- Computing the magnitude incorrectly by forgetting to square the components before summing.
- Trying to normalize the zero vector, which has no valid result.
- Assuming a unit vector must have all whole-number components — most unit vectors have decimal or irrational component values.