Skip to content
CalcWorld

Browse all tools

Vector Cross Product Calculator

This vector cross product calculator finds A × B for two 3D vectors, a third vector at right angles to both, with each component worked out. For A = (3, −2, 5) and B = (1, 4, −1), A × B = (−18, 8, 14).

Sources: OpenStax Calculus Volume 3 Updated

Calculate the cross product of two 3D vectors. The cross product A × B produces a vector perpendicular to both A and B.

Vector A

Vector B

The cross product formula

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

Its length is |A × B| = |A| × |B| × sin θ, where θ is the angle between A and B. Both forms are in OpenStax Calculus.

How to calculate a cross product: (3, −2, 5) × (1, 4, −1)

  1. i component: (−2)(−1) − (5)(4) = 2 − 20 = −18.
  2. j component: (5)(1) − (3)(−1) = 5 + 3 = 8.
  3. k component: (3)(4) − (−2)(1) = 12 + 2 = 14.
  4. Write the result: A × B = (−18, 8, 14).
  5. Magnitude: √((−18)² + 8² + 14²) = √(324 + 64 + 196) = √584 ≈ 24.166.
Vector cross product example: A = (3, −2, 5) of length 6.164 and B = (1, 4, −1) of length 4.243 span a parallelogram with an angle of 112.48° and area 24.166, equal to |A × B| = √584.
The length of A × B equals the area of the parallelogram that A and B span, and its direction is straight out of that parallelogram.

Why the result is perpendicular to both vectors

Check with the dot product: (−18)(3) + (8)(−2) + (14)(5) = −54 − 16 + 70 = 0, and (−18)(1) + (8)(4) + (14)(−1) = −18 + 32 − 14 = 0. A dot product of 0 means a right angle, and the dot product calculator runs this check for any pair.

Every cross product has this property, which is why it is used to find the normal, the perpendicular direction, of a plane.

Order matters: B × A

Swapping the vectors flips the result: B × A = (18, −8, −14), the same length pointing the opposite way. The direction follows the right-hand rule: point your fingers along A, curl them toward B, and your thumb points along A × B, as described in Wikipedia's cross product article.

The length of the cross product is an area

|A × B| = 24.166 is the area of the parallelogram with sides A and B. Half of it, 12.083, is the area of the triangle with corners at the origin, A and B.

For a flat triangle with a known base and height, the triangle area calculator is simpler. For the angle between A and B and the other vector operations, use the vector calculator.

The 3D view under the results is a fixed-angle drawing, a rough guide to how A, B and A × B sit in space rather than a measured plot.

Questions about the cross product

How do you calculate a cross product?

For A = (a₁, a₂, a₃) and B = (b₁, b₂, b₃): A × B = (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁). Each component leaves out its own position and cross-multiplies the other two.

What is the difference between the dot product and the cross product?

The dot product gives a number that measures how much two vectors point the same way. The cross product gives a vector at right angles to both, whose length measures how much they point in different directions.

When is the cross product zero?

When the two vectors are parallel or one of them is zero. The angle between parallel vectors is 0° or 180°, and sin 0° = sin 180° = 0.

Sources