Cross Product of Two Vectors: Formula, Rule, Examples

#Geometry
TL;DR
The cross product of two vectors $\mathbf{a}$ and $\mathbf{b}$ produces a third vector perpendicular to both, written $\mathbf{a} \times \mathbf{b}$, with magnitude $|\mathbf{a}||\mathbf{b}|\sin\theta$ and direction set by the right-hand rule. This article covers the formula, the determinant method of computing it, the right-hand rule, the area-of-a-parallelogram link, and how it differs from the dot product.
BT
Bhanzu TeamLast updated on June 15, 202611 min read

What Is the Cross Product of Two Vectors?

The cross product of two vectors $\mathbf{a}$ and $\mathbf{b}$, written $\mathbf{a} \times \mathbf{b}$, is a vector that is perpendicular to both $\mathbf{a}$ and $\mathbf{b}$, and therefore perpendicular to the plane they lie in. It is defined only in three dimensions. Its defining formula gives both its size and its direction at once:

$$\mathbf{a} \times \mathbf{b} = |\mathbf{a}|,|\mathbf{b}|\sin\theta ; \hat{\mathbf{n}},$$

where $|\mathbf{a}|$ and $|\mathbf{b}|$ are the magnitudes (lengths) of the two vectors, $\theta$ is the angle between them (the angle between two vectors, with $0 \le \theta \le \pi$), and $\hat{\mathbf{n}}$ is the unit vector perpendicular to both, pointing in the direction the right-hand rule selects.

Two parts are doing the work here. The number $|\mathbf{a}||\mathbf{b}|\sin\theta$ is the magnitude of the result, while the unit vector $\hat{\mathbf{n}}$ is the direction. A cross product is the rare operation where both the answer's size and its heading carry meaning.

The Cross Product Formula in Determinant Form

The $|\mathbf{a}||\mathbf{b}|\sin\theta$ form is the meaning, but it is awkward for actual numbers, you would need the angle first. When the vectors are given by components, the cross product is computed as a determinant. For

$$\mathbf{a} = a_1,\hat{\mathbf{i}} + a_2,\hat{\mathbf{j}} + a_3,\hat{\mathbf{k}}, \qquad \mathbf{b} = b_1,\hat{\mathbf{i}} + b_2,\hat{\mathbf{j}} + b_3,\hat{\mathbf{k}},$$

the cross product is the symbolic $3 \times 3$ determinant:

$$\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} & \hat{\mathbf{j}} & \hat{\mathbf{k}} \ a_1 & a_2 & a_3 \ b_1 & b_2 & b_3 \end{vmatrix}.$$

Expanding along the top row gives the component formula:

$$\mathbf{a} \times \mathbf{b} = (a_2 b_3 - a_3 b_2),\hat{\mathbf{i}} - (a_1 b_3 - a_3 b_1),\hat{\mathbf{j}} + (a_1 b_2 - a_2 b_1),\hat{\mathbf{k}}.$$

The middle term carries a minus sign, that alternating sign is the most-dropped detail in the whole computation. The determinant layout is what keeps the bookkeeping honest: each component is a small $2 \times 2$ cross-multiplication of the other two columns.

The Right-Hand Rule: Reading the Direction

The formula gives a vector, but there are always two perpendicular directions to a plane, straight up or straight down. The right-hand rule picks which one. Point the fingers of your right hand along $\mathbf{a}$, curl them toward $\mathbf{b}$ through the angle $\theta$, and your thumb points along $\mathbf{a} \times \mathbf{b}$.

This is why order matters. Swapping the inputs reverses the curl, so it flips the thumb:

$$\mathbf{b} \times \mathbf{a} = -(\mathbf{a} \times \mathbf{b}).$$

The cross product is anti-commutative, the opposite of ordinary multiplication, where $3 \times 4 = 4 \times 3$. With vectors, $\mathbf{a} \times \mathbf{b}$ and $\mathbf{b} \times \mathbf{a}$ have the same length but point in opposite directions.

