Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Linear Algebra

The Cross Product of Two Vectors Explained

By MathSolver Pro Editorial Team · Published

The cross product multiplies two vectors in three dimensions and returns a new vector perpendicular to both. Its length equals the area of the parallelogram the two vectors span, which makes it the standard tool for normal vectors, areas, torque and volumes.

What the cross product produces

The dot product turns two vectors into a number. The cross product, also called the vector product, turns two vectors into a third vector. It is defined only in three dimensions, and the result has two defining features. Its direction is perpendicular to both original vectors, and its length equals the area of the parallelogram they form:

∣a×b∣=∣a∣ ∣b∣sin⁡θ|\mathbf{a} \times \mathbf{b}| = |\mathbf{a}|\,|\mathbf{b}|\sin\theta

Here θ\theta is the angle between the vectors, from 0 to 180 degrees. Because the sine of 0 and 180 degrees is zero, parallel vectors always have a cross product of zero, and perpendicular vectors give the largest possible length for their sizes.

The component formula

For a=(a1,a2,a3)\mathbf{a} = (a_1, a_2, a_3) and b=(b1,b2,b3)\mathbf{b} = (b_1, b_2, b_3), the components are:

a×b=(a2b3−a3b2,  a3b1−a1b3,  a1b2−a2b1)\mathbf{a} \times \mathbf{b} = (a_2b_3 - a_3b_2,\; a_3b_1 - a_1b_3,\; a_1b_2 - a_2b_1)

That formula is hard to memorise, so most people use a symbolic determinant instead. Put the unit vectors i\mathbf{i}, j\mathbf{j} and k\mathbf{k} in the first row, then the components of a\mathbf{a} and b\mathbf{b}, and expand along the first row:

a×b=∣ijka1a2a3b1b2b3∣\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix}

Example 1: computing a cross product

  1. Let a=(2,3,4)\mathbf{a} = (2, 3, 4) and b=(5,6,7)\mathbf{b} = (5, 6, 7).
  2. i\mathbf{i} component: 3⋅7−4⋅6=21−24=−33 \cdot 7 - 4 \cdot 6 = 21 - 24 = -3.
  3. j\mathbf{j} component: 4⋅5−2⋅7=20−14=64 \cdot 5 - 2 \cdot 7 = 20 - 14 = 6. Using the determinant, this is the negative of 2⋅7−4⋅52 \cdot 7 - 4 \cdot 5, which is the same thing.
  4. k\mathbf{k} component: 2⋅6−3⋅5=12−15=−32 \cdot 6 - 3 \cdot 5 = 12 - 15 = -3.
  5. So a×b=(−3,6,−3)\mathbf{a} \times \mathbf{b} = (-3, 6, -3).
  6. Check with dot products: (−3,6,−3)⋅(2,3,4)=−6+18−12=0(-3, 6, -3) \cdot (2, 3, 4) = -6 + 18 - 12 = 0 and (−3,6,−3)⋅(5,6,7)=−15+36−21=0(-3, 6, -3) \cdot (5, 6, 7) = -15 + 36 - 21 = 0, so the result is perpendicular to both.

Always finish with the two dot product checks. They take seconds and catch nearly every sign error, especially in the middle component.

The right-hand rule and order

Two opposite directions are perpendicular to both vectors, and the right-hand rule picks one. Point the fingers of your right hand along a\mathbf{a}, curl them towards b\mathbf{b}, and your thumb points along a×b\mathbf{a} \times \mathbf{b}. For the standard unit vectors this gives 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}.

Reversing the order points your thumb the other way, so the cross product is anticommutative:

b×a=−(a×b)\mathbf{b} \times \mathbf{a} = -(\mathbf{a} \times \mathbf{b})

It is also not associative: (i×i)×j=0(\mathbf{i} \times \mathbf{i}) \times \mathbf{j} = \mathbf{0}, while i×(i×j)=i×k=−j\mathbf{i} \times (\mathbf{i} \times \mathbf{j}) = \mathbf{i} \times \mathbf{k} = -\mathbf{j}. It does distribute over addition, and scalars can be factored out, so (ka)×b=k(a×b)(k\mathbf{a}) \times \mathbf{b} = k(\mathbf{a} \times \mathbf{b}).

