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.
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:
Worked 3D example
Let A = (2, 3, 4) and B = (1, −2, 2).
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:
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
- Perpendicular result: in 3D, A × B is perpendicular to both A and B.
- Order matters: B × A = −(A × B).
- Parallel vectors: their cross product is zero.
- Zero vector: crossing any vector with the zero vector gives zero.
- Area: the magnitude equals the parallelogram area formed by the vectors.
Common applications
- Finding surface normals in 3D graphics.
- Calculating torque in physics.
- Computing areas from vector coordinates.
- Determining orientation and perpendicular directions.
- Solving geometry, engineering, and linear algebra problems.
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.