The dot product multiplies two vectors of the same dimension and returns one number. In coordinates,

u=(u1,u2,,un),v=(v1,v2,,vn),u = (u_1, u_2, \dots, u_n), \qquad v = (v_1, v_2, \dots, v_n), uv=u1v1+u2v2++unvn.u \cdot v = u_1v_1 + u_2v_2 + \dots + u_nv_n.

In the usual Euclidean setting, the same number also has a geometric meaning:

uv=uvcosθ,u \cdot v = |u||v|\cos\theta,

where θ\theta is the angle between the vectors. That means the dot product is not just a formula to compute. It also tells you how strongly two vectors point in the same direction.

What the dot product tells you

The dot product is also called the scalar product because the answer is a scalar, not another vector.

In Euclidean space, the sign gives a fast read on the angle. A positive dot product means the angle is acute, a zero dot product means the vectors are perpendicular if both vectors are nonzero, and a negative dot product means the angle is obtuse.

One especially important case is a vector dotted with itself:

uu=u12+u22++un2.u \cdot u = u_1^2 + u_2^2 + \dots + u_n^2.

In Euclidean space, this equals u2|u|^2, so it cannot be negative. That is why uuu \cdot u is often used to find a length without taking a square root.

How to calculate the dot product

Use the coordinate formula in three steps:

  1. Write the vectors in the same order and check that they have the same dimension.
  2. Multiply matching components.
  3. Add the results.

Nothing gets rearranged. The first component matches the first, the second matches the second, and so on.

Worked dot product example

Find the dot product of

u=(2,1,3),v=(4,5,1).u = (2, -1, 3), \qquad v = (4, 5, 1).

Multiply matching components:

24=8,(1)5=5,31=3.2 \cdot 4 = 8, \qquad (-1) \cdot 5 = -5, \qquad 3 \cdot 1 = 3.

Now add:

uv=8+(5)+3=6.u \cdot v = 8 + (-5) + 3 = 6.

So the dot product is 66.

What does 66 tell you? In Euclidean space, the positive result tells you the angle between the vectors is acute. It does not mean the vectors are equal or parallel. It only tells you their directional overlap is positive.

Geometric meaning of the dot product

In Euclidean geometry, the dot product measures how much one vector points in the direction of the other. If the vectors point in nearly the same direction, the dot product is large and positive. If they point at a right angle, the dot product is 00. If they point mostly opposite ways, the dot product is negative.

This comes from the formula

uv=uvcosθu \cdot v = |u||v|\cos\theta

because the cosine term controls the sign and size:

  • cosθ>0\cos\theta > 0 for acute angles, so the dot product is positive.
  • cosθ=0\cos\theta = 0 for a right angle, so the dot product is 00.
  • cosθ<0\cos\theta < 0 for obtuse angles, so the dot product is negative.

This angle interpretation depends on the standard Euclidean dot product. If you are working with a different inner product, the geometry can change, so the usual angle picture does not automatically carry over.

Common dot product mistakes

Forgetting to check the dimension first

The standard dot product is not defined for a 22D vector and a 33D vector. The vectors need the same number of components.

Mixing up the dot product with componentwise multiplication

For (2,3)(2,3) and (4,5)(4,5), the dot product is

24+35=23,2 \cdot 4 + 3 \cdot 5 = 23,

not (8,15)(8,15).

Treating a positive result as proof of parallel vectors

A positive dot product only tells you the angle is acute in Euclidean space. Many different vector pairs can have a positive dot product.

Forgetting the condition behind "uv=0u \cdot v = 0 means perpendicular"

That statement is true in the standard Euclidean setting. That is the setting most introductory problems use, but the condition still matters.

Where dot products are used

The dot product appears whenever direction matters but the final answer should be one number.

In geometry, it helps test orthogonality and compute angles. In physics, it appears in formulas such as work, where only the component of force in the direction of motion counts. In linear algebra and applied math, it also shows up in projections, least-squares ideas, and similarity calculations.

Try a similar dot product problem

Try

u=(1,2,2),v=(3,1,4).u = (1, 2, -2), \qquad v = (3, -1, 4).

Compute uvu \cdot v, then compute uuu \cdot u. That second value is a good way to see why a vector dotted with itself behaves differently from a dot product between two different vectors.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →