Overview

The cross product of two 3D vectors gives a new vector perpendicular to both, and its length is the area of the parallelogram they span.

Enter both vectors.

Worked examples

InputsResult
A x1A y2A z3B x4B y5B z6A × B = (-3, 6, -3)Magnitude (parallelogram area): 7.34847Triangle area: 3.67423
Show 2 more examples
A x1A y0A z0B x0B y1B z0A × B = (0, 0, 1)Magnitude (parallelogram area): 1Triangle area: 0.5
A x2A y-1A z3B x0B y4B z5A × B = (-17, -10, 8)Magnitude (parallelogram area): 21.2838Triangle area: 10.6419

How it works

A × B = (AyBz − AzBy, AzBx − AxBz, AxBy − AyBx).

The formula

A × B = (AyBz − AzBy, AzBx − AxBz, AxBy − AyBx)
A, BThe two vectors

Practical tips

  • (1, 2, 3) × (4, 5, 6) = (−3, 6, −3), with a parallelogram area of 7.35.
  • Swapping the order flips the sign.
  • Parallel vectors give the zero vector.

Frequently asked questions

What direction does it point?

Use the right-hand rule.

Does it work in 2D?

Set both z components to 0; the result points along z.