Dot Product Calculator

Published on: March 8, 2026
Final Answer: Free | Full Steps: Pro

This Dot Product Calculator multiplies two vectors into a single number, and shows the working 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. Multiply the matching components, add the products and compare. For two more free worked examples, check out the Dot Product Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together 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\)

Notes and Practice Mode

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

Example Problems

Click one to load it into the box and solve it.