Vector Magnitude and Direction Calculator

Find a vector’s length, unit vector and direction.

Write 2 or 3 numbers, like (1, 2, 3).

Try

Result

You entered∣(1,1)∣\left|\left(1, 1\right)\right|

2\displaystyle \sqrt{2}

Decimal

1.414214\displaystyle 1.414214

Unit vector

(22,22)\displaystyle \left(\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right)

Direction

45∘\displaystyle 45^\circ
Show the work
  1. Magnitude of a vector

    Here u=(1,1)\mathbf{u} = \left(1, 1\right). Square each component, add the squares, then take the square root: this is the length of the arrow from the origin to the point.

    ∣u∣=u12+u22=12+12=1+1=2\begin{aligned} \left|\mathbf{u}\right| &= \sqrt{u_1^2 + u_2^2} \\ &= \sqrt{1^2 + 1^2} \\ &= \sqrt{1 + 1} \\ &= \sqrt{2} \end{aligned}
  2. Unit vector

    Dividing a vector by its own length gives a vector of length 1 that points the same way. Here u^\hat{\mathbf{u}} is that unit vector.

    u^=u∣u∣=12(1,1)=(22,22)\begin{aligned} \hat{\mathbf{u}} &= \frac{\mathbf{u}}{\left|\mathbf{u}\right|} \\ &= \frac{1}{\sqrt{2}}\left(1, 1\right) \\ &= \left(\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2}\right) \end{aligned}
  3. Reference angle

    The reference angle is the acute angle the vector makes with the x-axis. It uses the sizes of the components only, so signs are dealt with in the next step.

    θr=tan⁡−1(∣y∣∣x∣)=tan⁡−1(11)≈45∘\begin{aligned} \theta_r &= \tan^{-1}\left(\frac{|y|}{|x|}\right) \\ &= \tan^{-1}\left(\frac{1}{1}\right) \approx 45^\circ \end{aligned}
  4. Quadrant adjustment

    Both components are positive, so the vector is in quadrant I and the angle is the reference angle, 45∘45^\circ.

  5. Result

    So the magnitude is 2≈1.414214\sqrt{2} \approx 1.414214.

Worked examples