Skip to content

Cross Product Calculator (3D Vectors)

A × B in 3D with the determinant steps, parallelogram and triangle area, unit normal and an orthogonality check.

Your details

Input

Results update as you type

Cross product A × B

(−6, 17, −8)

Magnitude |A × B| = parallelogram area
19.7230829233
Parallelogram area (exact)
√389
Triangle area (half)
9.8615414617
Triangle area (exact)
√389/2
Unit normal vector
(−0.304212, 0.861934, −0.405616)
Unit normal (exact)
(−6√389/389, 17√389/389, −8√389/389)
Angle between the vectors
133.93023 °
Orthogonality check
A · (A × B) = 0 and B · (A × B) = 0: the result is perpendicular to both vectors.

Step-by-step solution
  1. Determinant: A × B = |i j k ; −1 2 5 ; 4 0 −3|
  2. i component: 2 × (−3) − 5 × 0 = −6
  3. j component: −((−1) × (−3) − 5 × 4) = 17
  4. k component: (−1) × 0 − 2 × 4 = −8
  5. Magnitude: |A × B| = √((−6)² + 17² + (−8)²) = √389 = √389 ≈ 19.723083
  6. Triangle area: |A × B| / 2 = √389/2 ≈ 9.861541
  7. Unit normal: A × B / |A × B| = (−6√389/389, 17√389/389, −8√389/389)
  8. Check: A · (A × B) = 0, B · (A × B) = 0

The cross product a⃗×b⃗\vec a \times \vec b takes two vectors in space and returns a third vector that is perpendicular to both. Its length equals the area of the parallelogram spanned by the two vectors, and its direction follows the right-hand rule. That makes it the standard tool for finding a normal vector to a plane, the area of a triangle in 3D, the torque of a force or the axis of a rotation.

Enter the components of a⃗\vec a and b⃗\vec b, or three points PP, QQ, RR, and the calculator expands the 3×33 \times 3 determinant term by term. You get the cross product, its magnitude (the parallelogram area), half of it (the triangle area), the unit normal vector, the angle between the vectors, and a check that the result really is orthogonal to both inputs. With whole-number components every answer is also given in exact form, such as 363\sqrt{6} or 66\frac{\sqrt{6}}{6}.

For magnitudes, dot products, angles and projections in 2D or 3D, use the vector calculator.

How to use this calculator

  1. Choose Two vectors to enter a⃗\vec a and b⃗\vec b directly, or Three points to work with the triangle PQRPQR (the calculator then uses PQ→\overrightarrow{PQ} and PR→\overrightarrow{PR}).
  2. Type the xx, yy and zz components. Fractions can be entered as decimals (0.5), negative values are fine.
  3. Read a⃗×b⃗\vec a \times \vec b, or the triangle area in point mode.
  4. Open the steps to see the determinant expanded along the first row, the magnitude and the unit normal.
  5. If you get the zero vector, the vectors are parallel or the points are collinear; the calculator says so.

The formula

For a⃗=(a1,a2,a3)\vec a = (a_1, a_2, a_3) and b⃗=(b1,b2,b3)\vec b = (b_1, b_2, b_3), expand the symbolic determinant along its first row:

a⃗×b⃗=∣ijka1a2a3b1b2b3∣=(a2b3−a3b2) i−(a1b3−a3b1) j+(a1b2−a2b1) k\vec a \times \vec b = \begin{vmatrix} \mathbf i & \mathbf j & \mathbf k \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} = (a_2 b_3 - a_3 b_2)\,\mathbf i - (a_1 b_3 - a_3 b_1)\,\mathbf j + (a_1 b_2 - a_2 b_1)\,\mathbf k

Its magnitude is linked to the angle θ\theta between the vectors:

∥a⃗×b⃗∥=∥a⃗∥ ∥b⃗∥sin⁡θ=area of the parallelogram\|\vec a \times \vec b\| = \|\vec a\|\,\|\vec b\| \sin\theta = \text{area of the parallelogram}

so the triangle with sides a⃗\vec a and b⃗\vec b has area 12∥a⃗×b⃗∥\frac{1}{2}\|\vec a \times \vec b\|, and the unit normal is n^=a⃗×b⃗∥a⃗×b⃗∥\hat n = \frac{\vec a \times \vec b}{\|\vec a \times \vec b\|}. The result is orthogonal to both factors, a⃗⋅(a⃗×b⃗)=b⃗⋅(a⃗×b⃗)=0\vec a \cdot (\vec a \times \vec b) = \vec b \cdot (\vec a \times \vec b) = 0, and swapping the factors flips the sign: b⃗×a⃗=−(a⃗×b⃗)\vec b \times \vec a = -(\vec a \times \vec b).

