Vector Magnitude, Direction & Comparison Calculator

Convert components, two points or magnitude and direction, then inspect the unit vector and optionally compare a second vector.

Enter your values

Calculations run on your device; inputs are not sent to our server.

Core result

Choose the information you actually have

Enter x and y components, two Cartesian points, or a magnitude and direction. The core result keeps components, length and the counterclockwise direction from the positive x-axis together, so you can check a conversion without switching tools.

Formula and decision comparison

For ⟨x,y⟩, magnitude is √(x²+y²), direction uses atan2(y,x), and the unit vector is ⟨x/|v|, y/|v|⟩. With a comparison vector B, the calculator reports A·B and the smaller angle from cos θ=(A·B)/(|A||B|), plus numerical parallel or perpendicular checks.

Independent checks

⟨3,4⟩ has magnitude 5, direction about 53.130102° and unit vector ⟨0.6,0.8⟩. From (−2,1) to (4,−7), the displacement is ⟨6,−8⟩ with magnitude 10 and direction about 306.869898°. Magnitude 10 at 210° gives approximately ⟨−8.660254,−5⟩. Comparing ⟨3,4⟩ with ⟨−4,3⟩ gives dot product 0 and 90°.

Input mistakes, interpretation and limits

A zero vector has magnitude zero but no direction or unit vector, so it is rejected. Direction is normalized to 0°–360°. This is a two-dimensional numerical calculator; it does not handle 3D cross products, coordinate reference systems, measurement uncertainty or physical units automatically.

Official source

OpenStax Algebra and Trigonometry 2e, Vectors defines component form, magnitude, direction and unit-vector relationships.

Unexpected result? Tell us the inputs and what you expected.