Areas of parallelograms and triangles

Because its length is a parallelogram's area, the cross product gives areas directly from coordinates. The vectors in Example 1 span a parallelogram of area ∣(−3,6,−3)∣=54≈7.35|(-3, 6, -3)| = \sqrt{54} \approx 7.35, and the triangle with those two sides has half that area, about 3.67.

Example 2: the area of a triangle in space

  1. Find the area of the triangle with corners P(1,0,0)P(1, 0, 0), Q(0,2,0)Q(0, 2, 0) and R(0,0,3)R(0, 0, 3).
  2. Edge vectors from PP: PQ→=(−1,2,0)\overrightarrow{PQ} = (-1, 2, 0) and PR→=(−1,0,3)\overrightarrow{PR} = (-1, 0, 3).
  3. PQ→×PR→=(2⋅3−0⋅0,  0⋅(−1)−(−1)⋅3,  (−1)⋅0−2⋅(−1))=(6,3,2)\overrightarrow{PQ} \times \overrightarrow{PR} = (2 \cdot 3 - 0 \cdot 0,\; 0 \cdot (-1) - (-1) \cdot 3,\; (-1) \cdot 0 - 2 \cdot (-1)) = (6, 3, 2).
  4. Its length is 36+9+4=7\sqrt{36 + 9 + 4} = 7, so the triangle's area is 72=3.5\frac{7}{2} = 3.5.

Normal vectors and equations of planes

A plane is determined by a point on it and a normal vector perpendicular to it. Since the cross product of two vectors lying in a plane is perpendicular to both, it is exactly such a normal. In Example 2, the vector (6,3,2)(6, 3, 2) is normal to the plane through PP, QQ and RR, so the plane has the equation 6x+3y+2z=d6x + 3y + 2z = d. Substituting P(1,0,0)P(1, 0, 0) gives d=6d = 6.

The plane is 6x+3y+2z=66x + 3y + 2z = 6, and QQ and RR also satisfy it: 3⋅2=63 \cdot 2 = 6 and 2⋅3=62 \cdot 3 = 6. The same idea is used constantly in 3D graphics, where every triangle of a model needs a normal vector to decide how it is lit and which side faces the camera.

Torque and other physics

Torque, the turning effect of a force, is a cross product: τ=r×F\boldsymbol{\tau} = \mathbf{r} \times \mathbf{F}, where r\mathbf{r} runs from the pivot to the point where the force acts. Its magnitude is ∣r∣ ∣F∣sin⁡θ|\mathbf{r}|\,|\mathbf{F}|\sin\theta.

Example 3: tightening a bolt

  1. A force of 40 newtons is applied to a wrench 0.3 metres from the bolt.
  2. Pushing perpendicular to the wrench gives the maximum torque, 0.3⋅40=120.3 \cdot 40 = 12 newton metres.
  3. Pushing at 60 degrees to the wrench gives 12sin⁡60∘≈10.412\sin 60^\circ \approx 10.4 newton metres. Pushing along the wrench gives zero, which is why that never loosens a bolt.

Angular momentum and the magnetic force on a moving charge are cross products too, and in each case the right-hand rule gives the direction of the result.

The scalar triple product and volume

Combining both products gives the scalar triple product a⋅(b×c)\mathbf{a} \cdot (\mathbf{b} \times \mathbf{c}), which equals the 3×33 \times 3 determinant with rows a\mathbf{a}, b\mathbf{b} and c\mathbf{c}. Its absolute value is the volume of the slanted box the three vectors span. For (1,0,0)(1, 0, 0), (0,2,0)(0, 2, 0) and (0,0,3)(0, 0, 3), the box is an ordinary rectangular box and the triple product is 1⋅2⋅3=61 \cdot 2 \cdot 3 = 6. A triple product of zero means the three vectors lie in one plane.

