Skip to content
Math & Scientific

Vector Product Calculator

Vector Product Calculator

Find the cross product, its size, the angle between two vectors, and the area they span.

x
y
z
x
y
z

Multiply two ordinary numbers and you get another number. Multiply two vectors using the vector product, also called the cross product, and something more interesting happens: you get a brand-new vector that points at right angles to both of the originals. That one result powers torque calculations in physics, rotation in computer graphics, and area formulas in geometry. This Vector Product Calculator takes the three components of vector A and vector B and returns the cross product, its magnitude, the dot product, the angle between the vectors, and the area of the parallelogram they span, all with a full breakdown of the arithmetic.

The cross product is famously fiddly to compute by hand. Each component is a difference of two products, the middle component follows a sign pattern that trips up almost every learner, and one swapped value quietly ruins the whole answer. Letting the calculator do the routine work leaves you free to think about what the result means, while the breakdown line lets you check every step against your own working.

What This Calculator Does

Give the calculator two three-dimensional vectors and it produces five related answers. The headline result is the cross product A x B, a vector perpendicular to both inputs. Next comes the magnitude of that cross product, a single number that measures how strongly the two vectors spread apart. The dot product is reported as well, because it pairs with the magnitudes to give the fourth answer, the angle between the vectors in degrees. The fifth answer, the area of the parallelogram with sides A and B, is equal to the magnitude of the cross product.

These five outputs belong together. The cross product tells you direction and spread, the dot product tells you alignment, and the angle translates that alignment into a familiar unit you can picture. Seeing them side by side builds a complete picture of how two vectors relate to each other in space, which is exactly what problems in mechanics, electromagnetism, and 3D graphics ask for.

The calculator also protects you from a meaningless case. If either vector is the zero vector, it has no direction, so the angle between the vectors cannot be defined and the cross product collapses to zero. In that situation the calculator shows an error message instead of pretending to produce an angle.

How to Use This Calculator

Type the x, y, and z components of vector A into the first row and the components of vector B into the second row. Negative numbers and decimals are both fine, and a component that is truly zero should be entered as 0 rather than left blank. All six fields are required because the cross product uses every component of both vectors.

Press Calculate and read the results from the top. The first line is the cross product itself. The lines below give its magnitude, the dot product, the angle in degrees, and the parallelogram area. The breakdown paragraph at the bottom shows the three component calculations with your actual numbers, plus the magnitudes and the angle step, so you can verify each stage. Press Reset to clear everything and start a new pair of vectors.

Remember that order matters here more than anywhere else in vector work. A x B and B x A have the same length but point in exactly opposite directions. Enter the vectors in the order your problem specifies, especially when the direction of the result, such as a torque or a surface normal, carries physical meaning.

The Formula and the Idea Behind It

The cross product of A = (ax, ay, az) and B = (bx, by, bz) is defined component by component: the x component is ay times bz minus az times by, the y component is az times bx minus ax times bz, and the z component is ax times by minus ay times bx. Each component mixes the other two axes, which is why the result ends up perpendicular to both inputs. Many students remember the pattern as a determinant, cycling through the components in order.

The size of the cross product follows the rule |A x B| = |A| |B| sin(theta), where theta is the angle between the vectors. When the vectors are perpendicular, the sine is 1 and the product is as large as it can be. When they point the same way, the sine is 0 and the cross product vanishes. That is also why the magnitude equals the area of the parallelogram the two vectors span: base times height, where the height comes from the perpendicular spread.

The angle uses the dot product instead: cos(theta) = (A . B) / (|A| |B|). The calculator finds both magnitudes, computes the dot product, divides, and takes the inverse cosine, converting the result from radians to degrees. Reporting both products side by side shows the two complementary views of the same geometry: the dot product tracks the cosine of the angle, the cross product tracks the sine.

Worked Example: A = (2, 3, 4) and B = (5, 6, 7)

Start with the cross product. The x component is ay times bz minus az times by, which is 3 times 7 minus 4 times 6, or 21 - 24 = -3. The y component is az times bx minus ax times bz, which is 4 times 5 minus 2 times 7, or 20 - 14 = 6. The z component is ax times by minus ay times bx, which is 2 times 6 minus 3 times 5, or 12 - 15 = -3. So A x B = (-3, 6, -3).

Next, the magnitude of the cross product: square each component to get 9, 36, and 9, add them to get 54, and take the square root. The square root of 54 is about 7.35, so |A x B| is about 7.35, and the parallelogram area is also 7.35 square units. The dot product is 2 times 5 plus 3 times 6 plus 4 times 7, which is 10 + 18 + 28 = 56.

For the angle, first find the two magnitudes. |A| is the square root of 4 + 9 + 16, the square root of 29, about 5.39. |B| is the square root of 25 + 36 + 49, the square root of 110, about 10.49. Then cos(theta) = 56 / (5.39 x 10.49) = 56 / 56.53, about 0.9906. The inverse cosine of 0.9906 is about 7.48 degrees. The small angle makes sense: the components of B are each a bit larger than those of A in a similar pattern, so the vectors point in nearly the same direction, and the modest cross product magnitude confirms how little they spread apart.

How to Read Your Results

