Tools · Calculators · Math Last update: Dec 3, 2026

Vector Calculator

Calculate with 2D and 3D vectors: magnitude, unit vector, dot product, cross product, the angle between two vectors and projection.

Dimensions
Show first
—

Everything for two vectors

For a = (2, 3, 4) and b = (5, 6, 7): |a| = √29 ≈ 5.3852, a · b = 56, a × b = (−3, 6, −3), the angle between them is about 7.4758° and the projection of a on b is (56/110) · b ≈ (2.5455, 3.0545, 3.5636).

2D or 3D

Switch to 2D for plane vectors. The cross product of two 2D vectors is given as the single number a₁b₂ − a₂b₁, the z-component of the 3D result.

Frequently asked questions

What is the difference between the dot and cross product?

The dot product is a number that measures how much two vectors point the same way; the cross product is a vector perpendicular to both.