Worked example

Compute a⃗×b⃗\vec a \times \vec b for a⃗=(2,3,4)\vec a = (2, 3, 4) and b⃗=(5,6,7)\vec b = (5, 6, 7).

  • i\mathbf i: 3×7−4×6=21−24=−33 \times 7 - 4 \times 6 = 21 - 24 = -3
  • j\mathbf j: −(2×7−4×5)=−(14−20)=6-(2 \times 7 - 4 \times 5) = -(14 - 20) = 6
  • k\mathbf k: 2×6−3×5=12−15=−32 \times 6 - 3 \times 5 = 12 - 15 = -3

So a⃗×b⃗=(−3,6,−3)\vec a \times \vec b = (-3, 6, -3), written (−3, 6, −3). Its magnitude is 9+36+9=54=36≈7.348\sqrt{9 + 36 + 9} = \sqrt{54} = 3\sqrt{6} \approx 7.348: that is the parallelogram area, and the triangle built on the two vectors has area 362≈3.674\frac{3\sqrt{6}}{2} \approx 3.674. Dividing by the magnitude gives the unit normal (−66,63,−66)\left(-\frac{\sqrt{6}}{6}, \frac{\sqrt{6}}{3}, -\frac{\sqrt{6}}{6}\right). Check: 2(−3)+3(6)+4(−3)=02(-3) + 3(6) + 4(-3) = 0.

Direction: the right-hand rule

Point the fingers of your right hand along a⃗\vec a and curl them towards b⃗\vec b: your thumb points along a⃗×b⃗\vec a \times \vec b. For the basis vectors, i×j=k\mathbf i \times \mathbf j = \mathbf k, j×k=i\mathbf j \times \mathbf k = \mathbf i and k×i=j\mathbf k \times \mathbf i = \mathbf j, while reversing any pair gives the negative. The cross product is therefore not commutative, and it is not associative either: (i×i)×j=0⃗(\mathbf i \times \mathbf i) \times \mathbf j = \vec 0 but i×(i×j)=−j\mathbf i \times (\mathbf i \times \mathbf j) = -\mathbf j. It only exists in three dimensions; in 2D the closest equivalent is the scalar a1b2−a2b1a_1 b_2 - a_2 b_1, the k\mathbf k component, whose absolute value is the parallelogram area.

Common uses

Problem How the cross product helps
Equation of a plane through PP, QQ, RR n⃗=PQ→×PR→\vec n = \overrightarrow{PQ} \times \overrightarrow{PR} gives the coefficients of ax+by+cz=dax + by + cz = d
Area of a triangle in space 12∥PQ→×PR→∥\frac{1}{2}\|\overrightarrow{PQ} \times \overrightarrow{PR}\|
Torque of a force τ⃗=r⃗×F⃗\vec\tau = \vec r \times \vec F, in newton-metres
Testing if vectors are parallel a⃗×b⃗=0⃗\vec a \times \vec b = \vec 0
Volume of a parallelepiped ∣a⃗⋅(b⃗×c⃗)∣|\vec a \cdot (\vec b \times \vec c)|, the scalar triple product

Frequently asked questions

How do you calculate a cross product?

Write the vectors as the second and third rows of a 3 × 3 determinant under i, j, k and expand along the first row: (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁). For (−1, 2, 5) × (4, 0, −3) this gives (−6, 17, −8).

What does the magnitude of the cross product mean?

It is the area of the parallelogram whose sides are the two vectors, |a||b| sin θ. Half of it is the area of the triangle with those sides, which is how you find the area of a triangle from the coordinates of its vertices in 3D.

Why is the cross product zero?

Because the vectors are parallel (sin θ = 0) or one of them is the zero vector. In point mode it means the three points lie on the same line, so the "triangle" has no area.

Is a × b the same as b × a?

No. They have the same length but opposite directions: b × a = −(a × b). Order matters, which is why the right-hand rule is stated for a specific order.

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

The dot product returns a number, |a||b| cos θ, that measures how much two vectors point the same way. The cross product returns a vector, of length |a||b| sin θ, perpendicular to both. A zero dot product means perpendicular; a zero cross product means parallel.

Sources

Last updated:

More Math calculators

People also use