JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

Unit Vector Calculator

Normalize a nonzero 3D vector to unit length.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Unit vector. The example starts with Vector A: x = 3, Vector A: y = 4, Vector A: z = 0.

Unit Vector Calculator formula

Unit vector = A/|A|.

Inputs and units

Inputs and example values for Unit Vector Calculator
InputFormat / rangeExample
Vector A: xNumber3
Vector A: yNumber4
Vector A: zNumber0

Worked example

The values listed in Inputs and units give ⟨0.6, 0.8, 0⟩ for Unit vector.

Unit vector
⟨0.6, 0.8, 0⟩
Magnitude
5

Results and assumptions

Change Vector A: x from 3 to 3.3 and keep the other example inputs fixed. The updated answer is ⟨0.6363829548, 0.7713732785, 0⟩ (Unit vector).

Fix an input or unexpected result

Vector A: x is required. Enter vector a: x using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.