Mathematics · Formula

Dot product

Multiplies two vectors to get a scalar measuring how parallel they are.

Mathematics librarySymbols definedWorked example
Formula
a · b = |a| |b| cos θ = a1b1 + a2b2 + a3b3

Multiplies two vectors to get a scalar measuring how parallel they are.

What the symbols mean

  • a, b — the vectors
  • θ — the angle between them

What it means

The component form and the geometric form are equivalent. The dot product is zero exactly when the vectors are perpendicular, and positive when the angle is acute.

Worked example

Example

(2, 3) · (4, −1) = 8 − 3 = 5. Since it is positive, the vectors form an acute angle.

Related formulas

These relationships often appear alongside the dot product in the same problems.

Frequently asked questions

What is the dot product formula?

The relationship is a · b = |a| |b| cos θ = a1b1 + a2b2 + a3b3. Multiplies two vectors to get a scalar measuring how parallel they are.

When should I use the dot product formula?

The component form and the geometric form are equivalent. The dot product is zero exactly when the vectors are perpendicular, and positive when the angle is acute.

How do I avoid unit mistakes?

Write each quantity with its unit before substituting, convert to the units the formula expects, and check that the result's unit matches the quantity you are solving for. Angles must be in radians for calculus-based expressions unless the page says degrees.

Sources and standards

The equation form, symbols and expected units on this page are checked against the reference works below.

How these are used: sources and standards.

Reviewed November 2026 · Educational reference. See the disclaimer and methodology.