Cross Product Calculator

Calculate the cross product of two 2D or 3D vectors online. Get the resulting vector or signed 2D scalar, its magnitude, the angle between the input vectors, and step-by-step calculations.

Calculate the cross product

Enter two vectors of the same dimension. Use commas or spaces between components, such as 2, 3, 4.

Enter two components for 2D or three for 3D.
Vector B must have the same dimension as Vector A.

What is a cross product?

The cross product is a vector operation used primarily with three-dimensional vectors. Its result is perpendicular to both input vectors, and its direction follows the right-hand rule.

3D cross product formula

For A = (a₁, a₂, a₃) and B = (b₁, b₂, b₃), the cross product is:

A × B = (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁)

Worked 3D example

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

x = (3 × 2) − (4 × −2) = 14
y = (4 × 1) − (2 × 2) = 0
z = (2 × −2) − (3 × 1) = −7

Therefore, A × B = (14, 0, −7).

2D cross product

For 2D vectors A = (a₁, a₂) and B = (b₁, b₂), the calculator returns the signed scalar:

a₁b₂ − a₂b₁

This scalar is the z-component of the 3D cross product when the vectors are treated as lying in the xy-plane. Its sign indicates the orientation from A to B.

Important properties

Common applications

Frequently asked questions

What is the difference between dot product and cross product?

The dot product produces a scalar. The 3D cross product produces a vector perpendicular to both input vectors.

When is the cross product zero?

The cross product is zero when the vectors are parallel or antiparallel, or when either vector is the zero vector.

Can the cross product be calculated for 2D vectors?

Yes. For 2D inputs, the calculator returns the signed scalar z-component of the equivalent 3D cross product.

Why does reversing the vectors change the answer?

The cross product is anti-commutative: reversing the order reverses the direction of the resulting vector.

Related matrix and vector tools