Cross Product Calculator

Vector a

Vector b

Cross product a x b(1, 29, 11)
Magnitude31.03
How this was calculated
  1. i component = -2 x -3 - 5 x 1 = 1.
  2. j component = 5 x 4 - 3 x -3 = 29.
  3. k component = 3 x 1 - -2 x 4 = 11.
  4. Magnitude = sqrt((1)^2 + (29)^2 + (11)^2) = 31.03.

A cross product calculator takes two 3D vectors, a and b, and returns a third vector perpendicular to both. Given vectors a = (a1, a2, a3) and b = (b1, b2, b3), the result is (a2b3 - a3b2, a3b1 - a1b3, a1b2 - a2b1), with direction following the right-hand rule. The cross product exists only in three dimensions, and in seven dimensions in advanced settings. For example, a = (3, -2, 5) and b = (4, 1, -3) give a x b = (1, 29, 11) with magnitude 31.03; the dot products with a and b are both exactly 0, confirming perpendicularity. Other verified results include a = (1, 0, 2) and b = (0, 3, -1) giving (-6, 1, 3) with magnitude 6.78, and a = (2, 2, 2) and b = (1, -1, 3) giving (8, -4, -4) with magnitude 9.80.

This method is the accepted standard because it captures the geometric properties that make the cross product useful. The magnitude |a x b| = |a||b|sin(theta) equals the area of the parallelogram the two vectors span, and half of it is the area of the triangle they form. The cross product is anti-commutative, meaning b x a = -(a x b), and parallel vectors give the zero vector, which is a quick test for parallelism. This page shows the formula, step-by-step workings, worked examples, and sources.

Worked examples

A general case

Primary result: (1, 29, 11) — with magnitude 31.03, the area of the parallelogram the vectors span. (3 · -2 · 5 · 4 · 1 · -3)

Cross product a x b(1, 29, 11)
Magnitude31.03

Sparse vectors

Primary result: (-6, 1, 3) — zeros in the inputs still produce a full 3D result. (1 · 0 · 2 · 0 · 3 · -1)

Cross product a x b(-6, 1, 3)
Magnitude6.78

A symmetric result

Primary result: (8, -4, -4) — magnitude 9.80. (2 · 2 · 2 · 1 · -1 · 3)

Cross product a x b(8, -4, -4)
Magnitude9.80

What the cross product is

The cross product a x b of two 3D vectors is a third vector perpendicular to both. For vectors a = (a1, a2, a3) and b = (b1, b2, b3), the result is (a2b3 - a3b2, a3b1 - a1b3, a1b2 - a2b1). Its direction follows the right-hand rule: point your fingers from a toward b, and your thumb points along the cross product. The cross product exists only in three dimensions — and seven, in advanced settings — which makes it a uniquely 3D tool.

Its magnitude, |a x b| = |a||b|sin(theta), equals the area of the parallelogram the two vectors span. Half of that value gives the area of the triangle they form, so a cross product calculator doubles as an area tool. The cross product is anti-commutative, meaning b x a = -(a x b), and parallel vectors always produce the zero vector — a quick test for parallelism.

The cross product shows up wherever a perpendicular direction is needed. In physics, torque is the cross product of a force vector and a lever arm vector. Angular momentum works the same way, combining rotational velocity with linear momentum. In computer graphics and 3D modeling, surface normals — the vectors that tell a surface which way it faces — come straight from cross products of edges. Each application relies on the same property: two input vectors define a plane, and the cross product hands back the vector that stands upright on it.

Verified examples confirm the math. With a = (3, -2, 5) and b = (4, 1, -3), the cross product is (1, 29, 11) with magnitude 31.03, and its dot products with a and b are both exactly 0, confirming perpendicularity. With a = (1, 0, 2) and b = (0, 3, -1), the result is (-6, 1, 3) with magnitude 6.78. With a = (2, 2, 2) and b = (1, -1, 3), the result is (8, -4, -4) with magnitude 9.80. In every case, the output vector is orthogonal to both inputs.

The cross product formula

