The Cross Product and the Right-Hand Rule

April 12, 2026

Problem

Visualize the cross product A × B and use the right-hand rule to determine its direction in 3D.

Explanation

The cross product of two 3D vectors A\vec A and B\vec B produces a third vector that is perpendicular to both. Its magnitude is:

A×B=ABsinθ|\vec A \times \vec B| = |\vec A|\,|\vec B|\sin\theta

— where θ\theta is the angle between A\vec A and B\vec B. Geometrically, this is the area of the parallelogram spanned by the two vectors. The direction is given by the famous right-hand rule: point your fingers along A\vec A, curl them toward B\vec B, and your thumb points in the direction of A×B\vec A \times \vec B.

The Component Formula

For A=(Ax,Ay,Az)\vec A = (A_x, A_y, A_z) and B=(Bx,By,Bz)\vec B = (B_x, B_y, B_z):

A×B=(AyBzAzBy,  AzBxAxBz,  AxByAyBx)\vec A \times \vec B = (A_y B_z - A_z B_y,\; A_z B_x - A_x B_z,\; A_x B_y - A_y B_x)

For 2D vectors lying in the xyxy-plane (so Az=Bz=0A_z = B_z = 0), the cross product is purely in the zz-direction:

(A×B)z=AxByAyBx(\vec A \times \vec B)_z = A_x B_y - A_y B_x

This single number is positive if the rotation from A\vec A to B\vec B is counterclockwise, negative if clockwise.

Step-by-Step Solution

Given: A=(3,1,0)\vec A = (3, 1, 0) and B=(1,2,0)\vec B = (1, 2, 0) (both in the xyxy-plane).

Find: A×B\vec A \times \vec B, its magnitude, and direction.


Step 1 — Compute the cross product component-by-component.

Using the formula above:

A×B=(AyBzAzBy,  AzBxAxBz,  AxByAyBx)\vec A \times \vec B = (A_y B_z - A_z B_y,\; A_z B_x - A_x B_z,\; A_x B_y - A_y B_x)

=((1)(0)(0)(2),  (0)(1)(3)(0),  (3)(2)(1)(1))= ((1)(0) - (0)(2),\; (0)(1) - (3)(0),\; (3)(2) - (1)(1))

=(0,  0,  5)= (0,\; 0,\; 5)

The result is purely in the +z+z direction (out of the screen).

Step 2 — Compute the magnitude.

A×B=02+02+52=5|\vec A \times \vec B| = \sqrt{0^{2} + 0^{2} + 5^{2}} = 5

Step 3 — Verify with the geometric formula.

First find the angle between A\vec A and B\vec B:

AB=(3)(1)+(1)(2)+0=5\vec A \cdot \vec B = (3)(1) + (1)(2) + 0 = 5

A=9+1=10,B=1+4=5|\vec A| = \sqrt{9 + 1} = \sqrt{10},\quad |\vec B| = \sqrt{1 + 4} = \sqrt{5}

cosθ=5105=550=552=12\cos\theta = \dfrac{5}{\sqrt{10}\sqrt{5}} = \dfrac{5}{\sqrt{50}} = \dfrac{5}{5\sqrt{2}} = \dfrac{1}{\sqrt{2}}

θ=45°\theta = 45°

Now verify:

ABsinθ=10512=50/2=25=5    |\vec A|\,|\vec B|\sin\theta = \sqrt{10}\sqrt{5} \cdot \dfrac{1}{\sqrt{2}} = \sqrt{50}/\sqrt{2} = \sqrt{25} = 5 \;\;\checkmark

Both methods give the same magnitude.

Step 4 — Right-hand rule for direction.

Point your right hand's fingers along A=(3,1,0)\vec A = (3, 1, 0). Curl them toward B=(1,2,0)\vec B = (1, 2, 0) — the curl is counterclockwise as seen from above. Your thumb points up out of the page, in the +z+z direction. ✓

The cross product is anti-commutative: B×A=A×B=(0,0,5)\vec B \times \vec A = -\vec A \times \vec B = (0, 0, -5), pointing into the page.

Step 5 — Geometric interpretation.

The magnitude 5 is also the area of the parallelogram spanned by A\vec A and B\vec B. (Think of it as base A|\vec A| times "height" Bsinθ|\vec B|\sin\theta — the perpendicular distance from B\vec B's tip to the line through A\vec A.)


Answer:

  A×B=(0,0,5),A×B=5  \boxed{\;\vec A \times \vec B = (0, 0, 5),\quad |\vec A \times \vec B| = 5\;}

The cross product is perpendicular to both A\vec A and B\vec B, points in the +z+z direction (out of the screen by the right-hand rule), and has magnitude equal to the area of the parallelogram they span.

Try It

  • Adjust the components of A and B with the sliders.
  • The visualization shows the parallelogram spanned by the two vectors with its area equal to A×B|\vec A \times \vec B|.
  • The HUD shows whether the cross product points OUT (+z) or INTO (−z) the screen, and computes the magnitude.
  • When you make A\vec A and B\vec B parallel, the cross product collapses to zero.

Interactive Visualization

Parameters

3.00
1.00
1.00
2.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
The Cross Product and the Right-Hand Rule | MathSpin