Cross Product and the Area of a Parallelogram

The magnitude $|\mathbf{a}||\mathbf{b}|\sin\theta$ is not a random product, it is exactly the area of the parallelogram spanned by $\mathbf{a}$ and $\mathbf{b}$. Here is why, in one line of geometry rather than a memorised fact.

Lay $\mathbf{a}$ and $\mathbf{b}$ tail-to-tail; they span a parallelogram whose area is base times height. Take $|\mathbf{a}|$ as the base. The height is the perpendicular distance from the tip of $\mathbf{b}$ down to the base line, which is $|\mathbf{b}|\sin\theta$ (the vertical leg of the right triangle whose hypotenuse is $\mathbf{b}$). So:

$$\text{Area} = \text{base} \times \text{height} = |\mathbf{a}|,|\mathbf{b}|\sin\theta = |\mathbf{a} \times \mathbf{b}|.$$

Half of that, $\tfrac{1}{2}|\mathbf{a} \times \mathbf{b}|$, is the area of the triangle with sides $\mathbf{a}$ and $\mathbf{b}$. The cross product, then, is a machine that hands you an area and a perpendicular direction in a single stroke.

Cross Product vs Dot Product

The two ways to multiply vectors answer different questions, and confusing them is the most common stumble in all of vector algebra.

Feature

Dot product $\mathbf{a} \cdot \mathbf{b}$

Cross product $\mathbf{a} \times \mathbf{b}$

Result

A scalar (number)

A vector

Formula

$

\mathbf{a}

Zero when

Vectors are perpendicular ($\theta = 90°$)

Vectors are parallel ($\theta = 0°$ or $180°$)

Order

Commutative: $\mathbf{a} \cdot \mathbf{b} = \mathbf{b} \cdot \mathbf{a}$

Anti-commutative: $\mathbf{b} \times \mathbf{a} = -(\mathbf{a} \times \mathbf{b})$

Measures

How aligned two vectors are

How perpendicular they are (and the area they span)

A quick memory anchor: dot uses cosine and gives a number; cross uses sine and gives a vector. Parallel vectors have zero cross product (no area, $\sin 0 = 0$); perpendicular vectors have the largest cross product ($\sin 90° = 1$).

Where the Cross Product of Two Vectors Shows Up

The cross product is not an algebra exercise invented for tests. It is the natural language of anything that turns, twists, or needs a perpendicular direction, which is most of physics and a good deal of computer graphics.

  • Torque. The turning effect of a force is $\boldsymbol{\tau} = \mathbf{r} \times \mathbf{F}$, the cross product of the position arm and the force. This is the wrench from the opening: the bolt turns along the cross-product direction. Loosen a nut and you are computing a cross product with your hand.

  • Angular momentum and magnetic force. A charged particle in a magnetic field feels a force $\mathbf{F} = q,\mathbf{v} \times \mathbf{B}$, perpendicular to both its velocity and the field, which is why particles spiral in magnetic traps and why the Lorentz force bends beams in particle accelerators.

  • Surface normals in graphics. Every lit 3D surface needs a normal vector, the perpendicular telling the renderer which way the surface faces. Game engines compute it as the cross product of two edge vectors of each triangle. No cross product, no lighting.

  • Navigation and structures. Finding a direction perpendicular to a measured plane, the tilt of a satellite panel, the orientation of a bridge section, is a cross-product computation under the hood.

For a Class 12 student, the cross product is where vectors stop being arrows on paper and start describing how the physical world rotates.

Examples of the Cross Product of Two Vectors

The problems below build from a clean determinant computation up to an area application. The first uses small integers so the determinant pattern is visible; the later ones add the geometric meaning back in.

Example 1

Find $\mathbf{a} \times \mathbf{b}$ for $\mathbf{a} = 2\hat{\mathbf{i}} + 3\hat{\mathbf{j}} + \hat{\mathbf{k}}$ and $\mathbf{b} = \hat{\mathbf{i}} + 4\hat{\mathbf{j}} + 5\hat{\mathbf{k}}$.

