Cross Product Calculator – A × B from 3D Components or AB sin θ

Use this free Cross Product Calculator in two ways: enter the 3D components of two vectors to get the full cross product vector A × B, or enter two magnitudes and the angle between them to get |A × B| = AB sin θ.

A B A × B

Formula

A × B = (AyBz − AzBy,  AzBx − AxBz,  AxBy − AyBx)  with magnitude  |A × B| = AB sin θ

How to use

Worked example

Let A = (1, 2, 3) and B = (4, 5, 6). A × B = (2×6 − 3×5,  3×4 − 1×6,  1×5 − 2×4) = (−3, 6, −3). Its magnitude is √(9 + 36 + 9) = √54 = 7.35.

FAQ

What direction does A × B point?
It is perpendicular to both A and B, in the direction given by the right-hand rule: point your fingers along A, curl them towards B, and your thumb points along A × B.

Does the order matter?
Yes — the cross product is anti-commutative: B × A = −(A × B). Swapping the vectors flips the direction, while the magnitude stays the same.

When is the cross product zero?
When the vectors are parallel or anti-parallel (θ = 0° or 180°, so sin θ = 0), or if either vector is the zero vector. This is why torque τ = r × F vanishes when the force acts along the lever arm.