Dot Product vs Cross Product

Why do two vectors give you a plain number one way and a brand new arrow the other way? That is the whole difference between the dot product and the cross product. Take the vectors (1, 2, 3) and (4, 5, 6). Their dot product is the single number 32, while their cross product is the vector (-3, 6, -3). This guide shows where each answer comes from and when you need it.

Quick Answer

  • The dot product returns a single number, called a scalar, and it works in any dimension.
  • The cross product returns a new vector, and it is defined for 3D vectors.
  • The dot product equals |a||b| cos(theta), so it measures how much two vectors line up.
  • The cross product has length |a||b| sin(theta), which equals the area of the parallelogram the vectors form.
  • Physics uses the dot product for work and projections, and the cross product for torque and surface normals.

What Kind of Answer Does Each Product Return?

The dot product returns a number, and the cross product returns a vector. That single fact explains most of the other differences. A number has size only, while a vector has both size and direction.

Textbooks often call them the scalar product and the vector product for this reason. The dot product tells you how strongly two vectors agree in direction. The cross product builds a third vector that stands at right angles to both of the first two.

The two vector products side by side
Feature Dot product Cross product
Result A number (scalar) A vector
Angle term cos(theta) sin(theta)
Dimensions Any: 2D, 3D, or more 3D
Order matters? No: a . b = b . a Yes: a x b = -(b x a)
Zero when Vectors are perpendicular Vectors are parallel
Typical use Work, angles, projections Torque, normals, areas

Keep the symbols straight as well. A raised dot means the dot product, and a times sign means the cross product. Mixing them up changes the type of answer, not just its value.

How Do the Two Formulas Work on the Same Pair of Vectors?

Both formulas multiply components, but they pair them differently. The dot product adds matching pairs, while the cross product crosses them over and subtracts.

The Dot Product of (1, 2, 3) and (4, 5, 6)

Multiply the matching parts: 1 x 4 = 4, 2 x 5 = 10, and 3 x 6 = 18. Add them to get 4 + 10 + 18 = 32. This is the same example the dot product calculator with angle output uses, and it also reports an angle of about 12.9 degrees.

The Cross Product of the Same Pair

For a = (a1, a2, a3) and b = (b1, b2, b3), the cross product is (a2 b3 – a3 b2, a3 b1 – a1 b3, a1 b2 – a2 b1). Now plug in the numbers.

  • First part: 2 x 6 – 3 x 5 = 12 – 15 = -3.
  • Second part: 3 x 4 – 1 x 6 = 12 – 6 = 6.
  • Third part: 1 x 5 – 2 x 4 = 5 – 8 = -3.

The result is (-3, 6, -3). Dot it with a: -3 + 12 – 9 = 0. That zero proves the new vector is perpendicular to a, and b passes the same test.

Why Does One Formula Use Cosine and the Other Use Sine?

Cosine measures how much two vectors overlap, and sine measures how far they spread apart. So the dot product grows as vectors line up, and the cross product grows as they turn toward 90 degrees.

The dot product equals |a||b| cos(theta). You can read it as the length of a times the shadow that b casts onto a. The lengths |a| and |b| come from the sum of squares, covered in our guide on how to find the magnitude of a vector.

The dot product as a shadow Vector a runs 3 units along the x axis and vector b goes to the point 1, 2. Dropping a line from the tip of b to vector a gives a shadow 1 unit long, so the dot product is 3 times 1, which is 3. The grid is drawn at 60 pixels per unit. Dot product = |a| x shadow of b on a a = (3, 0) b = (1, 2) shadow = 1 |a| = 3 shadow of b on a = 1 a . b = 3 x 1 + 0 x 2 = 3
Drawn to scale: b casts a 1-unit shadow on a, so a . b = 3 x 1 = 3.

Here is a neat check that ties both products together. The square of the dot product plus the squared length of the cross product equals |a|^2 |b|^2. For our pair, 32^2 + 54 = 1,078, and 14 x 77 = 1,078 as well.

How the angle drives each product A chart of cos(theta) and sin(theta) from 0 to 180 degrees. The dot product follows the cosine curve: 1 at 0 degrees, 0 at 90 degrees and minus 1 at 180 degrees. The cross product length follows the sine curve: 0 at 0 degrees, 1 at 90 degrees and 0 at 180 degrees. Both are shown as a fraction of |a| times |b|. Share of |a||b| as the angle grows 1 0 -1 0 45 90 135 180 angle between the vectors (degrees) dot: cos(theta) cross length: sin(theta)
The dot product peaks at 0 degrees; the cross product length peaks at 90 degrees.

Which Way Does the Cross Product Point?

The cross product points at right angles to both vectors, and the right-hand rule picks which side. Curl the fingers of your right hand from a toward b, and your thumb shows the direction of a x b.

