How it works
Enter the x, y and z parts of both vectors. The page shows the dot product, the angle between them, both lengths and the length of the cross product. Use z = 0 for flat vectors.
Formula
a .
b = ax x bx + ay x by + az x bz
cross = (ay x bz - az x by, az x bx - ax x bz, ax x by - ay x bx)
angle = arccos(dot / (length of a x length of b))
Sources
Example
Vector a, x: 3; Vector a, y: 4; Vector a, z: 0; Vector b, x: 1. Dot product: 11.00
Frequently asked questions
a = (3, 4, 0) and b = (1, 2, 2)?
The lengths are 5 and 3, the dot product is 11, so the angle is 42.83 degrees. The cross product is (8, -6, 2) and its length is 10.20.
What does a zero dot product tell you?
That the vectors are at right angles. A zero cross product means they point along the same line, or one of them has no length.