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
| Inputs | Result |
|---|---|
| x3y4z (0 for 2D)0 | Magnitude: 5Unit vector: (0.6, 0.8, 0)Angle from x-axis: 53.1301° |
Show 2 more examples
| x1y1z (0 for 2D)1 | Magnitude: 1.73205Unit vector: (0.57735, 0.57735, 0.57735)Angle from x-axis: 54.7356° |
| x5y12z (0 for 2D)0 | Magnitude: 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.
| y | Magnitude |
|---|---|
| 2 | 3.60555 |
| 2.5 | 3.90512 |
| 3 | 4.24264 |
| 3.5 | 4.60977 |
| 4starting value | 5 |
| 4.5 | 5.40833 |
| 5 | 5.83095 |
| 5.5 | 6.26498 |
| 6 | 6.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, z | Vector 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.