This makes order important. The unit vectors show it clearly: i x j = k, but j x i = -k. Swapping the order flips the answer to the opposite side. For our main pair, b x a = (3, -6, 3), the exact reverse of a x b.

The length of the cross product has a clean meaning too. It equals the area of the parallelogram with a and b as its sides. For a = (3, 0, 0) and b = (1, 2, 0), the cross product is (0, 0, 6), so the area is 6 square units.

The cross product length is a parallelogram area Vectors a equals 3, 0, 0 and b equals 1, 2, 0 form a parallelogram with base 3 and height 2, so its area is 6. The cross product a x b equals 0, 0, 6, which points straight out of the screen with length 6. The shape is drawn at 60 pixels per unit. |a x b| = area of the parallelogram a = (3, 0, 0) b height 2 area 6 a x b = (0, 0, 6) points out of the screen length 6 = base 3 x height 2
Drawn to scale: base 3 times height 2 gives area 6, the same as the length of a x b.

Why only 3D? In the plane, no direction exists at right angles to both vectors. A common shortcut treats flat vectors as 3D with a zero third part, as in the example above.

Where Do Physics and Graphics Use Each One?

Physics uses the dot product for work and projections, and the cross product for torque and magnetic force. The choice follows the answer type: energy is a number, while a twist has a direction.

Dot Product Jobs

Work is force dotted with displacement. Push with a force of (30, 40, 0) newtons while a box slides (5, 0, 0) meters, and the work is 30 x 5 = 150 joules. Only the part of the force along the motion counts. The same idea gives the projection of one vector onto another. For (1, 2, 3) and (4, 5, 6), b reaches 32 / 3.742, or about 8.55 units, along a.

Cross Product Jobs

Torque is the lever arm crossed with the force. A 0.3 meter wrench with 50 newtons applied at right angles gives (0, 0, 15), or 15 newton meters about the bolt. Our guide to torque, lever arms and rotation covers that side in depth. The cross product also builds a vector at right angles to a flat surface, called a normal. Software uses normals to know which way each surface faces.

How Can You Tell Which Product a Problem Needs?

Look at what the problem asks for. Asking for an angle, a shadow, work, or a yes-or-no test for right angles points to the dot product. Asking for a direction, a rotation, an area, or a perpendicular vector points to the cross product.

The zero tests are the fastest clue. A dot product of 0 means the vectors are perpendicular. A cross product of (0, 0, 0) means they are parallel. Take (1, 2, 3) and (2, 4, 6). Their dot product is 28, but their cross product is zero, since the second is twice the first.

Watch the dimension count too. Four or more components rule out the ordinary cross product, so the dot product is the tool there. For 3D direction work, the cross product calculator returns the new vector directly.

Finally, check the answer type against the question. A reply to “how much” should be a number. A reply to “which way” should be a vector with three parts.

Comparing two vectors?

The Dot Product Calculator multiplies matching components, adds them, and reports the angle between your vectors in degrees.

FAQs About the Dot and Cross Product

Is the Dot Product a Vector or a Number?

The dot product is a number, also called a scalar. For (1, 2, 3) and (4, 5, 6) it is 32. The cross product is the one that returns a vector.

Can You Take a Cross Product of Two 2D Vectors?

Not directly, since the cross product is defined for 3D vectors. A common shortcut adds a zero third part. Then only the third part, a1 b2 – a2 b1, survives. For (3, 0) and (1, 2) that gives 6.

Why Is the Cross Product Zero for Parallel Vectors?

Its length is |a||b| sin(theta), and sin(0) and sin(180) are both 0. Parallel vectors form a flat parallelogram with no area. For example, (1, 2, 3) crossed with (2, 4, 6) gives (0, 0, 0).

Does the Order of the Vectors Matter?

Order does not matter for the dot product, since a . b equals b . a. It does matter for the cross product. Swapping the vectors flips the result, so a x b equals -(b x a).

What Does a Negative Dot Product Mean?

A negative dot product means the angle between the vectors is more than 90 degrees. The vectors point broadly away from each other. It is a valid result, not an error.

How Do You Find the Area of a Triangle With the Cross Product?

Take half the length of the cross product of two sides. For sides (3, 0, 0) and (1, 2, 0), the cross product is (0, 0, 6). The parallelogram area is 6, so the triangle area is 3.

Which Product Is Used for Work and Which for Torque?

Work uses the dot product of force and displacement, so it is a number in joules. Torque uses the cross product of the lever arm and the force, so it is a vector with a direction.

Sources

References Used in This Article

This article is general math and physics education for real-valued vectors. The cross product described here is the standard 3D version. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated September 27, 2026.


Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.