Math

Cross product calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a cross product calculator?

A cross product calculator finds the vector that results from multiplying two three-dimensional vectors together using the cross (or vector) product. Unlike the dot product, which returns a single number, the cross product returns a new vector. That vector is perpendicular to both of the original vectors and its length equals the area of the parallelogram they span.

Given two vectors a=(ax,ay,az)\mathbf{a} = (a_x, a_y, a_z) and b=(bx,by,bz)\mathbf{b} = (b_x, b_y, b_z), this tool returns the three components of c=a×b\mathbf{c} = \mathbf{a} \times \mathbf{b}.

Formula

The cross product is defined component by component as:

a×b=(aybzazbyazbxaxbzaxbyaybx)\mathbf{a} \times \mathbf{b} = \begin{pmatrix} a_y b_z - a_z b_y \\ a_z b_x - a_x b_z \\ a_x b_y - a_y b_x \end{pmatrix}

So the three output components are:

  • cx=aybzazbyc_x = a_y b_z - a_z b_y
  • cy=azbxaxbzc_y = a_z b_x - a_x b_z
  • cz=axbyaybxc_z = a_x b_y - a_y b_x

How to use

  1. Enter the three components of vector a\mathbf{a}: axa_x, aya_y, and aza_z.
  2. Enter the three components of vector b\mathbf{b}: bxb_x, byb_y, and bzb_z.
  3. Once all six values are filled in, the calculator displays cxc_x, cyc_y, and czc_z — the components of the resulting vector a×b\mathbf{a} \times \mathbf{b}.

Negative inputs are fully supported. The order matters: a×b=(b×a)\mathbf{a} \times \mathbf{b} = -(\mathbf{b} \times \mathbf{a}), so swapping the two vectors flips the sign of every component.

Worked example

Take a=(1,2,3)\mathbf{a} = (1, 2, 3) and b=(4,5,6)\mathbf{b} = (4, 5, 6).

  • cx=aybzazby=2635=1215=3c_x = a_y b_z - a_z b_y = 2 \cdot 6 - 3 \cdot 5 = 12 - 15 = -3
  • cy=azbxaxbz=3416=126=6c_y = a_z b_x - a_x b_z = 3 \cdot 4 - 1 \cdot 6 = 12 - 6 = 6
  • cz=axbyaybx=1524=58=3c_z = a_x b_y - a_y b_x = 1 \cdot 5 - 2 \cdot 4 = 5 - 8 = -3

So a×b=(3,6,3)\mathbf{a} \times \mathbf{b} = (-3, 6, -3).

FAQ

Why is the cross product a vector while the dot product is a number?

The dot product measures how much two vectors point in the same direction, which is a single scalar quantity. The cross product instead measures the oriented area they span and points in a direction perpendicular to both, so it naturally needs three components to describe both that magnitude and that direction.

What does it mean if the cross product is the zero vector?

If a×b=(0,0,0)\mathbf{a} \times \mathbf{b} = (0, 0, 0), the two vectors are parallel (or one of them is the zero vector). Parallel vectors span no area, so the perpendicular result collapses to nothing.

Report a bug

This field is required.