Cross Product and 3D Vectors: Formula and Examples
Solver AI TeamPublished Updated 13 min read
Master the cross product of 3D vectors. Covers the formula, determinant method, right-hand rule, geometric meaning, applications to area and torque, and the scalar triple product.
Frequently asked questions
What does the cross product of two vectors give you?
It gives a new vector that is perpendicular to both original vectors. Its length is |a||b|sinθ, which equals the area of the parallelogram the two vectors span, and its direction comes from the right-hand rule. Reversing the order flips that direction.
How do you calculate a cross product with the determinant method?
Write a 3 × 3 determinant with i, j, k in the top row, the components of a in the second row, and the components of b in the third. Expanding gives (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁). For example, i × j = k.
What does it mean if the cross product is the zero vector?
It means the two vectors are parallel (pointing the same or opposite way), or one of them is the zero vector. Parallel vectors span no area, so sinθ = 0 and the length |a||b|sinθ is zero. The same test works for checking whether two vectors point along the same line.
Is the cross product commutative?
No. It is anticommutative: b × a = −(a × b). Swapping the order flips the direction of the result but not its length. This is why the order matters when you apply the right-hand rule. Keep the order a × b in mind whenever a sign matters.
What is the difference between the dot product and the cross product?
The dot product returns a single number (a scalar) and measures how much two vectors point the same way. The cross product returns a vector perpendicular to both and measures the area they span. The cross product in this form works only in 3D.
The cross product (also called the vector product) is an operation on two vectors in three-dimensional space that produces a third vector — unlike the dot product, which produces a scalar.
Definition — Cross Product
Given vectors a and b in ℝ³, the cross product a × b is a vector that is perpendicular to both a and b, with a magnitude equal to the area of the parallelogram spanned by a and b, and a direction given by the right-hand rule.
The cross product is fundamental in physics and engineering: torque, angular momentum, magnetic force (F = qv × B), and the curl of a vector field all involve cross products. In computer graphics and computational geometry, cross products compute normal vectors to polygons, determine orientation of three points, and test whether points are on the same side of a plane.
Two crucial properties
A crucial property: the cross product is defined only in three dimensions (and, with extensions, in seven). In 2D or 4D, there's no operation with all the same properties.
Another crucial property: the cross product is not commutative. In fact, a × b = −(b × a). Order matters, and reversing it flips the direction.
The Key Insight
This is geometrically obvious from the right-hand rule — pointing your fingers the other way reverses the thumb's direction.
The Cross Product Formula
The Rule — Cross Product Formula
Given 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₁).
Memorizing this coordinate-by-coordinate is error-prone; most students use the determinant method instead. Set up a 3×3 determinant with i, j, k (the standard unit vectors) in the top row, a's components in the second row, and b's components in the third: a × b = | i j k | | a₁ a₂ a₃ | | b₁ b₂ b₃ |.
Expand along the top row using cofactors: a × b = i · (a₂b₃ − a₃b₂) − j · (a₁b₃ − a₃b₁) + k · (a₁b₂ − a₂b₁). Note the alternating signs: +, −, +. The negative sign on the j component is the most common source of errors.
Verification: Check perpendicularity via the dot product. (a × b) · a = (−3)·2 + 6·3 + (−3)·4 = −6 + 18 − 12 = 0. ✓ (a × b) · b = (−3)·5 + 6·6 + (−3)·7 = −15 + 36 − 21 = 0. ✓ The cross product is indeed perpendicular to both.
Geometric Interpretation and Magnitude
The Rule — Magnitude of the Cross Product
The magnitude of the cross product has a beautiful geometric meaning: |a × b| = |a| · |b| · sin(θ), where θ is the angle between a and b. This equals the area of the parallelogram with sides a and b. Half of this gives the area of the triangle with those two sides: Area of triangle = ½|a × b|.
Contrast with the dot product: a · b = |a| · |b| · cos(θ). The dot product measures how much a and b point in the same direction; the cross product measures how much they don't.
The Key Insight — Direction (the right-hand rule)
Point the fingers of your right hand in the direction of a, then curl them toward b through the angle between them. Your thumb points in the direction of a × b.
Special cases
Case
Condition
Result
Why
Parallel
θ = 0° or 180°
a × b = 0 (zero vector)
sin(θ) = 0
Perpendicular
θ = 90°
|a × b| = |a| · |b|
sin(θ) = 1
Example — area of a triangle
Find the area of the triangle with vertices P(1, 2, 3), Q(4, 5, 6), R(7, 1, 2).
Form two edge vectors: PQ = Q − P = (3, 3, 3), PR = R − P = (6, −1, −1).
The cross product obeys several important algebraic rules that you'll use in proofs and computations:
The Rule — Anticommutativity
a × b = −(b × a). Reversing order reverses direction.
The Rule — Distributive
a × (b + c) = (a × b) + (a × c). Works with vector addition.
The Rule — Scalar multiplication
(ka) × b = a × (kb) = k(a × b). Scalars can be pulled out.
The Rule — Zero vector
a × a = 0 for any vector a. A vector is always parallel to itself.
Common Mistake — NOT associative
In general, (a × b) × c ≠ a × (b × c). This is a common mistake; cross products must be parenthesized carefully.
Standard basis relations
Standard basis relations:i × j = k, j × k = i, k × i = j. Reversing order negates each: j × i = −k, etc. A mnemonic: cycling forward through i, j, k gives positives; cycling backward gives negatives.
Corollary — Scalar triple product
a · (b × c) produces a scalar equal to the signed volume of the parallelepiped spanned by a, b, c. It equals the determinant of the matrix whose rows are a, b, c. If the scalar triple product is zero, the three vectors are coplanar (lie in a common plane).
a × (b × c) = b(a · c) − c(a · b). This identity is used heavily in electromagnetics and mechanics.
Applications in Physics and Engineering
The cross product isn't just an abstract operation — it encodes fundamental physical laws.
Application
Formula
Meaning
Torque
τ = r × F
The torque τ produced by a force F applied at position r from a pivot. Magnitude |τ| = |r| · |F| · sin(θ) — which is why leverage depends on where and how you push.
Angular momentum
L = r × p
Where p is linear momentum. Critical for understanding rotation in any system from spinning tops to planetary orbits.
Magnetic force
F = qv × B
The force on a moving charge in a magnetic field. The cross product explains why the force is perpendicular to both velocity and field — which gives rise to circular motion in uniform fields, used in cyclotrons and mass spectrometers.
Normal vectors (graphics)
n = (Q − P) × (R − P)
To compute the normal to a triangle with vertices P, Q, R for lighting calculations. Normalize if you need a unit normal.
Example — torque
A wrench is 0.3 m long, and you apply 50 N of force perpendicular to it.
Torque magnitude: |τ| = 0.3 · 50 · sin(90°).
Answer|τ| = 15 N·m
Example — area of a general 3D polygon
For a polygon with vertices v₁, v₂, ..., vₙ in 3D, the area is ½|Σ(vᵢ × vᵢ₊₁)| — a generalization of the shoelace formula using cross products.
Common Mistakes and Worked Example
Common mistakes
Mistake 1 — The j-component sign
Forgetting the negative sign on the j-component when expanding the determinant.
Mistake 2 — Confusing order
Confusing a × b with b × a — they have opposite directions.
Mistake 3 — Cross product of 2D vectors
Trying to take a cross product of 2D vectors — convert them to 3D by appending a zero: (a₁, a₂) → (a₁, a₂, 0).
Mistake 4 — Assuming associativity
Treating the cross product as associative in multi-step computations.
Mistake 5 — Wrong trig function
Using cos in the magnitude formula — it's sin.
Complete worked example
Example — triangle area and unit normal
Find (a) the area of the triangle with vertices A(1, 0, 0), B(0, 2, 0), C(0, 0, 3), and (b) a unit vector normal to the plane containing these three points.
If you're working through cross-product problems — area calculations, normal vectors, torques, or proving vector identities — scan them with Solver AI for every computational step.