Vector Magnitude Calculator – Magnitude & Direction Angle from Components

Use this free Vector Magnitude Calculator to rebuild a vector from its components. Enter the x and y components and the calculator finds the magnitude (length) of the vector and its direction angle from the positive x-axis.

A x A y |A| θ

Formula

|A| = √(Ax² + Ay²)  and  θ = tan⁻¹(Ay / Ax)

How to use

Worked example

A vector has components Ax = 3 and Ay = 4. Magnitude = √(3² + 4²) = √25 = 5. Angle = tan⁻¹(4/3) = 53.13°.

FAQ

Why not just use tan⁻¹(Ay/Ax) on a normal calculator?
A plain arctan cannot tell quadrants apart — for example (−3, −4) gives the same ratio as (3, 4) but points the opposite way. This calculator uses the two-argument arctangent (atan2), so the angle is always in the correct quadrant.

Can the magnitude ever be negative?
No. A magnitude is a length, so it is always zero or positive, even when one or both components are negative.

What if both components are zero?
Then the vector is the zero vector: its magnitude is 0 and it has no direction, so no angle can be given.