Cross Product Calculator

Cross Product Calculator

Growing AI Skill PRO

Enter Calculation

Formula

A→×B→=(AyBz−AzByAzBx−AxBzAxBy−AyBx)\vec{A} \times \vec{B} = \begin{pmatrix} {{\text{A}_y}}\,{{\text{B}_z}} - {{\text{A}_z}}\,{{\text{B}_y}} \\[0.4em] {{\text{A}_z}}\,{{\text{B}_x}} - {{\text{A}_x}}\,{{\text{B}_z}} \\[0.4em] {{\text{A}_x}}\,{{\text{B}_y}} - {{\text{A}_y}}\,{{\text{B}_x}} \end{pmatrix}
Show calculation steps (1)
  1. Magnitude of A × B

    ‖A→×B→‖=Cx2+Cy2+Cz2\left\| \vec{A} \times \vec{B} \right\| = \sqrt{ C_x^{2} + C_y^{2} + C_z^{2} }

    Magnitude of the cross product vector with components Cx, Cy, Cz

Usage stats

Advertisement

Results

Cross Product A × B
(-3, 6, -3)
vector perpendicular to both A and B
Component i (x) -3
Component j (y) 6
Component k (z) -3
Magnitude |A × B| 7.348469

Report an error on this page

What is the Cross Product?

The cross product of two three-dimensional vectors A and B produces a third vector that is perpendicular (orthogonal) to both. It is widely used in physics, engineering, and computer graphics to find torque, angular momentum, surface normals, and rotational axes. Unlike the dot product, which yields a scalar, the cross product yields a vector.

Two 3D vectors A and B with their cross product vector perpendicular to both
The cross product A \(\times\) B is a vector perpendicular to both A and B.

How to Use This Calculator

Enter the x, y, and z components of vector A and vector B. The calculator returns the three components of A \(\times\) B as well as the magnitude of the resulting vector. The result vector always points in the direction determined by the right-hand rule.

The Formula Explained

For A = (a₁, a₂, a₃) and B = (b₁, b₂, b₃):

$$\vec{A} \times \vec{B} = \begin{pmatrix} \text{A}_y\,\text{B}_z - \text{A}_z\,\text{B}_y \\[0.4em] \text{A}_z\,\text{B}_x - \text{A}_x\,\text{B}_z \\[0.4em] \text{A}_x\,\text{B}_y - \text{A}_y\,\text{B}_x \end{pmatrix}$$ The magnitude is $$\left\| \vec{A} \times \vec{B} \right\| = \sqrt{ C_x^{2} + C_y^{2} + C_z^{2} },$$ which also equals \(|A||B|\sin(\theta)\), the area of the parallelogram spanned by A and B.

Advertisement
Right hand rule showing fingers curling from vector A to vector B with thumb pointing along A cross B
The right-hand rule gives the direction of A \(\times\) B.

Worked Example

Let A = (1, 2, 3) and B = (4, 5, 6).

$$c_x = 2\cdot6 - 3\cdot5 = 12 - 15 = -3$$ $$c_y = 3\cdot4 - 1\cdot6 = 12 - 6 = 6$$ $$c_z = 1\cdot5 - 2\cdot4 = 5 - 8 = -3$$

So A \(\times\) B = (−3, 6, −3) with magnitude \(\sqrt{9 + 36 + 9} = \sqrt{54} \approx 7.348\).

Advertisement

Interpreting the Cross Product Result

The cross product \(\vec{C} = \vec{A}\times\vec{B}\) of two 3D vectors is another vector. It is defined only in three dimensions in this form. The calculator returns its three components and its magnitude.

Direction: the right-hand rule

Point the fingers of your right hand along \(\vec{A}\), then curl them toward \(\vec{B}\) through the smaller angle. Your thumb points along \(\vec{C}\). The result is perpendicular to the plane containing \(\vec{A}\) and \(\vec{B}\).

Magnitude and area

$$|\vec{A}\times\vec{B}| = |\vec{A}|\,|\vec{B}|\sin\theta$$

Here \(\theta\) is the angle between the vectors, from 0° to 180°. This magnitude equals the area of the parallelogram spanned by \(\vec{A}\) and \(\vec{B}\). Half of it is the area of the triangle with those two vectors as sides.

Orthogonality check

The result is orthogonal to both inputs, so \(\vec{A}\cdot\vec{C} = 0\) and \(\vec{B}\cdot\vec{C} = 0\). Computing these dot products is a quick way to catch arithmetic mistakes.

Zero result

If \(\vec{A}\times\vec{B} = \vec{0}\), then the vectors are parallel or antiparallel (collinear, \(\sin\theta = 0\)), or at least one of them is the zero vector. In that case there is no unique perpendicular direction and the parallelogram has zero area.

Order matters

The cross product is anti-commutative: \(\vec{B}\times\vec{A} = -(\vec{A}\times\vec{B})\). Swapping the inputs keeps the magnitude but reverses the direction, so every component changes sign.

Worked example

Let \(\vec{A} = (1, 2, 3)\) and \(\vec{B} = (4, 5, 6)\).

$$\vec{C} = \begin{pmatrix} 2\cdot 6 - 3\cdot 5 \\ 3\cdot 4 - 1\cdot 6 \\ 1\cdot 5 - 2\cdot 4 \end{pmatrix} = \begin{pmatrix} -3 \\ 6 \\ -3 \end{pmatrix}$$

  • Magnitude: \(\sqrt{(-3)^2 + 6^2 + (-3)^2} = \sqrt{54} \approx\) 7.348, which is the parallelogram area.
  • Triangle area: \(\tfrac{1}{2}\sqrt{54} \approx 3.674\).
  • Check: \(\vec{A}\cdot\vec{C} = -3 + 12 - 9 = 0\) and \(\vec{B}\cdot\vec{C} = -12 + 30 - 18 = 0\).
  • Swapped order: \(\vec{B}\times\vec{A} = (3, -6, 3)\).

Where it is used

  • Torque: \(\vec{\tau} = \vec{r}\times\vec{F}\). Its magnitude is largest when the force is perpendicular to the lever arm.
  • Surface normals: the cross product of two edge vectors of a polygon or triangle gives a normal vector. This is used in 3D graphics and geometry. Divide by the magnitude to get a unit normal.
  • Angular momentum: \(\vec{L} = \vec{r}\times\vec{p}\), where \(\vec{p}\) is the linear momentum.

FAQ

Is the cross product commutative? No. \(\vec{A} \times \vec{B} = -(\vec{B} \times \vec{A})\); swapping the order reverses the direction.

What if the vectors are parallel? The cross product is the zero vector, because \(\sin(0) = 0\).

Does it work in 2D? The cross product is defined for 3D vectors. For 2D vectors, set the z components to 0; the result will have only a z component.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators