AI Tools Free

Cross Product Calculator

Enter two 3D vectors into this cross product calculator using X component, Y component, and Z component for the first vector and Second vector X, Second vector Y, and Second vector Z for the second vector. Built as a fast browser vector cross product calculator, it evaluates the right-handed product (yw - zv, zu - xw, xv - yu) to 12 significant digits and returns (12, -9, 2) for the preloaded pair (3, 4, 0) and (1, 2, 3).

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate result.

Your result
Enter your details

Result will appear here

How to Calculate Cross Product of Two Vectors (Formula & Right-Hand Rule)

The Cross Product Calculator computes the 3D Euclidean vector product in client-side JavaScript. If you want to learn how to calculate cross product of two vectors a = (x, y, z) and b = (u, v, w), expand the symbolic 3x3 determinant whose top row holds the unit basis vectors (i, j, k). Each output coordinate is the 2x2 minor left after crossing out that axis's column, with the middle j cofactor written as zu - xw.

a × b = (y·w - z·v, z·u - x·w, x·v - y·u), where |a × b| = |a|·|b|·sin(θ)

Scope: 3D right-handed orthonormal Cartesian vectors (x, y, z) and (u, v, w) with component bounds [-1,000,000,000, 1,000,000,000]. Swapping vector order reverses the output sign: b × a = -(a × b). Parallel or zero vectors return (0, 0, 0). Each coordinate is formatted up to 12 significant digits (clamping |v| < 1e-12 to 0).

Cross Product Calculator formula card showing 3D vector determinant cofactor expansion (yw - zv, zu - xw, xv - yu)
Formula and 3x3 cofactor expansion reference for the Cross Product Calculator showing how X component, Y component, Z component and Second vector X, Y, Z combine into (12, -9, 2).

3D Vector Cross Product Reference Table

Review these 10 reference vector pairs to see how the cofactor formula (yw - zv, zu - xw, xv - yu) behaves across basis axes, collinear pairs, 2D planes, and physics torque vectors.

Vector a = (x, y, z)Vector b = (u, v, w)Cross Product a × bMagnitude |a × b|Geometric / Physical Meaning
(1, 0, 0) (i)(0, 1, 0) (j)(0, 0, 1) (k)1Right-handed X × Y = +Z unit basis identity
(0, 1, 0) (j)(1, 0, 0) (i)(0, 0, -1) (-k)1Reversed order Y × X = -Z (anti-commutativity)
(0, 1, 0) (j)(0, 0, 1) (k)(1, 0, 0) (i)1Cyclic permutation Y × Z = +X
(0, 0, 1) (k)(1, 0, 0) (i)(0, 1, 0) (j)1Cyclic permutation Z × X = +Y
(3, 4, 0)(1, 2, 3)(12, -9, 2)15.1327 (√229)Preloaded default 3D oblique vector pair
(2, -4, 6)(-1, 2, -3)(0, 0, 0)0Anti-parallel vectors (a = -2b, θ = 180°)
(5, 2, 0)(1, 4, 0)(0, 0, 18)182D vectors in xy-plane (parallelogram area = 18)
(0.4, 0, 0)(0, 150, -50)(0, 20, 60)63.2456Wrench torque τ = r × F in N·m
(2, 0, -1)(0, 3, 4)(3, -8, 6)10.4403 (√109)Unnormalized 3D triangle mesh surface normal
(-3, 5, 2)(4, 1, -6)(-32, -10, -23)40.6571 (√1653)Mixed-sign 3D vector pair across octants

How to Use the Vector Cross Product Calculator

Follow these three steps to enter your 3D or planar 2D coordinates, compute the orthogonal vector, and export the result.

Enter the First Vector (X, Y, Z)

Type your first vector's coordinates (-1,000,000,000 to 1,000,000,000) into X component, Y component, and Z component (3, 4, 0 preloaded).

Input and settings
Cross Product Calculator input fields populated with (3, 4, 0) and (1, 2, 3)
Step 1 workspace view showing X component = 3, Y component = 4, Z component = 0, and Second vector X, Y, Z = 1, 2, 3.

Enter the Second Vector (u, v, w)

Type the second vector into Second vector X, Second vector Y, and Second vector Z (set both Z fields to 0 for 2D vectors in the xy-plane).

Tool result
Cross Product Calculator output panel displaying (12, -9, 2)
Step 2 workspace view showing the computed 3D cross product tuple (12, -9, 2) in the result panel.

Calculate and Save the Vector Tuple

Click Calculate result to evaluate (yw - zv, zu - xw, xv - yu), then use Copy result or Download (result.txt) to save the ordered triple.

Review the details
Cross Product Calculator complete workspace with (12, -9, 2) and export actions
Step 3 full workspace view showing (12, -9, 2) alongside the Copy result and Download buttons.

Cross Product of Two Vectors Calculator Examples: 3D, Torque & Normals

Run these three worked scenarios in the workspace to verify determinant cofactor arithmetic, mechanical lever torque, and 3D mesh surface normals.

Preloaded 3D baseline ((3, 4, 0) × (1, 2, 3) = (12, -9, 2))

With X component = 3, Y component = 4, Z component = 0 and Second vector X = 1, Second vector Y = 2, Second vector Z = 3, clicking Calculate result evaluates cx = 4(3) - 0(2) = 12, cy = 0(1) - 3(3) = -9, and cz = 3(2) - 4(1) = 2, returning (12, -9, 2) with magnitude √229 ≈ 15.1327.

Cross Product Calculator baseline example showing (3, 4, 0) × (1, 2, 3) = (12, -9, 2)
Worked Example 1: Preloaded 3D oblique vectors (3, 4, 0) and (1, 2, 3) producing (12, -9, 2).

