Magnitude of a vector calculator
Calculator
The calculator needs JavaScript. The tables below give the same numbers for common cases.
How it is worked out
- |v| = √(x² + y² + z²) = √(9 + 16 + 0) = √25 = 5.
- Divide each component by the magnitude to get the unit vector.
| Inputs | Answer |
|---|---|
| x component: 3; y component: 4; z component: 0 | The magnitude of (3, 4) is 5. |
| x component: 1; y component: 2; z component: 2 | The magnitude of (1, 2, 2) is 3. |
| x component: -5; y component: 12; z component: 0 | The magnitude of (-5, 12) is 13. |
How to use it
The magnitude (length) of a vector is √(x² + y² + z²), the Pythagorean theorem extended to three dimensions. Dividing each component by the magnitude gives the unit vector, a vector of length 1 pointing the same way.
For a 2D vector the direction is the angle from the positive x-axis, atan2(y, x). The zero vector has magnitude 0 and no direction.
Frequently asked questions
How do you find the magnitude of a vector?
Square each component, add them and take the square root.
What is a unit vector?
A vector of length 1 in the same direction, found by dividing by the magnitude.
What is the magnitude of (3, 4)?
5.
Method: standard arithmetic shown step by step; no outside data is used. Checked 2026-11-12.
About · How we verify this · Editorial policy · Corrections
General information only. Results are plain arithmetic on the numbers you enter; check anything important (money, health, school work) against your own records or the official source.