The cross product calculator computes cross products with every determinant step shown, and also reports areas and the angle between the vectors. Pair it with the dot product calculator to verify perpendicularity.

Distance from a point to a line

The area interpretation also solves a classic distance problem. Take a line through a point AA with direction vector u\mathbf{u}, and a point PP off the line. The parallelogram spanned by AP→\overrightarrow{AP} and u\mathbf{u} has area ∣AP→×u∣|\overrightarrow{AP} \times \mathbf{u}|, and since its base is ∣u∣|\mathbf{u}|, its height, which is the distance from PP to the line, is the area divided by the base.

For example, take the line through the origin in the direction (1,2,2)(1, 2, 2) and the point P(2,1,3)P(2, 1, 3). The cross product (2,1,3)×(1,2,2)=(−4,−1,3)(2, 1, 3) \times (1, 2, 2) = (-4, -1, 3) has length 26\sqrt{26}, and the direction vector has length 3, so the distance is 263≈1.70\frac{\sqrt{26}}{3} \approx 1.70. You can confirm this with a projection: the point is 14\sqrt{14} from the origin and its projection along the line has length 103\frac{10}{3}, and the Pythagorean theorem gives the same distance.

Common mistakes and practice

  • Forgetting the minus sign on the middle component when expanding the determinant.
  • Reversing the order of the vectors, which flips the direction of the answer.
  • Using the cross product's length as the triangle's area instead of half of it.
  • Trying to take the cross product of two-dimensional vectors without first adding a zero third component.

For practice, check that (1,0,0)×(0,1,0)=(0,0,1)(1, 0, 0) \times (0, 1, 0) = (0, 0, 1), which is the rule i×j=k\mathbf{i} \times \mathbf{j} = \mathbf{k}. Then confirm that (1,2,3)×(2,4,6)(1, 2, 3) \times (2, 4, 6) is the zero vector, since the second vector is twice the first. Finally, compute (1,1,0)×(0,1,1)(1, 1, 0) \times (0, 1, 1); you should get (1,−1,1)(1, -1, 1), and both dot product checks should come out to zero.

Why the formula gives a perpendicular vector

It is worth seeing why the component formula works rather than just trusting it. Dot the result with a\mathbf{a} itself: you get a1(a2b3−a3b2)+a2(a3b1−a1b3)+a3(a1b2−a2b1)a_1(a_2b_3 - a_3b_2) + a_2(a_3b_1 - a_1b_3) + a_3(a_1b_2 - a_2b_1). Expand the brackets and every term appears twice with opposite signs, so the total is exactly zero. The same cancellation happens when you dot with b\mathbf{b}. In determinant language, dotting with a\mathbf{a} replaces the row of unit vectors by a\mathbf{a}, producing a determinant with two equal rows, and such a determinant is always zero. Either way, the perpendicularity is built into the formula rather than being a coincidence of particular examples.

Frequently asked questions

Why does the cross product only work in three dimensions?

In three dimensions there is exactly one direction perpendicular to two non-parallel vectors, up to sign. In two dimensions there is none outside the plane, and in four or more there are too many to choose from. A related product exists in seven dimensions, but it lacks some familiar properties.

What does a cross product of zero mean?

The two vectors are parallel or one of them is the zero vector. They span no area, so the parallelogram collapses to a line segment.

Is a times b the same as b times a for the cross product?

No. Swapping the order reverses the direction: b×a=−(a×b)\mathbf{b} \times \mathbf{a} = -(\mathbf{a} \times \mathbf{b}). The length stays the same.

How do I find a vector perpendicular to two given vectors?

Take their cross product. Any nonzero multiple of the result is also perpendicular to both, so you can scale it to a convenient form.

How is the cross product different from the dot product?

The dot product returns a number that measures how aligned two vectors are and is largest when they are parallel. The cross product returns a vector perpendicular to both whose length is largest when they are perpendicular.

MathSolver Pro Editorial Team

Math content and review

Our editorial team writes every guide to explain the reasoning behind each method, not just the answer. Each worked example is checked against the site's own solver engines and automated tests before it is published, and articles are revised whenever a method or an exam format changes.