Vector Cross Product Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

What is the vector cross product?

The vector cross product (also called the vector product) takes two three-dimensional vectors and returns a new vector that is perpendicular to both. The magnitude of the result equals the area of the parallelogram spanned by the two original vectors, and its direction follows the right-hand rule. This makes the cross product fundamental in physics, engineering, and 3D graphics for describing rotation, torque, and orientation in space.

If you have two vectors A and B in 3D, written in component form as

A = ( ax , ay , az ) , B = ( bx , by , bz )

then the cross product is another vector, written as Aร—B.

Cross product formulas

There are two common ways to express the cross product: a determinant form and a component-by-component formula. Both are mathematically equivalent.

Determinant form

A compact way to remember the cross product is as a 3 ร— 3 determinant involving the unit vectors i, j, k:

A ร— B = | i j k ax ay az bx by bz |

Component formula

Expanding that determinant leads to a straightforward component-wise formula. The result is another 3D vector whose components are

A ร— B = ( cx , cy , cz )

where

cx = ay bz โˆ’ az by cy = az bx โˆ’ ax bz cz = ax by โˆ’ ay bx

The calculator on this page implements exactly these formulas in JavaScript.

How to interpret the result

Worked example

Suppose you have

Using the component formula:

So

A ร— B = (-3, 6, -3).

If you enter these components into the calculator (A = 1, 2, 3 and B = 4, 5, 6), it will display exactly this result.

Cross product vs. dot product

The cross product is often compared with the dot product because both combine two vectors into a single quantity, but they behave very differently. The table below summarizes the key differences.

Feature Cross product Dot product
Output type Vector in 3D Single scalar (number)
Geometric meaning Area of parallelogram and perpendicular direction Measure of alignment (related to cosine of angle)
Dimension requirement Defined only in 3D (and special higher-dimensional contexts) Defined in any dimension
When result is zero Vectors are parallel or one is zero Vectors are perpendicular or one is zero

Common applications

Assumptions and limitations of this calculator

Using the calculator effectively

This combination of formulas, geometric interpretation, and practical notes should help you both compute cross products correctly and understand what the result means in real-world contexts.

Vector A
Vector B
Enter the vector components to calculate the cross product.

Embed this calculator

Copy and paste the HTML below to add the Vector Cross Product Calculator - Compute 3D Vector Products to your website.