Set up the determinant and expand along the top row:

$$\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} & \hat{\mathbf{j}} & \hat{\mathbf{k}} \ 2 & 3 & 1 \ 1 & 4 & 5 \end{vmatrix}.$$

$$\hat{\mathbf{i}},(3 \cdot 5 - 1 \cdot 4) - \hat{\mathbf{j}},(2 \cdot 5 - 1 \cdot 1) + \hat{\mathbf{k}},(2 \cdot 4 - 3 \cdot 1)$$

$$= 11,\hat{\mathbf{i}} - 9,\hat{\mathbf{j}} + 5,\hat{\mathbf{k}}.$$

The cross product is $11\hat{\mathbf{i}} - 9\hat{\mathbf{j}} + 5\hat{\mathbf{k}}$.

Example 2

Find $\mathbf{a} \times \mathbf{b}$ for $\mathbf{a} = \hat{\mathbf{i}} + 2\hat{\mathbf{j}} + 3\hat{\mathbf{k}}$ and $\mathbf{b} = 4\hat{\mathbf{i}} + 5\hat{\mathbf{j}} + 6\hat{\mathbf{k}}$.

A tempting shortcut is to multiply matching components, just as you might for a dot product, and write $(1 \cdot 4)\hat{\mathbf{i}} + (2 \cdot 5)\hat{\mathbf{j}} + (3 \cdot 6)\hat{\mathbf{k}} = 4\hat{\mathbf{i}} + 10\hat{\mathbf{j}} + 18\hat{\mathbf{k}}$. Test it against the definition: the cross product must be perpendicular to $\mathbf{a}$, so $\mathbf{a} \cdot (\mathbf{a} \times \mathbf{b})$ should be 0. But $(1)(4) + (2)(10) + (3)(18) = 78 \ne 0$. That non-zero check exposes the method as wrong, component-wise multiplication is not the cross product.

The fix is the determinant:

$$\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} & \hat{\mathbf{j}} & \hat{\mathbf{k}} \ 1 & 2 & 3 \ 4 & 5 & 6 \end{vmatrix} = \hat{\mathbf{i}},(12 - 15) - \hat{\mathbf{j}},(6 - 12) + \hat{\mathbf{k}},(5 - 8) = -3\hat{\mathbf{i}} + 6\hat{\mathbf{j}} - 3\hat{\mathbf{k}}.$$

Now the perpendicularity check passes: $(1)(-3) + (2)(6) + (3)(-3) = -3 + 12 - 9 = 0$. The cross product is $-3\hat{\mathbf{i}} + 6\hat{\mathbf{j}} - 3\hat{\mathbf{k}}$.

Example 3

Find the magnitude of $\mathbf{a} \times \mathbf{b}$ if $|\mathbf{a}| = 4$, $|\mathbf{b}| = 5$, and the angle between them is $30°$.

Use the magnitude form directly:

$$|\mathbf{a} \times \mathbf{b}| = |\mathbf{a}|,|\mathbf{b}|\sin\theta = 4 \cdot 5 \cdot \sin 30° = 20 \cdot \tfrac{1}{2} = 10.$$

The magnitude is $10$. (Here $\sin 30° = \tfrac{1}{2}$ is a standard value from the unit circle.)

Example 4

Find the area of the parallelogram whose adjacent sides are $\mathbf{a} = 3\hat{\mathbf{i}} + \hat{\mathbf{j}}$ and $\mathbf{b} = \hat{\mathbf{i}} + 2\hat{\mathbf{j}}$.

The area equals the magnitude of the cross product. With $a_3 = b_3 = 0$, only the $\hat{\mathbf{k}}$ component survives:

$$\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} & \hat{\mathbf{j}} & \hat{\mathbf{k}} \ 3 & 1 & 0 \ 1 & 2 & 0 \end{vmatrix} = (3 \cdot 2 - 1 \cdot 1),\hat{\mathbf{k}} = 5,\hat{\mathbf{k}}.$$