For two 3D vectors **a** = (a₁, a₂, a₃) and **b** = (b₁, b₂, b₃), the cross product **a × b** produces a third vector perpendicular to both. Its three components are given by the formulas: the first component is (a₂b₃ − a₃b₂), the second component is (a₃b₁ − a₁b₃), and the third component is (a₁b₂ − a₂b₁). A handy way to remember this arrangement is the determinant mnemonic: write a 3×3 matrix with the unit vectors **i**, **j**, **k** across the top row, the components of **a** in the second row, and the components of **b** in the third row. Expanding along the top row yields exactly the three component formulas above, with alternating signs.

To see how this works in practice, consider the verified case **a** = (3, −2, 5) and **b** = (4, 1, −3). A cross product calculator applies each component formula in turn. For the first component, you compute (a₂b₃ − a₃b₂) = ((−2)(−3) − (5)(1)) = (6 − 5) = 1. For the second component, compute (a₃b₁ − a₁b₃) = ((5)(4) − (3)(−3)) = (20 + 9) = 29. For the third component, compute (a₁b₂ − a₂b₁) = ((3)(1) − (−2)(4)) = (3 + 8) = 11.

That gives **a × b** = (1, 29, 11), with magnitude 31.03. To confirm this result is correct, check perpendicularity: the dot product of (1, 29, 11) with **a** = (3, −2, 5) is (3 − 58 + 55) = 0, and the dot product with **b** = (4, 1, −3) is (4 + 29 − 33) = 0. Both dot products are exactly 0, confirming the cross product vector is perpendicular to both original vectors, as required.

The magnitude |**a × b**| = |**a**||**b**|sin(θ) equals the area of the parallelogram the two vectors span; half of that value gives the area of the triangle they form. Two properties are worth noting: the cross product is anti-commutative, meaning **b × a** = −(**a × b**), and parallel vectors always produce the zero vector, which serves as a quick test for parallelism. The cross product exists only in three dimensions — and in seven dimensions in advanced settings — so these formulas apply specifically to 3D vectors.

Worked examples

The table below shows three verified cases you can use to check any cross product calculator. Each example applies the formula (a2b3 - a3b2, a3b1 - a1b3, a1b2 - a2b1) directly, and every result is confirmed by checking that the dot products with the original vectors equal zero — proof that the output vector is perpendicular to both inputs.

In the first example, a = (3, -2, 5) and b = (4, 1, -3) produce a × b = (1, 29, 11) with magnitude 31.03. The dot products of the result with a and with b are both exactly 0, confirming perpendicularity. This case is useful because it mixes positive and negative components, so it exercises every term of the cross product formula and makes sign errors easy to spot.

The second and third cases are simpler but still instructive. For a = (1, 0, 2) and b = (0, 3, -1), the result is (-6, 1, 3) with magnitude 6.78. For a = (2, 2, 2) and b = (1, -1, 3), the result is (8, -4, -4) with magnitude 9.80. Because the cross product is anti-commutative, swapping the input order in any of these cases negates every component of the answer — b × a = -(a × b). If two vectors are parallel, the result is the zero vector, which is a quick test for parallelism.

Each magnitude also equals the area of the parallelogram spanned by the two vectors, since |a × b| = |a||b|sin(theta). Half of that value gives the area of the triangle the vectors form. Keep in mind that the cross product exists only in three dimensions — and in seven dimensions in advanced settings — so these examples are specific to 3D vectors.

Vector aVector ba × bMagnitude
(3, -2, 5)(4, 1, -3)(1, 29, 11)31.03
(1, 0, 2)(0, 3, -1)(-6, 1, 3)6.78
(2, 2, 2)(1, -1, 3)(8, -4, -4)9.80

Magnitude, area and the angle between vectors

The magnitude of the cross product carries a direct geometric meaning that makes a cross product calculator especially useful for area problems. The formula |a x b| = |a||b| sin(theta) ties the length of the resulting vector to the angle theta between the two input vectors. Because sin(theta) reaches its maximum of 1 when the vectors are perpendicular and drops to 0 when they are parallel, the magnitude tells you exactly how much of the two vectors' lengths is contributing to a shared plane. This is why parallel vectors produce the zero vector — there is no perpendicular direction to define, and the area they span collapses to zero.

