Dot product
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.
a·b=7
a·b equals (4 times (−2)) plus (3 times 5), equals −8 plus 15, equals 7
Den här sidan finns på svenska. Byt till svenska
Definition — what does that mean?
Multiply the x-components, multiply the y-components, and add. The answer is a number, not a vector.
In Swedish: Skalärprodukt
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.
a·b=7
a·b equals (4 times (−2)) plus (3 times 5), equals −8 plus 15, equals 7
You are given
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.
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.
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.
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.
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.
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.
| Solve for | Rearranged | With the numbers | Comes to |
|---|---|---|---|
| a₁ | a·b | 7 | 4 |
| a₂ | a·b | 7 | 3 |
| b₁ | a·b | 7 | −2 |
| b₂ | a·b | 7 | 5 |
| a·b | a₁b₁ | 4·(−2) | 7 |
Last reviewed October 7, 2026 ·How pages are reviewed
Sheets that ask this formula, with their answer keys. Open one to see the questions or print it.
Sixteen questions on the length of a vector, addition, multiplication by a scalar and the dot product. The first one is worked. Calculator allowed.
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.