BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 2 primary sourcesLast updated

Cross Product Calculator (with Dot Product and Vector Magnitude)

The Cross Product Calculator finds the cross product of two 3D vectors, its length as a parallelogram area, the dot product, each vector's magnitude and the angle between the vectors.

Quick Answer: The cross product of a = (2, 3, 4) and b = (5, 6, 7) is (-3, 6, -3). Its length, 7.3485, is the area of the parallelogram the two vectors span, and their dot product is 56.

Assumptions

Computed

Preset scenarios

a × b
(-3, 6, -3)
|a × b| (area of the parallelogram)
7.34846922834953
Area of the triangle on a and b
3.67423461417477
Unit vector along a × b
(-0.408248290463863, 0.816496580927726, -0.408248290463863)
Dot product a · b
56
|a|
5.3851648071345
|b|
10.4880884817015
Angle between a and b
7.47579063237942°
Perpendicular check
a · (a × b) = 0, b · (a × b) = 0
b × a
(3, -6, 3)

Cross products of the unit vectors i, j and k

Download CSV
Each row is this calculator run on two unit vectors along the axes. The results follow the right-hand rule.
ProductResult
i × j(0, 0, 1)
j × k(1, 0, 0)
k × i(0, 1, 0)
j × i(0, 0, -1)
k × j(-1, 0, 0)
i × k(0, -1, 0)
i × i(0, 0, 0)

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Cross Product Calculator (with Dot Product and Vector Magnitude): a × b (-3, 6, -3) (a: x component: 2; a: y component: 3; a: z component: 4; b: x component: 5; b: y component: 6; b: z component: 7).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of two wooden dowels crossing on a workbench with a third standing upright where they meet
Quick Answer: The cross product of a = (2, 3, 4) and b = (5, 6, 7) is (-3, 6, -3). Its length, 7.3485, is the area of the parallelogram the two vectors span, and their dot product is 56.

What does this calculator do?

This cross product calculator multiplies two three-dimensional vectors and returns the cross product a × b, along with everything you usually need next: its magnitude (the area of the parallelogram on a and b), half that (the area of the triangle), the unit vector perpendicular to both, the dot product, the magnitude of each vector, and the angle between them.

The cross product of two vectors is a third vector at right angles to both. 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 × b. Its length is |a||b| sin θ, which is largest when the vectors are perpendicular and zero when they are parallel. That makes it the tool for finding a normal to a plane, a torque, or an area in 3D.

The definitions follow section 1.6 of the NIST Digital Library of Mathematical Functions. Products of components are exact; square roots and the angle are computed to 34 significant digits and shown to 15.

Using the Cross Product Calculator

  1. Enter the x, y and z components of vector a.
  2. Enter the x, y and z components of vector b. For vectors in a flat plane, set both z components to 0.
  3. Read a × b at the top. The cards give the magnitudes, areas, unit normal, dot product, angle, a check that the result is perpendicular to both inputs, and b × a for comparison.

How is this calculated?

  1. Cross product by components. Each component of a × b comes from the other two components of a and b (DLMF 1.6.9). It is the expansion of a 3 × 3 determinant with i, j and k in the top row.

a × b = (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁)

  1. Dot product. The products of matching components, added (DLMF 1.6.2).

a⋅b = a₁b₁ + a₂b₂ + a₃b₃

  1. Magnitudes. The length of a vector is the square root of its dot product with itself (DLMF 1.6.3). The length of a × b is also the area of the parallelogram with sides a and b; half of it is the area of the triangle with those sides.

|a| = √(a₁² + a₂² + a₃²)

  1. Angle between the vectors. Computed as atan2(|a × b|, a · b), which gives the same angle as the textbook arccos(a · b / |a||b|) but stays accurate when the vectors are nearly parallel, where arccos loses digits.
  1. Unit normal. a × b divided by its own length, when that length is not zero.
  1. Perpendicular check. The dot products of a × b with a and with b, which should both be zero. Because the arithmetic is exact, they come out as exactly 0 for any decimal inputs.

Worked Example