That magnitude equals the area of the parallelogram that the two vectors span when placed tail to tail. If you only need the area of the triangle formed by the two vectors, take half of |a x b|. For example, using the verified vectors a = (3, -2, 5) and b = (4, 1, -3), the cross product is (1, 29, 11) with magnitude 31.03, so the parallelogram area is 31.03 square units and the triangle area is half of that, or about 15.52 square units. The same approach works with a = (1, 0, 2) and b = (0, 3, -1), which give a cross product of (-6, 1, 3) with magnitude 6.78, meaning the parallelogram area is 6.78 and the triangle area is roughly 3.39.

Because the cross product involves sin(theta) and the dot product involves cos(theta), you can combine the two to recover the exact angle between the vectors without measuring it directly. The dot product gives you |a||b| cos(theta), while the cross product magnitude gives you |a||b| sin(theta). Dividing the second by the first produces tan(theta), from which theta follows through the inverse tangent function. This method is reliable across the full range of angles and avoids the ambiguity that can arise when using either product alone.

The right-hand rule fixes the direction of the cross product vector, while the magnitude formula fixes its length. Together, they explain why reversing the order of the vectors flips the sign — b x a = -(a x b) — without changing the magnitude. The parallelogram area stays the same, but the perpendicular vector points the opposite way. A third confirmed example shows this clearly: a = (2, 2, 2) and b = (1, -1, 3) give a cross product of (8, -4, -4) with magnitude 9.80, so the spanned parallelogram has an area of 9.80 square units regardless of which vector is listed first.

Direction: the right-hand rule

The cross product a x b of two 3D vectors is a third vector perpendicular to both, and its direction follows the right-hand rule. To apply the rule, hold your right hand flat with fingers pointing along the first vector, a. Then curl your fingers toward the second vector, b, rotating through the smaller angle between them. Your extended thumb now points in the direction of the cross product. This physical gesture encodes the orientation that the formula (a2b3 - a3b2, a3b1 - a1b3, a1b2 - a2b1) produces. A cross product calculator applies this same convention automatically, so you do not have to work out the orientation by hand.

Because the right-hand rule depends on the order in which you move from one vector to the other, swapping the two inputs reverses the direction. If you curl your fingers from b to a instead of from a to b, your thumb points the opposite way. This is why the cross product is anti-commutative: b x a = -(a x b). The two results have the same magnitude, since the parallelogram spanned by the vectors has the same area either way, but the vectors point in opposite directions. The sign flip is purely about orientation, not length.

You can see this clearly with a concrete example. Using a = (3, -2, 5) and b = (4, 1, -3), the cross product a x b equals (1, 29, 11) with magnitude 31.03. The dot products of the result with a and with b are both exactly 0, confirming perpendicularity. If you reverse the order and compute b x a, you get (-1, -29, -11), the exact negative of the original. The magnitude stays 31.03, but the direction has flipped. This anti-commutativity is a defining feature of the cross product and a common source of sign errors when working by hand.

The right-hand rule also gives a quick visual test for parallel vectors. When two vectors point in the same or opposite directions, there is no rotation from one to the other, so your curled fingers have nowhere to go and your thumb cannot point in a meaningful direction. In formula terms, parallel vectors give the zero vector, which is a quick test for parallelism. The magnitude |a x b| = |a||b|sin(theta) equals the area of the parallelogram the two vectors span, and when the angle theta is 0 or 180 degrees, sin(theta) is 0 and the area vanishes. The cross product exists only in three dimensions, and in seven dimensions in advanced settings, but the right-hand rule itself is a specifically three-dimensional tool.

Common mistakes

The most frequent slip when computing a cross product by hand is a sign error in the middle component. The formula for the cross product a x b of two 3D vectors is (a2b3 - a3b2, a3b1 - a1b3, a1b2 - a2b1). Notice that the middle term is a3b1 - a1b3, not a1b3 - a3b1. The subtraction order reverses compared with the first and third terms, and that reversal trips up many people. For example, using a = (3, -2, 5) and b = (4, 1, -3), the correct result is (1, 29, 11). If you accidentally flip the sign on the middle component, you would get 29 where it should be, or -29 instead, and the resulting vector would no longer be perpendicular to both inputs. A reliable cross product calculator handles this sign automatically, but when working by hand, write the full formula before plugging in numbers.

