Dot Product Notes

Published on: September 29, 2026

These Dot Product Notes explain how to multiply two vectors into a single number, with the working shown line by line. Matching components are multiplied and the results added, which measures how much of one vector lies along the other. A result of zero means the two are at right angles, and the sign tells you whether they broadly agree or oppose. Following the same pattern every time keeps each component paired with its partner.

x y z θ A ⟨a₁, a₂, a₃⟩ B ⟨b₁, b₂, b₃⟩

Enter the components of \(\vec{A}\) and \(\vec{B}\).

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the components into the formula.
  4. Work out the dot product.

Formula: Dot Product Formula

This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.

\(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\)

Useful Tips to Remember

The dot product is a number, not a vector. A result of 0 means the vectors are perpendicular, a positive result means they point broadly the same way, and a negative result means they point broadly apart. The order does not matter, so \(\vec{A} \cdot \vec{B} = \vec{B} \cdot \vec{A}\). The dot product of a vector with itself is its magnitude squared.

Required knowledge

Where Is the Dot Product Used?

The dot product measures how much two vectors point the same way, so it shows up wherever direction and alignment matter. Physics uses it to find the work done by a force along a path. In 3D graphics, the dot product of a light direction and a surface normal decides how bright each pixel is. Search engines and recommendation systems use dot products to score how similar two items are, and neural networks are built from millions of them.

  • Work done by a force in physics
  • Lighting and shading in 3D graphics
  • Checking whether two vectors are perpendicular
  • Similarity scores in search and recommendations
  • The basic operation inside neural networks

Dot Product Practice Problems

Example 1 finds \(\langle 1, 2, 3 \rangle \cdot \langle 4, 5, 6 \rangle\), and Example 2 uses a fraction component with two zeros. Examples 3 and 4 give you two more problems of the same kind to try. Multiply the matching components, add the products and compare.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(\vec{A} = \left\langle 1,\; 2,\; 3 \right\rangle,\; \vec{B} = \left\langle 4,\; 5,\; 6 \right\rangle\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the components into the formula.
  4. Work out the dot product.

Formula

Formula: Dot Product Formula

This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.

\(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the dot product of \(\vec{A} = \left\langle 1,\; 2,\; 3 \right\rangle\) and \(\vec{B} = \left\langle 4,\; 5,\; 6 \right\rangle\).

\(\vec{A} = \left\langle 1,\; 2,\; 3 \right\rangle,\; \vec{B} = \left\langle 4,\; 5,\; 6 \right\rangle\)
x y z θ A ⟨1, 2, 3⟩ B ⟨4, 5, 6⟩

Step 2

Step 2 - Write the formula.

In this problem: The dot product multiplies the matching components of the two vectors and adds the three products, giving a single number.

\(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\)

Step 3

Step 3 - Substitute the components into the formula.

In this problem: Replacing each component in \(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\) gives \(\vec{A} \cdot \vec{B} = 1 \times 4 + 2 \times 5 + 3 \times 6\).

\(\vec{A} \cdot \vec{B} = 1 \times 4 + 2 \times 5 + 3 \times 6\)

Step 4

Step 4 - Work out the dot product.

In this problem: Multiplying the matching components gives \(1 \times 4 = 4\), \(2 \times 5 = 10\) and \(3 \times 6 = 18\). Adding the three products gives \(4 + 10 + 18 = 32\).

\(\vec{A} \cdot \vec{B} = 1 \times 4 + 2 \times 5 + 3 \times 6 = 32\)

Final Answer

\(\vec{A} \cdot \vec{B} = 32\)
See Example 2 Hide Example 2

Problem

\(\vec{A} = \left\langle \frac{1}{2},\; 0,\; 0 \right\rangle,\; \vec{B} = \left\langle 2,\; 3,\; 4 \right\rangle\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the components into the formula.
  4. Work out the dot product.

Formula

Formula: Dot Product Formula

This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.

\(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the dot product of \(\vec{A} = \left\langle \frac{1}{2},\; 0,\; 0 \right\rangle\) and \(\vec{B} = \left\langle 2,\; 3,\; 4 \right\rangle\).

\(\vec{A} = \left\langle \frac{1}{2},\; 0,\; 0 \right\rangle,\; \vec{B} = \left\langle 2,\; 3,\; 4 \right\rangle\)
x y z θ A ⟨1/2, 0, 0⟩ B ⟨2, 3, 4⟩

Step 2

Step 2 - Write the formula.

In this problem: The dot product multiplies the matching components of the two vectors and adds the three products, giving a single number.

\(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\)

Step 3

Step 3 - Substitute the components into the formula.

In this problem: Replacing each component in \(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\) gives \(\vec{A} \cdot \vec{B} = \frac{1}{2} \times 2 + 0 \times 3 + 0 \times 4\).

\(\vec{A} \cdot \vec{B} = \frac{1}{2} \times 2 + 0 \times 3 + 0 \times 4\)

Step 4

Step 4 - Work out the dot product.

In this problem: Multiplying the matching components gives \(\frac{1}{2} \times 2 = 1\), \(0 \times 3 = 0\) and \(0 \times 4 = 0\). Adding the three products gives \(1 + 0 + 0 = 1\).

\(\vec{A} \cdot \vec{B} = \frac{1}{2} \times 2 + 0 \times 3 + 0 \times 4 = 1\)

Final Answer

\(\vec{A} \cdot \vec{B} = 1\)
See Example 3 Hide Example 3

Problem

\(\vec{A} = \left\langle 2,\; -3,\; 1 \right\rangle,\; \vec{B} = \left\langle 4,\; 1,\; 5 \right\rangle\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the components into the formula.
  4. Work out the dot product.

Formula

Formula: Dot Product Formula

This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.

\(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the dot product of \(\vec{A} = \left\langle 2,\; -3,\; 1 \right\rangle\) and \(\vec{B} = \left\langle 4,\; 1,\; 5 \right\rangle\).

\(\vec{A} = \left\langle 2,\; -3,\; 1 \right\rangle,\; \vec{B} = \left\langle 4,\; 1,\; 5 \right\rangle\)
x y z θ A ⟨2, −3, 1⟩ B ⟨4, 1, 5⟩

Step 2

Step 2 - Write the formula.

In this problem: The dot product multiplies the matching components of the two vectors and adds the three products, giving a single number.

\(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\)

Step 3

Step 3 - Substitute the components into the formula.

In this problem: Replacing each component in \(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\) gives \(\vec{A} \cdot \vec{B} = 2 \times 4 + \left(-3\right) \times 1 + 1 \times 5\).

\(\vec{A} \cdot \vec{B} = 2 \times 4 + \left(-3\right) \times 1 + 1 \times 5\)

Step 4

Step 4 - Work out the dot product.

In this problem: Multiplying the matching components gives \(2 \times 4 = 8\), \(\left(-3\right) \times 1 = -3\) and \(1 \times 5 = 5\). Adding the three products gives \(8 - 3 + 5 = 10\).

\(\vec{A} \cdot \vec{B} = 2 \times 4 + \left(-3\right) \times 1 + 1 \times 5 = 10\)

Final Answer

\(\vec{A} \cdot \vec{B} = 10\)
See Example 4 Hide Example 4

Problem

\(\vec{A} = \left\langle 3,\; 0,\; -2 \right\rangle,\; \vec{B} = \left\langle 1,\; 7,\; 4 \right\rangle\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the components into the formula.
  4. Work out the dot product.

Formula

Formula: Dot Product Formula

This formula multiplies two vectors into a single number. Multiply the matching components, then add the three products.

\(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the dot product of \(\vec{A} = \left\langle 3,\; 0,\; -2 \right\rangle\) and \(\vec{B} = \left\langle 1,\; 7,\; 4 \right\rangle\).

\(\vec{A} = \left\langle 3,\; 0,\; -2 \right\rangle,\; \vec{B} = \left\langle 1,\; 7,\; 4 \right\rangle\)
x y z θ A ⟨3, 0, −2⟩ B ⟨1, 7, 4⟩

Step 2

Step 2 - Write the formula.

In this problem: The dot product multiplies the matching components of the two vectors and adds the three products, giving a single number.

\(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\)

Step 3

Step 3 - Substitute the components into the formula.

In this problem: Replacing each component in \(\vec{A} \cdot \vec{B} = a_{1}b_{1} + a_{2}b_{2} + a_{3}b_{3}\) gives \(\vec{A} \cdot \vec{B} = 3 \times 1 + 0 \times 7 + \left(-2\right) \times 4\).

\(\vec{A} \cdot \vec{B} = 3 \times 1 + 0 \times 7 + \left(-2\right) \times 4\)

Step 4

Step 4 - Work out the dot product.

In this problem: Multiplying the matching components gives \(3 \times 1 = 3\), \(0 \times 7 = 0\) and \(\left(-2\right) \times 4 = -8\). Adding the three products gives \(3 + 0 - 8 = -5\).

\(\vec{A} \cdot \vec{B} = 3 \times 1 + 0 \times 7 + \left(-2\right) \times 4 = -5\)

Final Answer

\(\vec{A} \cdot \vec{B} = -5\)

Calculator and Practice Mode