Skip to the formula

Scalar product formula: v · w = |v||w| cos θ

The scalar product formula is v · w = v₁w₁ + v₂w₂ + v₃w₃ = |v||w| cos θ.

What each letter means

When to use it

To find the angle between two vectors or two lines, and to test whether they are perpendicular (dot product 0).

Worked example

Find the angle between \(\mathbf v=\begin{pmatrix}1\\2\\2\end{pmatrix}\) and \(\mathbf w=\begin{pmatrix}2\\-1\\2\end{pmatrix}\).

  1. \(\mathbf v\cdot\mathbf w=2-2+4=4\); \(|\mathbf v|=|\mathbf w|=3\)
  2. \(\cos\theta=\dfrac{4}{9}\)

Answer: \(\theta=63.6^\circ\) (3 s.f.)

Common mistake

Dividing by only one magnitude when finding cos θ. Divide by |v| × |w|.

Fix it with practice: Skill Builder: Vector Lines (free account).

Try one yourself

One quick IB Maths question on the scalar (dot) product. No sign-in needed.

Find the scalar product \(\begin{pmatrix}2\\-1\\3\end{pmatrix} \cdot \begin{pmatrix}4\\5\\-1\end{pmatrix}\).
Choose your answer · keys 1–4

On your IB Maths course

CourseIn the exam
AA HL
All IB AA HL formulas by topic
In the IB formula booklet
AI HL
All IB AI HL formulas by topic
In the IB formula booklet

From our own IB Maths formula sheets, in our words. The IB gives its booklet to schools, so we checked against our own copy: your teacher has the official one. Official: IB DP Mathematics page.

Practise and revise

Scalar (dot) product formula card: v · w = v₁w₁ + v₂w₂ + v₃w₃ = |v||w| cos θ. IB Math Revision
Scalar (dot) product card for IB Maths: download (PNG).

IB Maths FAQ

Is the scalar (dot) product in the IB formula booklet?

AA HL: in the IB formula booklet. AI HL: in the IB formula booklet.

How can I tell if two vectors are perpendicular?

Their scalar product is 0, because cos 90° = 0.

Our own wording, examples and card, checked by IB Math Revision. Not produced or endorsed by the International Baccalaureate Organization.