Cross Product Calculator
Calculate the cross product of two 3D vectors with magnitude, direction, angle, and interactive visualization. Step-by-step solution included.
About
The cross product (or vector product) a × b yields a vector perpendicular to both input vectors in R3. Its magnitude equals the area of the parallelogram spanned by the two vectors. Misapplying the operation - confusing it with the dot product, or reversing operand order - produces incorrect surface normals in 3D graphics, wrong torque directions in mechanics, and flawed flux computations in electromagnetism. This calculator computes all three components, the resultant magnitude |a × b|, the angle θ between inputs, and verifies orthogonality via dot-product checks.
The tool assumes a right-handed coordinate system consistent with the IEEE and ISO 80000-2 convention. Results are exact for rational inputs. For near-parallel vectors (angle < 0.01°), floating-point cancellation may reduce precision in the magnitude to roughly 12 significant digits. An interactive 3D canvas renders the vectors and their cross product for spatial verification.
Formulas
The cross product is computed via the determinant of a symbolic 3×3 matrix with unit vectors in the first row:
Expanding along the first row yields three components:
The magnitude of the resultant vector equals:
The angle θ between vectors is recovered from both products:
Where a = (a1, a2, a3) is the first input vector, b = (b1, b2, b3) is the second input vector, i, j, k are the standard basis unit vectors, and θ is the angle between a and b. The atan2 form is preferred over arccos because it is numerically stable for all angles including near-zero and near-π.
Reference Data
| Property | Cross Product (a × b) | Dot Product (a ⋅ b) |
|---|---|---|
| Result Type | Vector in R3 | Scalar in R |
| Commutativity | a × b = −(b × a) (anti-commutative) | a ⋅ b = b ⋅ a (commutative) |
| Geometric Meaning | Area of parallelogram | Projection of one vector onto another |
| Zero Condition | Vectors are parallel (θ = 0° or 180°) | Vectors are perpendicular (θ = 90°) |
| Distributive | a × (b + c) = a × b + a × c | a ⋅ (b + c) = a ⋅ b + a ⋅ c |
| Associative | Not associative | N/A (binary operation) |
| Self-Product | a × a = 0 | a ⋅ a = |a|2 |
| Scalar Mult. | (ka) × b = k(a × b) | (ka) ⋅ b = k(a ⋅ b) |
| Lagrange Identity | |a × b|2 + (a ⋅ b)2 = |a|2 |b|2 | |
| Triple Product | a ⋅ (b × c) = volume of parallelepiped | |
| Unit Vector Identity | i × j = k | i ⋅ j = 0 |
| j × k | i | 0 |
| k × i | j | 0 |
| Physics: Torque | τ = r × F | |
| Physics: Lorentz Force | F = qv × B | |
| Physics: Angular Momentum | L = r × p | |
| Graphics: Surface Normal | n = (v1 − v0) × (v2 − v0) | |