Cross Product Calculator

Magnitude of a × b7.35
Cross product a × b(-3, 6, -3)
Dot product a · b (for contrast)32
Angle between the vectors12.9°
How this was calculated
  1. Component by component: i = ay·bz − az·by = 2 × 6 − 3 × 5 = -3; j = az·bx − ax·bz = 6; k = ax·by − ay·bx = -3. So a × b = (-3, 6, -3).
  2. Its magnitude is √((-3)² + (6)² + (-3)²) = 7.35 — geometrically the area of the parallelogram the two vectors span, which is why the cross product vanishes when the vectors are parallel.
  3. The result points perpendicular to both inputs (right-hand rule), unlike the dot product 32, which is a scalar measuring alignment: the angle between these vectors is 12.9°. Swapping the order flips the cross product's sign: b × a = −(a × b).

A cross product calculator takes two three-dimensional vectors, a and b, and returns a third vector perpendicular to both. Given inputs a = (ax, ay, az) and b = (bx, by, bz), the calculator computes a × b = (ay·bz − az·by, az·bx − ax·bz, ax·by − ay·bx). The result follows the right-hand rule and is anti-commutative, meaning b × a = −(a × b). For example, (1, 2, 3) × (4, 5, 6) = (−3, 6, −3), with magnitude 7.35. The magnitude |a × b| equals |a||b|sin θ, which is the area of the parallelogram spanned by the two vectors. Parallel vectors produce a zero cross product since sin 0° = 0, making this a standard parallelism test.

This formula is the accepted standard for computing cross products because it directly encodes the geometric definition into algebra. The determinant-based expansion guarantees a unique perpendicular vector whose magnitude matches the parallelogram area, and verified cases confirm its reliability: i × j = (0, 0, 1) = k with magnitude 1, and (2, 0, 0) × (1, 1, 0) = (0, 0, 2) with magnitude 2 for vectors 45° apart. This page shows the formula, step-by-step workings, worked examples, and sources so you can follow every calculation from input to final vector.

Worked examples

Textbook pair (1,2,3) × (4,5,6)

Primary result: 7.35. (1 · 2 · 3 · 4 · 5 · 6)

Magnitude of a × b7.35
Cross product a × b(-3, 6, -3)
Dot product a · b (for contrast)32
Angle between the vectors12.9°

Unit axes i × j

Primary result: 1. (1 · 0 · 0 · 0 · 1 · 0)

Magnitude of a × b1
Cross product a × b(0, 0, 1)
Dot product a · b (for contrast)0
Angle between the vectors90°

45 degrees apart

Primary result: 2. (2 · 0 · 0 · 1 · 1 · 0)

Magnitude of a × b2
Cross product a × b(0, 0, 2)
Dot product a · b (for contrast)2
Angle between the vectors45°

What the cross product is

The cross product of two three-dimensional vectors produces a new vector, not a number. That vector is perpendicular to both of the original inputs, and its direction is set by the right-hand rule: point your fingers from the first vector toward the second, and your thumb points along the result. The size of the result equals the area of the parallelogram that the two vectors span. In formula terms, a × b = (ay·bz − az·by, az·bx − ax·bz, ax·by − ay·bx). A cross product calculator applies this formula directly, saving you from working through each component by hand.

The magnitude follows a clean geometric rule: |a × b| equals |a||b|sin θ, which is the same as the area of the parallelogram spanned by the two vectors. When the vectors are perpendicular, the spanned area reaches its maximum. When they point in the same direction, the area shrinks to zero. This is why parallel vectors always produce a zero cross product — sin 0° = 0 — which makes the operation a standard test for parallelism. The cross product is also anti-commutative, meaning b × a = −(a × b), so swapping the order flips the result's direction while keeping the same magnitude.

A few verified examples show how this plays out. The unit vectors i and j cross to give (0, 0, 1) = k, with magnitude 1. Scaling up, (2, 0, 0) × (1, 1, 0) = (0, 0, 2), magnitude 2, with the two vectors sitting 45° apart. For a less obvious pair, (1, 2, 3) × (4, 5, 6) = (−3, 6, −3), with magnitude 7.35. The same pair has a dot product of 32 and an angle of 12.9° between them, which helps confirm that the cross product captures a different relationship than the dot product does.

