Cross product calculator for 3D vectors
The cross product of two 3D vectors a and b is a new vector, a × b, at right angles to both of them. Its components are (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁), and its length is |a||b| sin θ, the area of the parallelogram the two vectors make. Our cross product calculator is part of the Vectors Calculator: switch it to 3D, type both vectors, and it gives a × b alongside the dot product, both lengths and the angle between them.
Vectors Calculator
Visualise magnitude, direction and operations
How to find a cross product in the calculator
- Open the Vectors Calculator. It starts in Single mode, so choose 3D at the top of the sidebar. The cross product only appears in 3D.
- Under Vectors, type the x, y and z components of vector a and vector b.
- Read a × b in the Results section, to 2 decimal places, with |a|, |b|, the angle θ between them and the dot product a · b.
- Open Formulas to see the component formula with the answer beside it.
- Drag an empty part of the 3D view to turn it, or drag a vector's tip to move it. Reset vectors puts them back to the start.
The calculator gives the answer and the formula, not a line-by-line working, and it draws a and b but not a × b itself. The method below shows how to work it out and check it by hand.
The cross product formula
There is a pattern to each component: it uses the other two coordinates, never its own. The x component is built from the y and z parts, the y component from z and x, and the z component from x and y, always going round in that cycle.
The determinant method
Many courses remember the formula as a 3 by 3 determinant, with the unit vectors i, j and k in the top row:
| i | j | k |
| a₁ | a₂ | a₃ |
| b₁ | b₂ | b₃ |
Expand along the top row with the signs plus, minus, plus. Covering i's row and column leaves a₂b₃ − a₃b₂. Covering j's leaves a₁b₃ − a₃b₁, which the minus sign turns into a₃b₁ − a₁b₃. Covering k's leaves a₁b₂ − a₂b₁. That gives the same three components.
Worked examples you can check in the calculator
Example 1: the calculator's starting vectors
In 3D mode the calculator starts with a = (3, 4, 2) and b = (−1, 2, 5).
| Component | Working | Value |
|---|---|---|
| x | 4 × 5 − 2 × 2 | 16 |
| y | 2 × (−1) − 3 × 5 | −17 |
| z | 3 × 2 − 4 × (−1) | 10 |
So a × b = (16, −17, 10). Check that it is at right angles to both: its dot product with a is 48 − 68 + 20 = 0, and with b it is −16 − 34 + 50 = 0. Both zero, so it is perpendicular to each.
Example 2: order matters
Take i = (1, 0, 0) and j = (0, 1, 0). Then i × j = (0, 0, 1) = k, but j × i = (0, 0, −1) = −k. Swapping the order flips the direction: b × a = −(a × b). Try it in the calculator with i as vector a and j as vector b, then swap them over, and watch the sign change.
Example 3: area of a parallelogram and a triangle
The length of a × b is the area of the parallelogram with sides a and b. For a = (3, −2, 1) and b = (2, 1, 4):
The parallelogram's area is 15.17 square units, and the triangle with sides a and b has half that, 7.58.
Example 4: a normal vector to a plane
Find the plane through P(1, 0, 0), Q(0, 2, 0) and R(0, 0, 3). Two vectors in the plane are PQ = (−1, 2, 0) and PR = (−1, 0, 3). Their cross product is at right angles to the plane:
So the plane is 6x + 3y + 2z = d, and putting in P gives d = 6: 6x + 3y + 2z = 6. Q and R fit too, since 3 × 2 = 6 and 2 × 3 = 6.
Example 5: torque in physics
Torque is τ = r × F. A spanner 0.3 m long along the x axis, pushed with 20 N along the y axis, gives τ = (0.3, 0, 0) × (0, 20, 0) = (0, 0, 6) N m: 6 N m about the z axis.
Try one
The right-hand rule and the magnitude
The formula gives the direction automatically, but you can picture it. Point the fingers of your right hand along a and curl them towards b: your thumb points along a × b. The length is:
For example 1, |a| = 5.385, |b| = 5.477 and θ = 59.43°, so |a × b| = 25.40, the same as √(16² + 17² + 10²). The calculator shows |a|, |b| and θ, so you can check this. Parallel vectors have θ = 0 and a cross product of zero: (2, 4, 6) × (1, 2, 3) = (0, 0, 0).
Cross product vs dot product
| Dot product a · b | Cross product a × b | |
|---|---|---|
| Answer | A number | A vector |
| Size | |a||b| cos θ | |a||b| sin θ |
| Zero when | The vectors are perpendicular | The vectors are parallel |
| Order | a · b = b · a | a × b = −(b × a) |
| Dimensions | Any | 3D only |
Common mistakes
- Forgetting the minus sign on the middle term in the determinant method. The second component is a₃b₁ − a₁b₃, not a₁b₃ − a₃b₁.
- Swapping the order. b × a points the opposite way to a × b.
- Multiplying matching components. That is part of the dot product. Each cross product component uses the other two coordinates.
- Expecting a number. The cross product is a vector. Its length is a number.
- Using a 2D calculator mode. The cross product is defined for 3D vectors. For 2D vectors, write them with z = 0 and choose 3D.
Common questions
How do you calculate a cross product?
Can you take the cross product of 2D vectors?
What does the cross product tell you?
How do you check a cross product answer?
Is the cross product commutative?
Revision cards
Read the front, say your answer, then flip to check.
Where to go next
- Solve it
Vectors Calculator
Visualise magnitude, direction and operations
Open the tool - Test it
College Calculus II & III
A new exam-style paper every day, with instant marking and a mark scheme
Start today's paper - Test it
College Linear Algebra
A new exam-style paper every day, with instant marking and a mark scheme
Start today's paper