$$\text{Area} = |\mathbf{a} \times \mathbf{b}| = 5 \text{ square units}.$$

The parallelogram's area is $5$ square units.

Example 5

Find the cross product of the parallel vectors $\mathbf{a} = 2\hat{\mathbf{i}} + 4\hat{\mathbf{j}} + 6\hat{\mathbf{k}}$ and $\mathbf{b} = \hat{\mathbf{i}} + 2\hat{\mathbf{j}} + 3\hat{\mathbf{k}}$.

Notice $\mathbf{a} = 2\mathbf{b}$, so the vectors are parallel. Compute the determinant anyway:

$$\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} & \hat{\mathbf{j}} & \hat{\mathbf{k}} \ 2 & 4 & 6 \ 1 & 2 & 3 \end{vmatrix} = \hat{\mathbf{i}},(12 - 12) - \hat{\mathbf{j}},(6 - 6) + \hat{\mathbf{k}},(4 - 4) = \mathbf{0}.$$

The result is the zero vector, exactly as expected: parallel vectors span no parallelogram, so $\sin 0 = 0$ and the cross product vanishes.

Example 6

Find a unit vector perpendicular to both $\mathbf{a} = \hat{\mathbf{i}} + \hat{\mathbf{j}}$ and $\mathbf{b} = \hat{\mathbf{j}} + \hat{\mathbf{k}}$.

The cross product is perpendicular to both, so compute it, then divide by its length to get a unit vector.

$$\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} & \hat{\mathbf{j}} & \hat{\mathbf{k}} \ 1 & 1 & 0 \ 0 & 1 & 1 \end{vmatrix} = \hat{\mathbf{i}},(1 - 0) - \hat{\mathbf{j}},(1 - 0) + \hat{\mathbf{k}},(1 - 0) = \hat{\mathbf{i}} - \hat{\mathbf{j}} + \hat{\mathbf{k}}.$$

Its magnitude is $\sqrt{1^2 + (-1)^2 + 1^2} = \sqrt{3}$, so the unit vector is:

$$\hat{\mathbf{n}} = \frac{1}{\sqrt{3}}\left(\hat{\mathbf{i}} - \hat{\mathbf{j}} + \hat{\mathbf{k}}\right).$$

That unit vector is perpendicular to both $\mathbf{a}$ and $\mathbf{b}$.

Where Students Trip Up on the Cross Product of Two Vectors

Mistake 1: Treating the cross product like the dot product

Where it slips in: Multiplying matching components together and summing, or expecting a number instead of a vector.

Don't do this: Write $\mathbf{a} \times \mathbf{b} = a_1 b_1 + a_2 b_2 + a_3 b_3$ — that is the dot product, and it gives a scalar.

The correct way: The cross product returns a vector, computed by the determinant. The dot product gives a number ($\cos\theta$, alignment); the cross product gives a vector ($\sin\theta$, perpendicular direction and area).

Mistake 2: Dropping the middle minus sign

Where it slips in: Expanding the $3 \times 3$ determinant along the top row.

Don't do this: Write all three cofactors with a plus sign: $+\hat{\mathbf{i}}(\ldots) + \hat{\mathbf{j}}(\ldots) + \hat{\mathbf{k}}(\ldots)$.

The correct way: The signs alternate $+, -, +$, so the $\hat{\mathbf{j}}$ term is subtracted. The second-guesser, the student who expands correctly then "fixes" the minus back to a plus because it looks odd, loses the mark right here. Keep the minus and the perpendicularity check ($\mathbf{a} \cdot (\mathbf{a} \times \mathbf{b}) = 0$) will confirm the answer.

Mistake 3: Getting the direction backwards (order of the vectors)

Where it slips in: Computing $\mathbf{b} \times \mathbf{a}$ when the problem asked for $\mathbf{a} \times \mathbf{b}$, or curling the left hand.

Don't do this: Assume the order does not matter, as it would for ordinary multiplication.

