CCalcNest AI

Cross Product Calculator

3D cross product vector.

Enter values above — results appear instantly as you type.
AI Insight: The cross product gives a vector perpendicular to two others, which is how 3D software computes surface normals for lighting. Unlike the dot product, order matters — flip the inputs and the result points the opposite way.
Notice: This calculator is provided for educational reference. Results depend entirely on the values you enter, and you should verify any figure used for academic, professional, or safety-critical purposes. See our full disclaimer.
Written with AI assistance and checked by automated validation · Last updated: August 2026 · How we build and check this · Methodology
Looking for a different calculator? Try our AI Finder — describe what you need in plain English. Try AI Finder →

Formula

A×B = (AyBz-AzBy, AzBx-AxBz, AxBy-AyBx)

Example

(1,2,3)×(4,5,6) = (-3,6,-3).

Embed this calculator on your site

Add this free calculator to your own website with one line of code. The embedded version is responsive, ad-free, and includes a small attribution link back to CalcNest AI.

<iframe src="https://calcnestai.com/embed/cross-product-calculator.html" width="100%" height="700" frameborder="0" style="border: 1px solid #e5e5e5; border-radius: 12px; max-width: 720px;" loading="lazy" title="Cross Product Calculator — Free Tool by CalcNest AI"></iframe>

Understanding the Cross Product Calculator

A cross product calculator multiplies two three-dimensional vectors to produce a third, perpendicular to both. The result is a vector rather than a number, which distinguishes it from the dot product and makes it the tool for anything involving orientation or rotation.

How it actually works

Enter the components of two vectors. The calculator applies the determinant formula and gives the resulting vector and its magnitude. Vectors (1,2,3) and (4,5,6) give a cross product of (−3,6,−3) with magnitude 7.35.

Cross product against dot product
PropertyCrossDot
ResultVectorScalar
GeometryPerpendicular to bothProjection
Zero whenVectors parallelVectors perpendicular
CommutativeNo, reverses signYes

The deeper context most people miss

The cross product is anticommutative, so swapping the operands negates the result. That is why the right-hand rule exists: the direction depends on the order, and there is no way to determine it from the magnitudes alone, so a convention is required.

Why the cross product only works in three dimensions

This is a genuine mathematical peculiarity rather than a limitation of notation. The requirement that two vectors produce a third vector perpendicular to both, with magnitude equal to the area of the parallelogram they span, can only be satisfied in three and seven dimensions, a result connected to the existence of normed division algebras. In two dimensions there is no room for a perpendicular direction within the plane. In four or more, the space perpendicular to two vectors has more than one dimension, so no single vector is determined. The seven-dimensional case exists and relates to octonions and lacks several properties that make the three-dimensional version useful. The general replacement is the wedge product from exterior algebra, which produces a bivector rather than a vector and works in any dimension, and in three dimensions the bivector happens to be identifiable with a vector, which is why the cross product exists at all there. This has a practical consequence worth knowing: the cross product result is technically a pseudovector, meaning it behaves differently from an ordinary vector under reflection. Reflecting a system reverses ordinary vectors and leaves pseudovectors pointing the same way relative to the reflected system, which is why angular momentum and magnetic field, both defined by cross products, behave counterintuitively in mirror symmetry arguments and why this matters in physics.

A worked example: the magnitude as area

Vectors (1,2,3) and (4,5,6) give a magnitude of 7.35, and that number is exactly the area of the parallelogram the two vectors span, which is one of the cross product's most useful properties. Half of it is the area of the triangle they define, which is the cleanest way to compute triangle area from coordinates and is numerically better behaved than Heron's formula. The magnitude equals the product of the two lengths times the sine of the angle between them, which is why it vanishes for parallel vectors and is maximal for perpendicular ones, exactly opposite to the dot product's behaviour. The scalar triple product, taking the dot of one vector with the cross of two others, gives the volume of the parallelepiped they span, and it is zero precisely when the three vectors are coplanar, which makes it the standard test for coplanarity. In computer graphics these properties do constant work: surface normals are computed as cross products of two edge vectors, which is how lighting is calculated for every polygon; the sign of a cross product determines which side of a line a point lies on, used in backface culling and point-in-triangle tests; and the winding order of vertices determines facing direction. Getting the operand order wrong flips every normal, which produces a characteristic rendering failure where surfaces appear inside out.

