Home Math Vector Calculator (Dot, Cross, Angle)

Vector Calculator (Dot, Cross, Angle)

Dot product, cross product length, magnitudes and the angle between two 3D vectors.

Advertisement

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.

Advertisement

Formula

length of a = square root of (x squared + y squared + z squared)
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.

Advertisement

Related calculators

Percentage Calculator

Find a percent of a number, what percent one number is of another, and percent change, all at once.

Fraction Calculator

Add, subtract, multiply and divide fractions, with the answer simplified.

Scientific Calculator

Online scientific calculator with trig, logs, powers, roots, factorial and degree or radian mode.

Quadratic Formula Calculator

Solve ax² + bx + c = 0, with the discriminant and the vertex.