The correct way: The cross product is anti-commutative: $\mathbf{b} \times \mathbf{a} = -(\mathbf{a} \times \mathbf{b})$. Same length, opposite direction. Use the right hand, fingers along the first vector, curling to the second.

Key Takeaways

  • The cross product of two vectors gives a vector perpendicular to both, with magnitude $|\mathbf{a}||\mathbf{b}|\sin\theta$.

  • Compute it from components with the $3 \times 3$ determinant, keeping the middle ($\hat{\mathbf{j}}$) term negative.

  • The right-hand rule fixes the direction, and the order matters: $\mathbf{b} \times \mathbf{a} = -(\mathbf{a} \times \mathbf{b})$.

  • The magnitude equals the area of the parallelogram spanned by the two vectors.

  • The dot product (scalar, $\cos\theta$, alignment) and the cross product (vector, $\sin\theta$, perpendicular) answer different questions, do not mix them.

Practice These Problems to Solidify Your Understanding

  1. Find $\mathbf{a} \times \mathbf{b}$ for $\mathbf{a} = \hat{\mathbf{i}} - \hat{\mathbf{j}} + 2\hat{\mathbf{k}}$ and $\mathbf{b} = 2\hat{\mathbf{i}} + \hat{\mathbf{j}} - \hat{\mathbf{k}}$.

  2. Find the area of the triangle with sides $\mathbf{a} = 2\hat{\mathbf{i}} + 3\hat{\mathbf{j}}$ and $\mathbf{b} = \hat{\mathbf{i}} - \hat{\mathbf{j}}$.

  3. Find the magnitude of $\mathbf{a} \times \mathbf{b}$ if $|\mathbf{a}| = 6$, $|\mathbf{b}| = 2$, and $\theta = 90°$.

Answer to Question 1: expanding the determinant gives $-\hat{\mathbf{i}} + 5\hat{\mathbf{j}} + 3\hat{\mathbf{k}}$. Answer to Question 2: $\mathbf{a} \times \mathbf{b} = (2 \cdot (-1) - 3 \cdot 1)\hat{\mathbf{k}} = -5\hat{\mathbf{k}}$, so the parallelogram area is $5$ and the triangle area is $\tfrac{5}{2} = 2.5$ square units. Answer to Question 3: $6 \cdot 2 \cdot \sin 90° = 12$. If Question 1 gave you a single number, revisit Mistake 1, the cross product is a vector.

Want a live Bhanzu trainer to walk your child through vectors, the cross product, and 3D geometry? Book a free demo class — online globally.

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the cross product of two vectors?
The cross product of two vectors is a vector perpendicular to both inputs, written $\mathbf{a} \times \mathbf{b}$, with magnitude $|\mathbf{a}||\mathbf{b}|\sin\theta$ and direction given by the right-hand rule. It is defined only in three dimensions.
What is the difference between the cross product and the dot product?
The dot product gives a scalar ($|\mathbf{a}||\mathbf{b}|\cos\theta$) measuring alignment; the cross product gives a vector ($|\mathbf{a}||\mathbf{b}|\sin\theta,\hat{\mathbf{n}}$) that is perpendicular to both inputs and whose magnitude is the parallelogram's area.
Why is the cross product of two parallel vectors zero?
Because parallel vectors have angle $\theta = 0°$ (or $180°$), and $\sin 0° = 0$. Geometrically, parallel vectors span no parallelogram, so the area, and therefore the cross product's magnitude, is zero.
How does the right-hand rule work?
Point your right hand's fingers along the first vector, curl them toward the second through the angle between them, and your thumb points along $\mathbf{a} \times \mathbf{b}$. Swapping the order reverses the thumb.
How is the cross product used to find area?
The magnitude $|\mathbf{a} \times \mathbf{b}|$ equals the area of the parallelogram with sides $\mathbf{a}$ and $\mathbf{b}$. Half of it, $\tfrac{1}{2}|\mathbf{a} \times \mathbf{b}|$, is the area of the triangle with those two sides.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →