Vector magnitude (norm) calculator
Enter three components to get the length of a vector.
anındahesapla Editör Ekibi · Updated:
Magnitude describes how far an arrow reaches from tail to tip. This calculator squares each component, adds those squares and takes a square root, returning one number for any vector in two or three dimensions.
Consider x = 3 with y = 4, while z stays at 0. Squaring and summing them, then rooting the total, gives 5. Physics students use this value to judge how strong a force is, geometry problems use it to measure distance between points, and graphics programmers rely on it before turning a direction into a unit vector. For a flat plane, leave z at 0. One tool therefore handles planar and spatial cases with no change in method.
Result
5
Vector magnitude: 5
Result in all units
Step-by-step solution
|v| = √(x²+y²+z²)
What vector magnitude means
Every vector carries two pieces of information: a direction and a size. Magnitude, also called the norm, captures only the size and ignores where the arrow points. Opposite arrows can share it. Because a sum of squares can never drop below zero, this value is always zero or positive, and it equals zero only when every component is zero.
Inputs here are the x, y and z components, each describing how far the vector travels along one axis of a coordinate system. Whatever unit those components use carries straight through to the answer, so a displacement measured in metres gives a magnitude in metres and a force in newtons gives a magnitude in newtons. In effect, the formula extends the right triangle hypotenuse rule into three dimensions. Signs vanish too. A negative component still adds a positive amount, since squaring removes its sign before anything is summed.
You will meet this calculation across many fields of study and work. Mechanics uses it for the speed behind a velocity vector or the strength of an acceleration. Electrical engineers apply it to field vectors when estimating how intense a field is at some location in space. Game and animation code measures how far an object sits from a target, then divides a direction vector by its own magnitude to normalise it. In data analysis, comparing or scaling feature vectors starts with knowing how long each one is.
How to calculate vector magnitude
Everything rests on one formula: |v| = √(x²+y²+z²). Plugging in 3 for x, 4 for y and 0 for z, substitution gives √(3² + 4² + 0²) = 5, which matches the hypotenuse of a right triangle whose legs measure 3 and 4. Follow these steps to check any result by hand.
- Type the x, y and z components into their fields.
- For a flat, two dimensional vector, enter 0 for z.
- Square each component and add the squares together.
- Take the square root of that sum to get |v|.
| x component | y component | z component | Magnitude |v| |
|---|---|---|---|
| 3 | 4 | 0 | 5 |
A frequent input slip involves mixing units across fields, for instance centimetres in one box while another holds metres. Convert first. Dividing any nonzero vector by its magnitude yields a unit vector (length one), which game engines and physics solvers use whenever only a heading is wanted and size would distort later steps.