Vector Calculator (2D / 3D)
Magnitude, dot product, cross product, angle.
|A|
5.000
|B|
3.000
A · B (dot)
11.000
Angle between
42.83°
A × B (cross): (8.00, -6.00, 2.00)
A + B: (4.00, 6.00, 2.00)
A − B: (2.00, 2.00, -2.00)
Set z to 0 in both vectors for 2D math. Cross product is undefined in 2D, but 2D cross gives a scalar equal to the z component shown above. Useful for physics, graphics, and game programming.
About
Enter two vectors A and B in 2D or 3D. Get magnitudes, sum, difference, dot product, cross product, and the angle between them. For 2D, leave the z components at 0; the cross product's z entry is the 2D cross.
How to use
- Enter vector A.
- Enter vector B.
- Read magnitudes, dot, cross, angle.
FAQ
What if my vectors are 2D?+
Set z to 0 for both. The cross product's z component will give you the 2D cross (a scalar in 2D math).
Why is the angle between two parallel vectors 0?+
Because cos⁻¹(1) = 0. If they point opposite directions, you'll get 180°.