Start with the cross product line. Its direction follows the right-hand rule: point the fingers of your right hand along A, curl them toward B, and your thumb points along A x B. If the direction of your result matters, such as for a rotation axis or a normal to a surface, this rule tells you whether the sign pattern you got is the one you expected.

Then look at the angle. An angle near 0 degrees means the vectors nearly coincide, near 90 degrees means they are close to perpendicular, and near 180 degrees means they point in opposite directions. Cross-check with the cross product magnitude: a small angle should come with a small cross product relative to the two lengths, while a near-right angle produces a cross product magnitude close to |A| times |B|.

The area line translates the geometry into something concrete. If A and B describe the sides of a plot of land, two edges of a panel, or two displacement steps, the parallelogram area is a real quantity you can use, and half of it is the area of the triangle the two vectors form with their difference.

Where the Cross Product Is Used

Torque is the classic physics example. Torque equals the cross product of the position vector and the force vector, which captures the everyday truth that a push only twists effectively when it acts at an angle to the lever arm. The same structure appears in angular momentum and in the magnetic force on a moving charge, where the force ends up perpendicular to both the velocity and the magnetic field.

In computer graphics, the cross product finds the normal vector of a surface from two edges of a triangle, and normals control how light reflects and how faces are shaded or hidden. In engineering and navigation it produces rotation axes, and in geometry it gives parallelogram and triangle areas directly from coordinates, with no need to measure a height separately.

Common Mistakes to Avoid

The best-known trap is the y component. Its pattern, az times bx minus ax times bz, reverses the order many people expect, and working it as ax times bz minus az times bx flips its sign. In the worked example that error would turn the 6 into -6 and tilt the whole result. A second trap is swapping the vectors: B x A is the negative of A x B, so order is part of the question, not a detail.

Other frequent slips include mixing up which product gives a vector and which gives a number, expecting an angle from a zero vector, and reporting the cross product magnitude as the area of a triangle without halving it. Finally, watch rounding: the angle is sensitive when the vectors are nearly parallel, so keep a few extra decimals in the magnitudes until the final step, just as the calculator does.

Frequently Asked Questions

1. What is the vector product?

The vector product, or cross product, combines two vectors into a new vector that is perpendicular to both. Its length equals the area of the parallelogram the two vectors span.

2. How is the cross product different from the dot product?

The dot product returns a single number measuring alignment, while the cross product returns a vector measuring perpendicular spread. One tracks the cosine of the angle between the vectors, the other tracks the sine.

3. What is the formula for the cross product?

For A = (ax, ay, az) and B = (bx, by, bz), the cross product is (ay bz - az by, az bx - ax bz, ax by - ay bx). Each component is a difference of two products drawn from the other two axes.

4. Does the order of the vectors matter?

Yes, completely. B x A is the exact negative of A x B: same length, opposite direction. Always enter the vectors in the order the problem states.

5. What does the right-hand rule tell me?

It gives the direction of the cross product. Point your right-hand fingers along the first vector, curl them toward the second, and your thumb shows the direction of A x B.

6. How is the angle between two vectors found?

Divide the dot product by the product of the two magnitudes, then take the inverse cosine. The calculator reports the result in degrees between 0 and 180.

7. Why is the parallelogram area equal to the cross product magnitude?

Area is base times perpendicular height. The cross product magnitude equals |A| |B| sin(theta), which is exactly one side multiplied by the perpendicular height contributed by the other, so the two quantities match.

8. What is the area of the triangle formed by two vectors?

Half the parallelogram area, so half the magnitude of the cross product. A triangle with sides A and B and included angle theta has area one half of |A x B|.

9. What happens if the vectors are parallel?

The cross product becomes the zero vector, because sin(0) and sin(180) are both zero. The vectors span no area, and the angle reported will be 0 or 180 degrees.

10. What happens if one vector is zero?

The zero vector has no direction, so the angle is undefined and the cross product is zero. The calculator shows an error in this case rather than inventing an angle.

11. Can I use decimal or negative components?

Yes. Every field accepts decimals and negative values, which are common in measured forces, velocities, and coordinates. The formulas handle the signs automatically.

12. Where is torque in all of this?

Torque is the cross product of the position vector from the pivot and the force vector. Its magnitude is the twisting strength, and its direction is the axis of rotation given by the right-hand rule.

13. Why is the y component of the cross product so often wrong?

Because its term order is reversed compared with the other two components: az bx - ax bz rather than ax bz - az bx. Working through the determinant pattern carefully, or checking with the breakdown here, prevents the sign flip.

14. Is the cross product defined in two dimensions?

Not as a vector. In two dimensions you can still compute the z-style component ax by - ay bx, which gives signed area, but the full cross product needs three dimensions. Entering 0 for both z components in this calculator reproduces that case.

15. What units does the cross product have?

Its units are the product of the input units. Two lengths give an area-like quantity, a length and a force give torque units. The components describe direction in space, while the magnitude carries the combined units.

Final Thoughts

The cross product rewards a moment of reflection: one calculation hands you a direction, a size, an angle, and an area, all describing how two vectors sit in space together. Use this calculator to verify homework and project work, and read the breakdown until the component pattern, especially the tricky y component, feels automatic. Once the pattern clicks, torque, normals, and areas stop being separate topics and become one idea you can apply anywhere.