Want a Custom tool for Yourself?

Need a Custom Tool? We build custom tools that can save hours per employee per day.

Unit Vector Calculator

Convert a 2D or 3D vector into a unit vector and see its magnitude. Enter components and get the normalized direction as decimals.

Enter the Details

Enter the coordinates of the vector:





Result will appear here...


Last updated: May 11, 2026

Created by: Eon Tools Dev Team

Reviewed by: Okan Atalay



What this calculator does

A unit vector points in the same direction as a given vector but has a length of exactly 1. It is a vector's direction with its size stripped away, pure heading and nothing else. Turning a vector into one is called normalizing it, and that is what this does.

Enter a 2D or 3D vector and it returns the unit vector. It runs right here in the browser.

Using the calculator

  1. Enter the x and y components.
  2. Add a z component if your vector is 3D, or leave it blank for 2D.
  3. Press Calculate.

It returns the unit vector, its components given to four decimal places. Reset clears the boxes.

What a unit vector is

Think of a vector as carrying two pieces of information: which way it points, and how long it is. A unit vector keeps the first and throws away the second by fixing the length at 1. It is often written with a little hat, like â, to mark it out as normalized.

You have met them already, whether you knew it or not. The basic directions along the axes, often called i, j and k, are unit vectors: each points purely along one axis and has length 1. Any unit vector is just a custom version of those, pointing in whatever direction you like.

The formula: divide by the length

To normalize a vector, divide each of its components by its magnitude, its length:

â = v ÷ |v|

The logic is simple. The magnitude tells you how many times too long the vector is compared to 1, so dividing by it scales the whole thing down to exactly length 1, without touching the direction. Shrinking every component by the same factor keeps the arrow pointing precisely where it did.

A worked example

Normalize the vector (3, 4).

  1. Find its magnitude: √(3² + 4²) = √25 = 5.
  2. Divide each component by 5: (3 ÷ 5, 4 ÷ 5) = (0.6, 0.8).

Quick check that it really has length 1: 0.6² + 0.8² = 0.36 + 0.64 = 1, and the square root of 1 is 1. So (0.6, 0.8) points exactly where (3, 4) did, but is one unit long.

The one vector that has no unit vector

There is a single exception, and the tool will tell you about it: the zero vector (0, 0). It has no length and, more to the point, no direction, so there is nothing to normalize and no unit vector to give. It also shows up in the formula, since dividing by its magnitude would mean dividing by zero, which is not allowed. Every other vector, however, has exactly one unit vector.

Why you would normalize a vector

Normalizing matters whenever you care about direction but not size. In computer graphics, the direction a surface faces, its normal, is kept as a unit vector so that lighting calculations behave consistently. In physics and navigation, a heading is often a unit vector, with the actual speed or force multiplied in separately. And in many algorithms it is simply cleaner to separate "which way" from "how much", handling each on its own. A unit vector is how you hold onto the direction alone.

Questions people ask

What is a unit vector?

A vector with a length of exactly 1 that points in a given direction. It represents direction without size.

How do you normalize a vector?

Divide each component by the vector's magnitude. For (3, 4), whose magnitude is 5, that gives (0.6, 0.8).

How do I know it has length 1?

Square its components and add them, and you should get 1. For (0.6, 0.8): 0.36 + 0.64 = 1.

Does the zero vector have a unit vector?

No. The zero vector has no direction, and normalizing it would mean dividing by zero, so it is the one exception.

Why normalize at all?

To keep a direction without its size, which is useful in graphics, physics, navigation and many algorithms where direction and magnitude are handled separately.

References

A note on where this comes from. A unit vector is a vector normalized to length 1 by dividing it by its own magnitude, preserving direction while fixing size. The standard axis directions i, j and k are the basic unit vectors of ordinary space. For further reading, see Unit vector.

  1. The unit vector, â = v ÷ |v|, a vector of length 1 in the direction of v.


Okan Atalay

Okan Atalay is a results driven senior operations manager and a graduate of Industrial Engineering from Bilkent University. With over 22 years of experience in textile manufacturing and integrated operations, he has led large scale business process improvements and strategic planning initiatives. Currently, he serves as a top mathematics expert for a global ed tech platform, where he applies his analytical expertise to solve complex mathematical problems. At Eon Tools, he reviews converter and maths tools.