Deciding when to use cross versus dot

The choice follows from what is being asked. Use the dot product for projection, for finding the angle between vectors, for testing perpendicularity, and for computing work as force times displacement along the direction of motion. Use the cross product for finding a perpendicular direction, for area and volume, for torque as the moment of a force about a point, for angular momentum, and for the magnetic force on a moving charge. Physically the pattern is that dot products appear where only the aligned component matters and cross products where the perpendicular component matters. Torque illustrates it: pushing a spanner along its length achieves nothing while pushing perpendicular is maximally effective, which is exactly the sine dependence of the cross product, and this is why a longer spanner gives more leverage for the same force. In geometry and graphics, the cross product answers orientation questions that the dot product cannot: whether a turn is left or right, which side of a plane a point sits on, and whether a polygon is wound clockwise. In three-dimensional rotation, quaternions have largely replaced explicit cross product manipulation in graphics engines because they compose rotations without gimbal lock, though the cross product remains inside their multiplication rule.

The right-hand rule and why chirality matters

The direction of a cross product cannot be determined from the vectors alone, since two opposite directions are both perpendicular to the pair. A convention chooses one, and the right-hand rule is universal in mathematics and physics: point the fingers along the first vector, curl them toward the second, and the thumb indicates the result. This is a genuine choice rather than a fact about the world, and a left-hand convention would be internally consistent while flipping the sign of every cross product. The consequences appear wherever handedness matters. Coordinate systems are right-handed or left-handed, and graphics APIs differ, with OpenGL conventionally right-handed and DirectX left-handed, which is a recurring source of confusion when porting code and produces mirrored scenes when mishandled. Screw threads, corkscrews, and helices have handedness. In physics, the fact that cross-product-derived quantities are pseudovectors means that a mirror-image universe would have magnetic fields pointing the opposite way relative to the reflected system, which sounds paradoxical until one recognises that the field is a bookkeeping device for a fundamentally chiral relationship. Parity violation in weak nuclear interactions, discovered in 1956, showed that nature itself distinguishes left from right at a fundamental level, which was genuinely shocking at the time and remains one of the more surprising experimental results in physics.

Variations: dot product, triple products, and higher dimensions

The dot product generalises to any dimension and gives a scalar, computed as the sum of componentwise products, and equals the product of magnitudes times the cosine of the angle. The scalar triple product gives parallelepiped volume and tests coplanarity. The vector triple product satisfies an expansion identity sometimes remembered as BAC minus CAB. The wedge product generalises the cross product to any dimension, producing bivectors and higher-grade objects, and geometric algebra builds a unified framework around it that some find clearer than the traditional vector calculus treatment. In two dimensions, a scalar cross product giving the signed area is commonly used in computational geometry for orientation tests. Quaternions encode three-dimensional rotations and contain the cross product within their multiplication. Tensors generalise further. In practical computation, cross products are cheap and appear in inner loops of graphics code, and the main correctness concerns are operand order determining sign, coordinate system handedness, and normalising the result when only direction is wanted, since the magnitude carries area information that is frequently unwanted for a surface normal.

Using the cross product correctly