Worked examples

The cross product calculator above can verify each result shown below. Every pair has been checked against the standard formula a × b = (ay·bz − az·by, az·bx − ax·bz, ax·by − ay·bx), so you can trust the numbers as you build intuition for how the operation behaves.

The first row illustrates a general case. Taking a = (1, 2, 3) and b = (4, 5, 6), the formula yields (−3, 6, −3). The magnitude of that result is 7.35, which equals the area of the parallelogram spanned by the two vectors. For comparison, the same pair has a dot product of 32 and the angle between them is 12.9°, reinforcing that the cross product captures the component of the vectors that is perpendicular rather than parallel.

The second row uses the unit axes. The classic result i × j = (0, 0, 1) = k has magnitude 1, matching the identity |a × b| = |a||b|sin θ when both inputs are unit vectors 90° apart. The third row places the vectors 45° apart: (2, 0, 0) × (1, 1, 0) = (0, 0, 2), with magnitude 2. Because the cross product is perpendicular to both inputs by the right-hand rule and is anti-commutative — meaning b × a = −(a × b) — swapping the order flips the sign of every component. Parallel vectors, by contrast, have a zero cross product since sin 0° = 0, which makes the operation a standard parallelism test.

  • Result vector is perpendicular to both input vectors, following the right-hand rule.
  • Magnitude equals the parallelogram area: |a × b| = |a||b|sin θ.
  • Swapping inputs reverses the sign: b × a = −(a × b).
  • Parallel inputs produce a zero vector, so the test for parallelism is simply whether the result is (0, 0, 0).
Input vectors a and bCross product a × bMagnitudeNotes
(1, 2, 3) and (4, 5, 6)(−3, 6, −3)7.35Dot product 32; angle 12.9°
i and j (unit axes)(0, 0, 1) = k1Perpendicular unit vectors
(2, 0, 0) and (1, 1, 0)(0, 0, 2)2Vectors 45° apart
When the cross product is (0, 0, 0), the two input vectors are parallel (or one is zero). This follows directly from sin 0° = 0 in the magnitude formula |a × b| = |a||b|sin θ.

The component formula

The component formula for the cross product of two three-dimensional vectors a = (ax, ay, az) and b = (bx, by, bz) is a × b = (ay·bz − az·by, az·bx − ax·bz, ax·by − ay·bx). Each component of the result follows a pattern: take the two components of a and b that are not in the same position as the component you are computing, multiply them in a crossed fashion, and subtract. This pattern becomes far easier to remember once you see it laid out as a determinant.

Write the unit vectors i, j, and k across the top row, the components of a across the second row, and the components of b across the third row. Expanding along the first row gives you the three components of the cross product directly. The first component comes from the 2×2 block formed by deleting the i row and column: ay·bz − az·by. The second component, from the j block, picks up a negative sign: −(ax·bz − az·bx), which simplifies to az·bx − ax·bz. The third component, from the k block, is ax·by − ay·bx. A cross product calculator applies this determinant expansion automatically, which removes the sign errors that tend to creep in when the formula is worked by hand.

A quick check with standard basis vectors confirms the layout. The cross product i × j = (0, 0, 1) = k, with magnitude 1, because the determinant reduces to a single 1 in the k position. For a slightly richer example, (2, 0, 0) × (1, 1, 0) = (0, 0, 2), with magnitude 2; the two input vectors sit 45° apart, and the result points straight along the z-axis, perpendicular to both inputs as the right-hand rule predicts. The anti-commutative property holds throughout: b × a = −(a × b), so swapping the rows of the determinant flips the sign of every component.

One more verified pair shows the geometry at work. Taking (1, 2, 3) × (4, 5, 6) = (−3, 6, −3), with magnitude 7.35. The same pair has a dot product of 32 and an angle of 12.9° between them. The magnitude |a × b| equals the area of the parallelogram spanned by the two vectors, which is also |a||b|sin θ. Because sin 0° = 0, parallel vectors always produce a zero cross product, making the formula a standard test for parallelism.

Magnitude means area

