Key facts
- a × b = ⟨a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁⟩.
- For a = ⟨1, 2, 3⟩ and b = ⟨4, 5, 6⟩, a × b = ⟨−3, 6, −3⟩, with length 3√6 ≈ 7.348.
a × b = a b sin θ, which is the area of the parallelogram formed by a and b; half of it is the triangle area. - The cross product is anti-commutative: b × a = −(a × b). The direction follows the right-hand rule.
- If a × b is the zero vector, the two vectors are parallel.
What the cross product gives you
Unlike the dot product, which returns a number, the cross product returns a vector. Its direction is perpendicular to the plane that contains a and b, and its length tells you how much area the two vectors span. It is the go-to tool for finding a normal to a plane, the area of a triangle in space, torque and angular momentum.
How to use the cross product calculator
- Enter the x, y and z components of vector a.
- Enter the components of vector b.
- Read a × b, its magnitude, the areas, a unit normal and the perpendicularity check.
Formula for the cross product
a × b = ⟨a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁⟩It is the expansion of the determinant with the unit vectors i, j, k in the top row:
| i | j | k |
|---|---|---|
| a₁ | a₂ | a₃ |
| b₁ | b₂ | b₃ |
|a × b| = |a| |b| sin θWorked examples: the cross product
Example 1
a = ⟨1, 2, 3⟩, b = ⟨4, 5, 6⟩.
- x: 2 × 6 − 3 × 5 = 12 − 15 = −3
- y: 3 × 4 − 1 × 6 = 12 − 6 = 6
- z: 1 × 5 − 2 × 4 = 5 − 8 = −3
So a × b = ⟨−3, 6, −3⟩. Its length is √(9 + 36 + 9) = √54 = 3√6 ≈ 7.348, which is the area of the parallelogram. The triangle with sides a and b has half that area, about 3.674. Check: a · (a × b) = −3 + 12 − 9 = 0.
Example 2: unit vectors
i × j = k, j × k = i and k × i = j. Reversing the order flips the sign: j × i = −k.
Example 3: torque
A wrench 0.3 m long along the x-axis, r = ⟨0.3, 0, 0⟩, with a force F = ⟨0, 50, 0⟩ N. Torque τ = r × F = ⟨0, 0, 15⟩ N·m: 15 N·m about the z-axis.
The right-hand rule
Point the fingers of your right hand along a, curl them toward b, and your thumb points along a × b. That is why b × a points the opposite way.
Properties
| Property | Rule |
|---|---|
| Anti-commutative | b × a = −(a × b) |
| Distributive | a × (b + c) = a × b + a × c |
| Parallel vectors | a × b = 0 |
| Perpendicular to both | a · (a × b) = b · (a × b) = 0 |
| Not associative | a × (b × c) is usually not (a × b) × c |
Finding a plane through three points
Take two edge vectors from the points, for example AB and AC, and cross them. The result is a normal vector n = ⟨A, B, C⟩, and the plane is A(x − x₀) + B(y − y₀) + C(z − z₀) = 0. The same cross product gives the area of triangle ABC as half its length.
2D vectors
The cross product is only defined for 3D vectors. For 2D vectors you can set z = 0; the result points straight along the z-axis and its z-component, a₁b₂ − a₂b₁, is the signed area of the parallelogram. For the scalar product of two vectors, use the dot product calculator.
The cross product, torque and the right-hand rule
The cross product of two 3D vectors is a new vector perpendicular to both, with length equal to the area of the parallelogram they span. Its direction follows the right-hand rule: curl the fingers of your right hand from the first vector to the second, and your thumb points along the result. The operation comes from William Rowan Hamilton’s quaternions of 1843, whose product contains both a dot and a cross part, and it was separated out in the vector notation of Josiah Willard Gibbs and Oliver Heaviside. Unusually, a true cross product exists only in three and seven dimensions.
Physics is full of cross products. Torque is r × F, which is why a long wrench turns a stuck bolt more easily. The magnetic part of the Lorentz force, named after Hendrik Lorentz, is qv × B, the basis of electric motors and of how particle detectors bend charged particles. Angular momentum is r × p. In 3D graphics and games, cross products of triangle edges give surface normals, used for lighting and for skipping faces that point away from the camera. Note that a × b = −(b × a): order matters. In US high schools, vector operations appear in the advanced Common Core N-VM standards. For the angle and projections, use the dot product calculator; for flat areas, the parallelogram area calculator; and to scale the result to length 1, the unit vector calculator.
How this calculator works
- a × b = ⟨a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁⟩ for 3D vectors (2D vectors are treated as having z = 0).
- Shows the magnitude |a × b|, which equals the parallelogram area, and half of it, the triangle area.
- Gives the unit normal vector and checks that the result is perpendicular to both inputs (dot products of zero).
- Parallel vectors give the zero vector.
Frequently asked questions
How do you calculate a cross product?
Use a × b = ⟨a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁⟩. For ⟨1, 2, 3⟩ × ⟨4, 5, 6⟩ the result is ⟨−3, 6, −3⟩.
What does the magnitude of the cross product mean?
It equals the area of the parallelogram formed by the two vectors: |a| |b| sin θ.
Is the cross product commutative?
No. Swapping the order reverses the direction: b × a = −(a × b).
What does a zero cross product mean?
The vectors are parallel (or one of them is the zero vector), so they span no area.
Can you take the cross product of 2D vectors?
Not directly. Treat them as 3D vectors with z = 0; the result points along the z-axis.
How do I find the area of a triangle with the cross product?
Take two side vectors from the same corner, cross them and halve the length of the result.
What is the right-hand rule?
Curl the fingers of your right hand from a toward b; your thumb points in the direction of a × b.
Is the cross product perpendicular to both vectors?
Yes. Its dot product with a and with b is always zero.