Remember the result is a vector perpendicular to both inputs, with magnitude equal to the parallelogram area, which makes half of it the triangle area from coordinates. Note that the operation is anticommutative, so swapping the operands negates the result, and getting the order wrong flips every surface normal in a graphics pipeline. Apply the right-hand rule consistently, and check which handedness your coordinate system and graphics API use, since OpenGL and DirectX differ and mixing them mirrors scenes. Use the dot product rather than the cross when you want an angle, a projection, or a perpendicularity test. Use the scalar triple product to test coplanarity, since it is zero exactly when three vectors lie in a plane. Normalise the result when only direction is wanted, since the magnitude encodes area rather than being incidental. Use the cross product magnitude rather than Heron's formula for triangle area from coordinates, since it is numerically better behaved. And consider quaternions for composing three-dimensional rotations, which avoid the gimbal lock that Euler angles suffer.

What people get wrong

  • Swapping the operand order, which negates the result and flips every surface normal, producing the characteristic inside-out rendering failure in graphics.
  • Assuming the cross product generalises to higher dimensions, when it exists only in three and seven dimensions and the wedge product is the general replacement.
  • Using the cross product magnitude directly as a surface normal, when only the direction is wanted and the magnitude encodes the parallelogram area.
  • Mixing right-handed and left-handed coordinate conventions between libraries, which mirrors scenes and is a recurring problem when porting graphics code.

Where the math comes from

A × B = (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁), conventionally written as a determinant. The result is perpendicular to both inputs, with magnitude |A||B|sin θ equal to the area of the parallelogram they span. The operation is anticommutative, so A × B = −(B × A), and the direction follows the right-hand rule by convention.

Questions and answers

What is the difference between percent and percentage point?

Percent change is relative (going from 5% to 10% is a 100% increase). Percentage point change is absolute (the same shift is a 5 percentage point increase). News stories often confuse these.

How do I calculate a discount?

Discount amount = original x discount %. Final price = original x (1 - discount %). For 20% off $100: discount $20, final $80.

What is the formula for compound percentage?

Final = original x (1 + r1) x (1 + r2) x ... where each r is a percentage as decimal. A 10% raise then 10% cut: 1.10 x 0.90 = 0.99 = 99% of original.

How do I reverse a percentage?

If $80 is 80% of original: original = $80 / 0.80 = $100. To reverse 'X% off' to find original: original = final / (1 - X/100).

How do percentages work in tax?

Marginal tax rate applies to income within a bracket. Effective rate is total tax / total income. They diverge because of progressive brackets.

What does the cross product's magnitude mean?

The area of the parallelogram spanned by the two vectors, so half of it is the area of the triangle they define. That makes it the cleanest way to compute triangle area from coordinates, and it's numerically better behaved than Heron's formula.

Why does the order of the vectors matter?

Because the cross product is anticommutative: swapping the operands negates the result. Two opposite directions are perpendicular to any pair of vectors, so the order determines which one you get, and the right-hand rule fixes the convention.

Does the cross product work in two or four dimensions?

No. Two dimensions have no room for a perpendicular direction within the plane, and four or more have too many, so no single vector is determined. It exists only in three and seven dimensions, with the wedge product being the general replacement.

When should I use dot instead of cross?

For angles, projections, perpendicularity tests, and work as force along displacement. Use the cross product for perpendicular directions, areas, volumes, torque, angular momentum, and orientation questions like which side of a line a point falls on.

What is the right-hand rule?

A convention fixing the direction: point your fingers along the first vector, curl toward the second, and your thumb gives the result. A left-hand convention would be equally consistent while flipping every sign, which is why coordinate system handedness must be stated.

Why do my graphics normals point the wrong way?

Almost always operand order or coordinate handedness. Swapping the two edge vectors in a cross product flips every normal, and OpenGL and DirectX use opposite handedness conventions, which mirrors scenes when mixed.

How do I test whether three vectors are coplanar?

The scalar triple product, taking the dot of one with the cross of the other two, gives the parallelepiped volume and is zero exactly when the three vectors lie in a common plane. It's the standard coplanarity test.

Related calculators

Polar to Cartesian · Summation Sigma · Scientific Notation · Exponent · Inverse Function