The magnitude of a cross product tells you something concrete about the space between two vectors: it equals the area of the parallelogram they span. If you picture the two vectors as adjacent sides of a parallelogram, then the area enclosed by that shape is exactly |a × b|. This is why a cross product calculator can double as an area tool — the same number that tells you the length of the resulting vector also tells you how much two-dimensional surface the inputs enclose.

That area connection comes from the sine of the angle between the vectors. The magnitude satisfies |a × b| = |a||b|sin θ, where θ is the angle from a to b. Because sin θ reaches its maximum at 90°, the area is largest when the two vectors are perpendicular. When the vectors are parallel, sin 0° = 0, so the cross product drops to zero. This makes the cross product a standard test for parallelism: if a × b equals the zero vector, the inputs point along the same line or one is zero.

The formula a × b = (ay·bz − az·by, az·bx − ax·bz, ax·by − ay·bx) produces a vector perpendicular to both inputs, following the right-hand rule. The length of that perpendicular vector is the parallelogram area. A simple case confirms the geometry: i × j = (0, 0, 1) = k, with magnitude 1. The unit vectors i and j are 90° apart, so the parallelogram they form is a 1-by-1 square with area 1. Scaling one side scales the area proportionally: (2, 0, 0) × (1, 1, 0) = (0, 0, 2), magnitude 2. Here the vectors sit 45° apart, and the area reflects both the side lengths and that angle.

A worked example shows the area value alongside other measures. The vectors (1, 2, 3) and (4, 5, 6) have a dot product of 32 and meet at an angle of 12.9°. Their cross product is (−3, 6, −3), with magnitude 7.35. That magnitude, 7.35, is the area of the parallelogram spanned by those two vectors. Because the vectors are close in direction — only 12.9° apart — the parallelogram is narrow, and the area stays modest relative to the vector lengths. The cross product is also anti-commutative: b × a = −(a × b), which reverses the perpendicular direction but leaves the magnitude, and therefore the area, unchanged.

Key relationship: |a × b| = |a||b|sin θ = area of the parallelogram spanned by a and b. Parallel vectors give zero area because sin 0° = 0.

Cross vs dot, side by side

The cross product and the dot product both take two vectors as input, but they answer fundamentally different questions. A cross product calculator returns a vector that is perpendicular to both inputs, following the right-hand rule. The dot product, by contrast, returns a single number that tells you how much two vectors point in the same direction. The formula a × b = (ay·bz − az·by, az·bx − ax·bz, ax·by − ay·bx) produces a new vector, while the dot product collapses the same pair of vectors into a scalar. For the vectors (1, 2, 3) and (4, 5, 6), the cross product is (−3, 6, −3) with a magnitude of 7.35, the dot product is 32, and the angle between them is 12.9°.

The cross product is anti-commutative, meaning the order of the inputs matters: b × a = −(a × b). Reverse the inputs and you get the same vector pointing in the opposite direction. The dot product is commutative, so a · b always equals b · a. This difference matters because the cross product encodes a specific orientation in space. The unit vectors confirm this: i × j = (0, 0, 1) = k, with a magnitude of 1, but j × i would give (0, 0, −1).

The magnitude of a cross product has a geometric meaning that the dot product lacks. The magnitude |a × b| equals the area of the parallelogram spanned by the two vectors, which also equals |a||b|sin θ. The dot product equals |a||b|cos θ, measuring projection rather than area. When two vectors are parallel, their cross product is zero because sin 0° = 0, which makes the cross product a standard parallelism test. The dot product of parallel vectors, however, reaches its maximum value.

The cross product exists only in three dimensions. There is no cross product in 2D or 4D because the operation requires the result to be perpendicular to both input vectors and to have a magnitude equal to the parallelogram area. In two dimensions, two vectors cannot produce a third perpendicular vector within the same plane. In four dimensions, there is no unique direction perpendicular to two given vectors, since multiple directions satisfy the constraint. Three dimensions are the only setting where two vectors define a unique perpendicular direction with the correct magnitude, which is why every cross product calculator works exclusively with 3D vector inputs.

  • Cross product returns a vector; dot product returns a scalar
  • Cross product is anti-commutative (b × a = −(a × b)); dot product is commutative
  • Cross product magnitude equals parallelogram area, |a||b|sin θ; dot product equals |a||b|cos θ
  • Parallel vectors give a zero cross product (sin 0° = 0), making it a parallelism test
  • Cross product exists only in 3D — no equivalent in 2D or 4D