Mechanical lever torque (r = (0.4, 0, 0) m, F = (0, 150, -50) N)

A wrench of length 0.4 m along the positive X-axis (r = (0.4, 0, 0)) is pulled by force F = (0, 150, -50) N. Entering 0.4, 0, 0 and 0, 150, -50 outputs torque τ = r × F = (0, 20, 60) N·m, representing 60 N·m of counterclockwise twist around the Z-axis and 20 N·m around the Y-axis.

Cross Product Calculator physics torque example showing (0, 20, 60)
Worked Example 2: Mechanical lever arm r = (0.4, 0, 0) m and force F = (0, 150, -50) N producing torque (0, 20, 60) N·m.

Triangle mesh surface normal ((2, 0, -1) × (0, 3, 4) = (3, -8, 6))

Given two triangle edge vectors e1 = (2, 0, -1) and e2 = (0, 3, 4), the calculator computes cx = 0(4) - (-1)(3) = 3, cy = (-1)(0) - 2(4) = -8, and cz = 2(3) - 0(0) = 6, returning the outward normal (3, -8, 6). Swapping the two vectors reverses the winding order and outputs (-3, 8, -6).

Cross Product Calculator 3D mesh normal example showing (3, -8, 6)
Worked Example 3: 3D triangle edges (2, 0, -1) and (0, 3, 4) producing outward surface normal (3, -8, 6).

How to Verify Direction, Area & Orthogonality of the Output Vector

The returned ordered triple (cx, cy, cz) encodes both the right-handed axis perpendicular to your two inputs and the surface area of the parallelogram they span.

Right-hand rule and parallelogram area: Point the index finger of your right hand along (x, y, z) and curl your middle finger toward (u, v, w) through the smaller angle θ; your thumb points along a × b. Its Euclidean length √(cx² + cy² + cz²) = |a|·|b|·sin(θ) equals the area of the parallelogram spanned by a and b (twice the triangle area).

Zero-dot-product orthogonality check: Because c = a × b is strictly orthogonal to both input vectors, taking its scalar dot product with either a or b in the Dot Product Calculator must return 0 (for (12, -9, 2), 12(3) + (-9)(4) + 2(0) = 0 and 12(1) + (-9)(2) + 2(3) = 0).

Cross Product Calculator output interpretation diagram for (12, -9, 2)
Output verification guide showing how the ordered triple (12, -9, 2) satisfies the right-hand rule and zero dot product orthogonality with both input vectors.

Input Limits, Anti-Commutativity & Related Vector Calculators

Keep these algebraic rules and numerical bounds in mind before chaining your cross product into downstream physics or graphics formulas.

Anti-commutativity and numerical bounds: Because a × b = -(b × a), always enter position r as the first vector and force F as the second vector when computing torque τ = r × F or angular momentum L = r × p. Each input accepts finite numbers between -1,000,000,000 and 1,000,000,000, and the output formats each coordinate to 12 significant digits (clamping residuals below 1e-12 to 0).

Related vector and matrix tools: Need the scalar product xu + yv + zw or interior angle cos(θ)? Open the Dot Product Calculator. To compute the scalar triple product a·(b×c) (parallelepiped volume) in one step, use the Determinant Calculator, or transform your normal vector with a 3x3 rotation matrix in the Matrix Multiplication Calculator.

Cross Product Calculator scope and validation summary card
Scope summary and validation rules for the Cross Product Calculator showing [-10^9, 10^9] input bounds, anti-commutativity, and 12-digit precision.

Frequently Asked Questions About Cross Product Calculator

Answers about using Cross Product Calculator and understanding its results.

How do you calculate the cross product of two 3D vectors?

For a = (x, y, z) and b = (u, v, w), compute three 2x2 determinants: the X coordinate is y*w - z*v, the Y coordinate is z*u - x*w, and the Z coordinate is x*v - y*u. With the default vectors (3, 4, 0) and (1, 2, 3), this gives (4*3 - 0*2, 0*1 - 3*3, 3*2 - 4*1) = (12, -9, 2).

Why does swapping the two vectors flip the sign of the cross product?

The cross product is anti-commutative (b × a = -(a × b)) because exchanging the second and third rows of a 3x3 determinant negates every 2x2 cofactor. Geometrically, curling the fingers of your right hand from b to a points your thumb in the exact opposite direction (180 degrees away) from curling a to b.

How can I calculate a 2D cross product in this 3D calculator?

Embed both 2D vectors in the flat xy-plane by setting Z component (z = 0) and Second vector Z (w = 0) to 0. Both the X and Y components cancel to 0, and the calculator outputs (0, 0, x*v - y*u), where x*v - y*u is the standard 2D signed determinant.

What does a cross product output of (0, 0, 0) indicate?

An output of (0, 0, 0) means that either at least one input is the zero vector (0, 0, 0) or the two non-zero vectors are collinear (parallel with θ = 0° or anti-parallel with θ = 180°, where sin(θ) = 0). One vector is a scalar multiple of the other (a = k*b), and they span zero parallelogram area.

What is the difference between a cross product and a dot product?

The cross product a × b scales with sin(θ) and returns a 3D vector (cx, cy, cz) perpendicular to both inputs, making it ideal for rotational torque, magnetic Lorentz force F = q(v × B), and surface normals. The dot product a · b scales with cos(θ) and returns a single scalar number x*u + y*v + z*w that measures parallel alignment and mechanical work.

Calculate result with your input

Choose another tool for your next calculation, conversion, or text task.

Calculate result