Skip to content
LoveToCalc

Definition — what does that mean?

Dot product

Multiply the x-components, multiply the y-components, and add. The answer is a number, not a vector.

In Swedish: Skalärprodukt

Dot product

The relation

a·b=a₁b₁+a₂b₂

Multiply the vectors’ x-components, multiply their y-components, and add. The result is a number, and it is 0 exactly when the vectors are perpendicular.

Solve for

a·b=7

a·b equals (4 times (−2)) plus (3 times 5), equals −8 plus 15, equals 7

Working3 steps

Practice questions

You are given

  • a·b=-3
  • a₁=6
  • b₁=-2
  • a₂=1

The formula

For the vectors a = (a₁, a₂) and b = (b₁, b₂), multiply the components in pairs, first with first and second with second, and add the two products. Some books write the same thing with coordinates, x₁x₂ + y₁y₂; the subscripts then say which vector a coordinate belongs to.

With a = (4, 3) and b = (−2, 5):

a · b = 4 · (−2) + 3 · 5 = −8 + 15 = 7

The answer is a single number. That is why it is also called the scalar product: a scalar is a number with no direction.

Pairing the right components

A common mistake is to pair the wrong components. Multiplying across — a₁ with b₂ and a₂ with b₁ — also gives a number, and it looks just as plausible:

Working Result
4 · (−2) + 3 · 5 (first with first, second with second) 7
4 · 5 + 3 · (−2) (across) 14

Write the vectors one above the other before you start, so the first components stand in the same column:

Multiply straight down each column and add.

What the sign says about the angle

For two vectors that both have a length greater than 0, the sign of the dot product gives away the angle between them:

Dot product Angle between the vectors
positive less than 90°
0 exactly 90°, the vectors are perpendicular
negative more than 90°

The vectors above have a dot product of 7, so the angle between them is acute. The angle itself comes from the angle between two vectors, which divides the dot product by the two magnitudes.

Find t so that the vectors are perpendicular

A common exercise runs backwards. The vectors a = (t, 3) and b = (6, −4) are to be perpendicular. Perpendicular vectors have a dot product of 0:

t · 6 + 3 · (−4) = 0

6t − 12 = 0, so t = 2.

Check: (2, 3) · (6, −4) = 12 − 12 = 0. On the card above, set the dot product to 0 and choose a₁ as the unknown.

In three dimensions

A vector in space has three components, and the dot product gains a third term:

The rule is the same: pairs, then the sum. (1, −2, 4) · (3, 5, 2) = 3 − 10 + 8 = 1.

Common mistakes

Common questions

What does the dot product mean geometrically? It equals |a| · |b| · cos θ, where θ is the angle between the vectors. The component form and that form give the same number, so the sign of the dot product is the sign of cos θ.

Does the order matter? No. a · b = b · a, because a₁b₁ = b₁a₁ and a₂b₂ = b₂a₂.

Where is the dot product used in physics? The work a force does is the force and the displacement multiplied this way. Only the part of the force along the path counts, which is what work done at an angle calculates.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
a₁a·b−a₂b₂b₁7−3·5−24
a₂a·b−a₁b₁b₂7−4·(−2)53
b₁a·b−a₂b₂a₁7−3·54−2
b₂a·b−a₁b₁a₂7−4·(−2)35
a·ba₁b₁+a₂b₂4·(−2)+3·57

Last reviewed October 7, 2026 ·How pages are reviewed

Ready-made worksheets with this formula

Sheets that ask this formula, with their answer keys. Open one to see the questions or print it.

High school

  • Vectors

    Sixteen questions on the length of a vector, addition, multiplication by a scalar and the dot product. The first one is worked. Calculator allowed.

GeometryAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.