Using the defaults, a = (2, 3, 4) and b = (5, 6, 7):

  1. x: 3 × 7 - 4 × 6 = 21 - 24 = -3.
  2. y: 4 × 5 - 2 × 7 = 20 - 14 = 6.
  3. z: 2 × 6 - 3 × 5 = 12 - 15 = -3.
  4. So a × b = (-3, 6, -3).
  5. |a × b| = √(9 + 36 + 9) = √54 = 7.34846922834953, the parallelogram area. The triangle area is 3.67423461417477.
  6. a · b = 10 + 18 + 28 = 56. |a| = 5.3851648071345 and |b| = 10.4880884817015.
  7. The angle between them is 7.47579063237942°: they point in nearly the same direction, which is why the cross product is short compared with the vectors themselves.

How Do You Find the Magnitude of a Vector?

Square each component, add the squares, and take the square root. The Magnitude of (3, 4, 12) preset gives |a| = √(9 + 16 + 144) = √169 = 13. In two dimensions, enter 0 for the z component, which drops that term. The magnitude is the vector's length, and it does not depend on which direction the vector points.

Cross Products of the Unit Vectors

The reference table lists the products of the axis unit vectors i, j and k. Going around the cycle i, j, k gives the next one: i × j = k, j × k = i, k × i = j. Going the other way gives the negative: j × i = -k. Any vector crossed with itself is the zero vector.

What does this calculator not account for?

  • Vectors in more than three dimensions. The cross product as defined here exists only in three dimensions. For two-dimensional vectors, set z to 0; the answer then points straight along z, and its z component is the signed area.
  • Units. Components are plain numbers. If they carry units (newtons and metres for a torque), the result's unit is the product of the two.
  • Symbolic vectors. Only numerical components are accepted.
  • Scalar triple products and projections. a · (b × c) and the projection of one vector onto another are not computed directly.

What mistakes do people make with this?

  • Order matters. b × a is the negative of a × b. The card shows both.
  • Sign of the middle component. In the determinant expansion, the j term carries a minus sign. Writing it as a3 b1 - a1 b3, as here, avoids the slip.
  • Expecting a number. The cross product is a vector. The dot product is the number.
  • Parallel vectors. If a × b is the zero vector, the vectors are parallel (or one is zero) and there is no unique normal. The Parallel vectors preset shows this with (1, 2, 3) and (2, 4, 6).
  • Using degrees for sin θ by hand. If you check |a||b| sin θ yourself, make sure your calculator is in degrees for the angle shown.

Frequently Asked Questions

What is the cross product of i and j?

k, which is (0, 0, 1). The i × j preset shows it, and j × i is -k.

What does the cross product tell you?

A direction perpendicular to both vectors, and through its length, the area of the parallelogram they span. In physics it gives torque (r × F) and the force on a moving charge in a magnetic field.

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

The dot product is a number, |a||b| cos θ, largest when the vectors point the same way. The cross product is a vector of length |a||b| sin θ, largest when they are perpendicular.

How do you find a vector perpendicular to two vectors?

Take their cross product. To get a unit vector, divide it by its length; the unit vector card does that.

Can you take the cross product of two 2D vectors?

Set both z components to 0. For (3, 1, 0) and (1, 2, 0), the Two vectors in the plane preset gives (0, 0, 5): a parallelogram of area 5 lying in the xy-plane.

Sources

  • NIST Digital Library of Mathematical Functions, section 1.6, Vectors and Vector-Valued Functions: dot product (1.6.2), magnitude (1.6.3), angle (1.6.4) and cross product with the right-hand rule (1.6.9). dlmf.nist.gov/1.6
  • OpenStax, Calculus Volume 3, section 2.4, The Cross Product: the determinant formula, the right-hand rule, and the magnitude as the area of the parallelogram. openstax.org/books/calculus-volume-3/pages/2-4-the-cross-product

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 6 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: (2,3,4) × (5,6,7) = (-3, 6, -3)
  • i × j = k and parallel vectors give zero
  • plane vectors: (3,1,0) × (1,2,0) = (0,0,5) at 45 degrees
  • magnitude of (3, 4, 12) is 13
  • exact with decimals: the perpendicular check is exactly zero
  • builds the unit vector table from compute()

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews