The cross product takes two vectors in space and returns a third vector that is perpendicular to both. Its length equals the area of the parallelogram spanned by the two vectors, and its direction follows the right-hand rule. That makes it the standard tool for finding a normal vector to a plane, the area of a triangle in 3D, the torque of a force or the axis of a rotation.
Enter the components of and , or three points , , , and the calculator expands the determinant term by term. You get the cross product, its magnitude (the parallelogram area), half of it (the triangle area), the unit normal vector, the angle between the vectors, and a check that the result really is orthogonal to both inputs. With whole-number components every answer is also given in exact form, such as or .
For magnitudes, dot products, angles and projections in 2D or 3D, use the vector calculator.
How to use this calculator
- Choose Two vectors to enter and directly, or Three points to work with the triangle (the calculator then uses and ).
- Type the , and components. Fractions can be entered as decimals (0.5), negative values are fine.
- Read , or the triangle area in point mode.
- Open the steps to see the determinant expanded along the first row, the magnitude and the unit normal.
- If you get the zero vector, the vectors are parallel or the points are collinear; the calculator says so.
The formula
For and , expand the symbolic determinant along its first row:
Its magnitude is linked to the angle between the vectors:
so the triangle with sides and has area , and the unit normal is . The result is orthogonal to both factors, , and swapping the factors flips the sign: .
Worked example
Compute for and .
- :
- :
- :
So , written (−3, 6, −3). Its magnitude is : that is the parallelogram area, and the triangle built on the two vectors has area . Dividing by the magnitude gives the unit normal . Check: .
Direction: the right-hand rule
Point the fingers of your right hand along and curl them towards : your thumb points along . For the basis vectors, , and , while reversing any pair gives the negative. The cross product is therefore not commutative, and it is not associative either: but . It only exists in three dimensions; in 2D the closest equivalent is the scalar , the component, whose absolute value is the parallelogram area.
Common uses
| Problem | How the cross product helps |
|---|---|
| Equation of a plane through , , | gives the coefficients of |
| Area of a triangle in space | |
| Torque of a force | , in newton-metres |
| Testing if vectors are parallel | |
| Volume of a parallelepiped | , the scalar triple product |
Frequently asked questions
How do you calculate a cross product?
Write the vectors as the second and third rows of a 3 × 3 determinant under i, j, k and expand along the first row: (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁). For (−1, 2, 5) × (4, 0, −3) this gives (−6, 17, −8).
What does the magnitude of the cross product mean?
It is the area of the parallelogram whose sides are the two vectors, |a||b| sin θ. Half of it is the area of the triangle with those sides, which is how you find the area of a triangle from the coordinates of its vertices in 3D.
Why is the cross product zero?
Because the vectors are parallel (sin θ = 0) or one of them is the zero vector. In point mode it means the three points lie on the same line, so the "triangle" has no area.
Is a × b the same as b × a?
No. They have the same length but opposite directions: b × a = −(a × b). Order matters, which is why the right-hand rule is stated for a specific order.
What is the difference between the dot product and the cross product?
The dot product returns a number, |a||b| cos θ, that measures how much two vectors point the same way. The cross product returns a vector, of length |a||b| sin θ, perpendicular to both. A zero dot product means perpendicular; a zero cross product means parallel.
Sources
- OpenStax, Calculus Volume 3 — §2.4 The Cross Product
- Weisstein, Cross Product — Wolfram MathWorld
- Gilbert Strang, Introduction to Linear Algebra (MIT)
Last updated: