Overview

A vector’s magnitude is its length. Its unit vector points the same way with a length of 1.

Enter the components; set z to 0 for two dimensions.

Worked examples

InputsResult
x3y4z (0 for 2D)0Magnitude: 5Unit vector: (0.6, 0.8, 0)Angle from x-axis: 53.1301°
Show 2 more examples
x1y1z (0 for 2D)1Magnitude: 1.73205Unit vector: (0.57735, 0.57735, 0.57735)Angle from x-axis: 54.7356°
x5y12z (0 for 2D)0Magnitude: 13Unit vector: (0.384615, 0.923077, 0)Angle from x-axis: 67.3801°

Magnitude by y

With the calculator's starting values, the magnitude is 5. The table shows how it changes with the y.

yMagnitude
23.60555
2.53.90512
34.24264
3.54.60977
4starting value5
4.55.40833
55.83095
5.56.26498
66.7082

Other inputs: x: 3 · z: 0 0 for 2D. Change them in the calculator above for your own numbers.

How it works

Magnitude = √(x² + y² + z²). Unit vector divides each component by the magnitude.

The formula

|v| = √(x² + y² + z²)
x, y, zVector components

Practical tips

  • (3, 4) has a magnitude of 5 and a unit vector of (0.6, 0.8).
  • Unit vectors are used to describe directions in physics and graphics.
  • The zero vector has no direction.

Frequently asked questions

What is normalizing?

Dividing a vector by its magnitude to get a unit vector.

How do I add vectors?

Add their components.