The example (2, 0, 0) × (1, 1, 0) = (0, 0, 2) shows two vectors 45° apart producing a perpendicular result with magnitude 2, which equals the parallelogram area they span.

Where cross products earn their keep

The cross product is not just an abstract exercise. Because the result is always perpendicular to both input vectors, it shows up wherever a direction must be derived from two other directions. A cross product calculator handles the arithmetic, but knowing where the operation comes from helps you spot it in the wild.

In physics, torque is defined with a cross product: the force applied to a wrench produces a rotational effect perpendicular to both the force and the lever arm. Angular momentum follows the same pattern, pointing along the axis of rotation. In electromagnetism, the force on a moving charge in a magnetic field is found with the cross product of the velocity vector and the field vector, giving a force perpendicular to both — which is why charged particles curve into spirals inside particle accelerators.

Computer graphics leans on the same property. The surface normal of a triangle is computed by taking the cross product of two edge vectors. That normal tells lighting models which way the surface faces, so shaders can calculate reflections and shadows correctly. Because the cross product is anti-commutative, swapping the edge order flips the normal: b × a = −(a × b). Getting the order wrong makes a surface face inward, which breaks lighting and culling.

The magnitude has a geometric meaning too. |a × b| equals the area of the parallelogram spanned by the two vectors, and it equals |a||b|sin θ. Parallel vectors have a zero cross product because sin 0° = 0, which makes the operation a standard parallelism test: if the result is the zero vector, the inputs point the same way (or opposite ways).

  • Torque — rotational force perpendicular to the lever arm and applied force.
  • Angular momentum — points along the axis of rotation, perpendicular to position and linear momentum.
  • Magnetic force — the Lorentz force on a moving charge is perpendicular to both velocity and field.
  • Graphics normals — surface orientation for lighting, shading, and back-face culling.
  • Parallelism test — a zero cross product means the vectors are parallel.

FAQs

How do you calculate a cross product?

Calculate it component by component using the determinant method. For vectors a and b, the components are i = ay·bz − az·by, j = az·bx − ax·bz, k = ax·by − ay·bx. For example, (1,2,3) × (4,5,6) = (−3, 6, −3). This gives a new vector perpendicular to both original vectors.

What is (1, 2, 3) × (4, 5, 6)?

The cross product of (1, 2, 3) and (4, 5, 6) is (−3, 6, −3), with a magnitude of 7.35. This is a verified textbook example. The resulting vector is perpendicular to both input vectors, and its length equals the area of the parallelogram spanned by the two original vectors.

What is the difference between cross and dot product?

The cross product gives a perpendicular vector whose length is the spanned parallelogram's area. The dot product gives a scalar measuring alignment, which equals 32 for the same pair. Cross produces a vector; dot produces a number. Cross captures perpendicularity; dot captures how much two vectors point in the same direction.

When is the cross product zero?

The cross product is zero when the vectors are parallel or one of them is zero. In these cases, the spanned parallelogram collapses to zero area, so there is no perpendicular direction to define. Parallel vectors point along the same line, meaning they fail to create a two-dimensional span.

What is the right-hand rule?

The right-hand rule determines the direction of the cross product. Curl your fingers from a toward b; your thumb points along a × b. Swapping the order flips the direction, meaning b × a points opposite to a × b. This rule ensures a consistent, standard orientation for the resulting perpendicular vector.

Where is the cross product used?

The cross product appears in physics and engineering applications including torque, angular momentum, and magnetic force on a moving charge. It is also used to compute surface normals in 3D graphics. Anywhere you need a vector perpendicular to two given vectors, or the area of a parallelogram they span, the cross product applies.

Sources

Related calculators

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.
Trigonometry Calculator
All six trig functions of an angle — or solve a right triangle from its hypotenuse and one acute angle, with a Pythagorean check.
Cross Product Calculator
The vector perpendicular to two 3D vectors — components, magnitude and the parallelogram area it represents.
Distance Between Two Points Calculator
The straight-line distance between two coordinate points, with the midpoint, the horizontal and vertical gaps, and the slope of the line through them.