Skip to content
8 min read

Cross Product vs Dot Product: When to Use Each

The dot product and cross product are two fundamental operations on vectors that appear throughout mathematics, physics, and engineering. Despite both being called "products", they behave very differently: the dot product returns a scalar while the cross product returns a vector. Understanding when to use each is essential for anyone working with vectors in two or three dimensions.

This guide covers the definitions, formulas, and geometric interpretations of both operations. We include worked examples from physics showing how the dot product calculates work and how the cross product calculates torque.

The Dot Product (Scalar Product)

Definition

The dot product of two vectors and is a scalar defined as:

Equivalently, in terms of magnitudes and the angle between the vectors:

Geometric Interpretation

The dot product measures how much one vector "points in the direction" of another. More precisely, it equals the product of the magnitude of one vector and the projection of the other onto it. When , the vectors are parallel and the dot product is maximised. When , the vectors are perpendicular and the dot product is zero.

Key properties of the dot product:

  • The result is always a scalar (a single number).
  • It is commutative: .
  • It is distributive over addition.
  • , which gives us the magnitude of a vector.
  • Works in any number of dimensions.

Finding the Angle Between Two Vectors

Rearranging the formula lets us find the angle between any two vectors:

This is one of the most common applications of the dot product in geometry and computer graphics.

The Cross Product (Vector Product)

Definition

The cross product is defined only for three-dimensional vectors. Given and , the cross product is a vector:

Expanding the determinant gives the component form:

The magnitude of the cross product is:

Geometric Interpretation

The cross product produces a vector that is perpendicular to both input vectors. Its magnitude equals the area of the parallelogram formed by the two vectors. When the vectors are parallel ( or ), the cross product is the zero vector. When they are perpendicular (), the cross product has maximum magnitude.

Key properties of the cross product:

  • The result is always a vector.
  • It is anti-commutative: .
  • It is distributive over addition.
  • It is not associative.
  • Only defined in three dimensions (and seven dimensions, though that is rarely used).

The Right-Hand Rule

The direction of is determined by the right-hand rule. Point the fingers of your right hand along , then curl them towards . Your thumb points in the direction of the cross product. This convention ensures a consistent orientation and is fundamental in physics for defining quantities like angular momentum and the magnetic force on a charged particle.

Dot Product vs Cross Product: Summary

Here is a side-by-side comparison of the two operations:

PropertyDot ProductCross Product
Result typeScalarVector
Formula (trig)
Zero whenPerpendicularParallel
Maximum whenParallelPerpendicular
CommutativityYesNo (anti-commutative)
DimensionsAny3D only

Worked Examples

Example 1: Computing Work (Dot Product)

In physics, work done by a force over a displacement is . Suppose a force Newtons acts on an object that moves along metres.

Only the component of force along the direction of displacement contributes to work. The vertical component (4 N) does zero work because it is perpendicular to the motion.

Try it yourself

Use our Cross Product Calculator to compute cross products and dot products for any pair of 3D vectors.

Example 2: Computing Torque (Cross Product)

Torque is the rotational analogue of force and is calculated as , where is the position vector from the pivot to the point where force is applied. Suppose:

Computing the cross product:

The torque is in the direction (pointing out of the plane), confirming the rotation is counter-clockwise when viewed from above. The right-hand rule agrees: fingers point along (positive ), curl towards (positive ), and the thumb points in the positive direction.

Example 3: Finding the Angle Between Vectors

Find the angle between and .

First, compute the dot product:

Next, find the magnitudes:

Now apply the angle formula:

Example 4: Area of a Triangle Using the Cross Product

The area of a triangle with two sides represented by vectors and is half the magnitude of their cross product. Given and :

Try it yourself

Use our Triangle Calculator to compute areas, angles, and side lengths for any triangle.

When to Use Each Product

Use the Dot Product When:

  • You need to find the angle between two vectors.
  • You want to calculate work done by a force.
  • You need to project one vector onto another.
  • You want to test whether two vectors are perpendicular (dot product = 0).
  • You are working in any number of dimensions.

Use the Cross Product When:

  • You need a vector perpendicular to two given vectors.
  • You want to calculate torque or angular momentum.
  • You need the area of a parallelogram or triangle formed by two vectors.
  • You want to find the normal vector to a surface.
  • You are working specifically in three dimensions.

Applications in Physics

Electromagnetic force: The Lorentz force on a charged particle moving through a magnetic field is , a cross product. The force is always perpendicular to both the velocity and the magnetic field, which is why charged particles follow curved paths.

Work and energy: As shown in Example 1, work is a dot product: . Only the component of force along the displacement does work. A force perpendicular to motion does zero work (like the normal force on a sliding block).

Angular momentum: Defined as , where is linear momentum. The cross product ensures angular momentum is a vector perpendicular to the plane of rotation.

Frequently Asked Questions

Can you take the cross product in two dimensions?

Strictly, the cross product is defined only in three dimensions. However, for 2D vectors and , you can compute a "scalar cross product": , which gives the signed area of the parallelogram. This is equivalent to treating the 2D vectors as 3D vectors with a zero -component and reading off the -component of the result.

What does it mean when the dot product is negative?

A negative dot product means the angle between the vectors is greater than 90 degrees. The vectors point in generally opposite directions. When the dot product is exactly zero, the vectors are perpendicular.

Why is the cross product anti-commutative?

Swapping the order of the vectors reverses the direction of the resulting perpendicular vector. By the right-hand rule, points in the opposite direction to . This is physically meaningful: torque applied clockwise is opposite to torque applied counter-clockwise.

How do you remember the cross product formula?

The determinant method is the most reliable. Write the unit vectors in the first row, the components of the first vector in the second row, and the components of the second vector in the third row. Expand the determinant along the first row using cofactors. With practice, this becomes second nature.

Can you use both products together?

Yes. The scalar triple product combines both. It gives the signed volume of the parallelepiped formed by three vectors. The vector triple product produces a vector that lies in the plane spanned by and .

Try it yourself

Compute cross products instantly with our Cross Product Calculator, or explore triangle geometry with the Triangle Calculator.

Related Articles