Vector Magnitude and Direction Calculator

Find the magnitude, direction angle, and unit vector of a two-dimensional vector from its x and y components.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the Vector Magnitude and Direction Calculator

  1. Enter the x component, which is the horizontal part of the vector.
  2. Enter the y component, which is the vertical part of the vector.
  3. Read the magnitude, the angle from the positive x axis, and the unit vector.

Frequently asked questions

How do you find the magnitude of a vector?

For a vector (x, y), the magnitude is the square root of x squared plus y squared, which is the Pythagorean theorem applied to the components.

How do you find the direction angle of a vector?

Use the arctangent of y over x, taking the quadrant into account (atan2(y, x)). The angle is measured counterclockwise from the positive x axis. Negative results are usually shifted by 360 degrees to give a value from 0 to 360.

What is a unit vector?

A unit vector points in the same direction as the original vector but has a magnitude of 1. It is found by dividing each component by the magnitude.

Does the zero vector have a direction?

No. A zero vector has a magnitude of 0, so its direction is undefined.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.