A second common mistake is treating the result as a scalar. The cross product of two vectors is itself a vector, not a single number. Its magnitude |a x b| = |a||b|sin(theta) equals the area of the parallelogram the two vectors span, and half of that magnitude is the area of the triangle they form. But the cross product itself has both magnitude and direction. Its direction follows the right-hand rule, pointing perpendicular to both input vectors. For instance, a = (1, 0, 2) and b = (0, 3, -1) give a cross product of (-6, 1, 3) with magnitude 6.78. The magnitude alone, 6.78, is a scalar, but the full answer includes all three components. Confusing the two leads to errors in physics problems involving torque, magnetic force, and angular momentum, where direction matters as much as size.

A third frequent mistake is expecting a cross product in 2D. The cross product exists only in three dimensions, and in seven dimensions in advanced settings, but never in two. If you have two 2D vectors and want a cross product, you must first embed them in 3D by setting the third component to zero. Only then does the formula apply, and the result will be a vector along the third axis. Without that embedding, the operation is undefined. Some sources loosely refer to a 2D cross product returning a scalar, but that is really a different operation, sometimes called the perp dot product or scalar cross product. It gives the signed area of the parallelogram and is useful, but it is not the same object.

Finally, remember that the cross product is anti-commutative. Switching the order reverses the sign: b x a = -(a x b). For example, a = (2, 2, 2) and b = (1, -1, 3) give (8, -4, -4), but b x a would give (-8, 4, 4). Also, parallel vectors give the zero vector, which is a quick test for parallelism. If your result is (0, 0, 0), the two inputs point in the same or opposite directions.

FAQs

How do you calculate the cross product?

Compute it component by component using the formula (a2b3 - a3b2, a3b1 - a1b3, a1b2 - a2b1). For example, with a = (3, -2, 5) and b = (4, 1, -3), the verified result is (1, 29, 11). This calculator applies that formula directly, so you enter the components of each vector and get the result instantly.

What does the cross product represent geometrically?

The cross product gives a vector perpendicular to both input vectors. Its length equals the area of the parallelogram those two vectors span. In the first verified example, that area is 31.03 square units. The direction follows the right-hand rule, so the result points orthogonally away from the plane containing the inputs.

How do you check a cross product answer?

Dot the result with each input vector. Both dot products must equal zero, confirming the result is perpendicular to each input. For the verified result (1, 29, 11) against inputs (3, -2, 5) and (4, 1, -3), both dot products are exactly zero, confirming the answer is correct.

What is the cross product of parallel vectors?

The cross product of parallel vectors is the zero vector. This happens because sin(theta) equals zero when the angle between the vectors is zero or 180 degrees. This property makes the cross product a standard parallelism test: if the result is the zero vector, the inputs are parallel.

Does the order matter in a cross product?

Yes. The cross product is anti-commutative, meaning b x a is the exact negative of a x b. The result points the opposite way when you swap the order. This matters for direction in physics and engineering applications, so always keep track of which vector comes first.

Can you take the cross product of 2D vectors?

Not as a vector. In 2D, only the z-component exists, calculated as a1b2 - a2b1. The result is a scalar, not a vector, which is why this calculator works in 3D. To use 2D vectors here, treat them as 3D vectors with a zero z-component.

Sources

Related calculators

Vector Dot Product Calculator
The dot product of two 3D vectors, their magnitudes and the angle between them — and what the sign of the result tells you.
Vector Magnitude Calculator
The magnitude (length) of a 2D or 3D vector, its unit vector, and — in 2D — the direction angle, with the Pythagorean steps shown.
Angle Between Two Vectors Calculator
The angle between two 3D vectors from their dot product — in degrees and radians, with the cosine shown.
Covariance Calculator
Sample and population covariance for up to eight paired observations, with the correlation coefficient alongside — the measure of whether two series move together.