Cross Product Calculator

The cross product a × b of two 3D vectors is a new vector at right angles to both. Its length is the area of the parallelogram they span.

Vector a
Vector b

Answer

a × b

(0, 0, 6)

‖a × b‖ = area6
Angle a to b63.435°
b × a(0, 0, −6)
xyzaba × b

The shaded parallelogram has area ‖a × b‖ = 6. The cross product points straight out of it.

Why this answer

  1. x-component. Cover the x column, cross-multiply the rest: a₂b₃ − a₃b₂ = 0·0 − 0·2 = 0.
  2. y-component. a₃b₁ − a₁b₃ = 0·1 − 3·0 = 0.
  3. z-component. a₁b₂ − a₂b₁ = 3·2 − 0·1 = 6.
  4. Check it's perpendicular. (a × b)·a = 0 and (a × b)·b = 0. Both zero ✓
  5. Length. √(0² + 0² + 6²) = 6, which also equals ‖a‖‖b‖ sin θ.

Put it to use

Where it's used

  • Torque: τ = r × F, the twist from a force applied at a distance.
  • 3D graphics: surface normals for lighting come from crossing two edges of a triangle.
  • Right-hand rule: curl your fingers from a to b; your thumb points along a × b. Swapping the order flips it.
  • The angle between vectors comes from the Dot Product Calculator.

How it works

The cross product a × b takes two 3D vectors and returns a third vector at right angles to both. Its length equals the area of the parallelogram the two vectors span. Its direction follows the right-hand rule: curl your fingers from a to b, and your thumb points along a × b.

Enter the three components of a and b. The calculator finds each component of the result by covering one column and cross-multiplying the other two. It also shows the length ‖a × b‖, an angle between a and b, and b × a, which is the same vector pointing the other way.

The step-by-step section checks the answer by dotting a × b with a and with b. Both results are 0, which confirms the new vector is perpendicular to the originals. A 3D view lets you see all three vectors.

a × b = (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁)‖a × b‖ = ‖a‖ ‖b‖ sin θb × a = −(a × b)

Worked example: a = (2, 3, 4) and b = (5, 6, 7)

  1. x-component: 3 × 7 − 4 × 6 = 21 − 24 = −3.
  2. y-component: 4 × 5 − 2 × 7 = 20 − 14 = 6.
  3. z-component: 2 × 6 − 3 × 5 = 12 − 15 = −3.
  4. So a × b = (−3, 6, −3).
  5. Check: (−3)(2) + 6(3) + (−3)(4) = −6 + 18 − 12 = 0, so it is perpendicular to a.
  6. Length: √(9 + 36 + 9) = √54 ≈ 7.348, the area of the parallelogram.

Common mistakes

  • Swapping the order. b × a points the opposite way from a × b, so the order you enter matters.
  • Getting the middle component backward. It is a₃b₁ − a₁b₃, which is easy to flip.
  • Using the parallelogram area for a triangle. A triangle with sides a and b has half that area.
  • Expecting a cross product in 2D. It is defined for 3D vectors; set z = 0 to work with flat vectors.

Frequently asked questions

What does a cross product of zero mean?

The two vectors are parallel or one of them is the zero vector. Parallel vectors span no area, so the result has length 0.

How do I find the area of a triangle with the cross product?

Take half the length of a × b. With a = (2, 3, 4) and b = (5, 6, 7), the area is √54 ÷ 2 ≈ 3.674.

Can I take the cross product of 2D vectors?

Enter them with z = 0. The result points straight along the z-axis, and its z-component is a₁b₂ − a₂b₁. For example, (1, 0, 0) × (0, 1, 0) = (0, 0, 1).

How does the calculator find the angle between a and b?

The length of a × b gives sin θ, but an angle and its supplement share the same sine, so 60° and 120° look alike. The calculator also uses the dot product, whose sign tells acute from obtuse, so the angle it shows runs the full 0° to 180°.