Home/Mathematics/Dot Product of Vectors

Formula & Calculator

Dot Product of Vectors

Calculates the scalar dot product of two vectors by summing the products of their corresponding components.

MathematicsLinear AlgebraDaily Life

Dot Product CalculatorVector · Vector

a · b = a₁·b₁ + a₂·b₂ + a₃·b₃
a · b = scalar result  ·  a = (a₁, a₂, a₃)  ·  b = (b₁, b₂, b₃)
⟹ Solvea·b, a-component, b-component
scalar
Please fix the errors above.
Solve for:
Examples:
Dot Product (a · b)
a: b: a·b:
✓ Copied!
Dot Product Magnitude
Small (< 10) Moderate (10–40) Large (> 40)
a · b = a₁·b₁ + a₂·b₂ + a₃·b₃  ·  Dot product is a scalar; result is the sum of component-wise products.
a . b = a1*b1 + a2*b2 + a3*b3
Dot Product of Vectors

Variables

SymbolQuantityUnit
a, bVectors being multiplied
a1, a2, a3Components of vector a
b1, b2, b3Components of vector b

What it means

The dot product (or scalar product) of two vectors is defined as the sum of the products of their corresponding components. For 3D vectors, a·b = a₁b₁ + a₂b₂ + a₃b₃. Geometrically, it equals |a||b| cos θ, where θ is the angle between them. The dot product is used to determine if vectors are orthogonal (dot=0), to compute projections, and to calculate work in physics (W = F·d). In machine learning, it is used in linear regression, kernel methods, and similarity measures. It is also used in computer graphics for lighting calculations. Understanding the dot product is fundamental for vector analysis and its applications.

Worked example

Dot Product – Two Examples

Real‑World
Scenario: A physicist calculates work done by force F=(3,4,0) over displacement d=(1,2,0). Work = F·d.
ParameterValue
Vector a(3,4,0)
Vector b(1,2,0)
1a·b = 3·1 + 4·2 + 0·0 = 3 + 8 = 11
Result 11 ✓ Work
Scenario: A data scientist finds cosine similarity between vectors (1,0,0) and (0,1,0) – dot product is 0, meaning orthogonal.
ParameterValue
Vector a(1,0,0)
Vector b(0,1,0)
1a·b = 1·0 + 0·1 + 0·0 = 0
Result 0 ✓ Orthogonal
Insight: Dot product measures projection of one vector on another. Zero means perpendicular.

Common mistakes

  • Dot product: a·b = a₁b₁ + a₂b₂ + a₃b₃ – sum of component‑wise products.
  • Result: A scalar (not a vector).
  • Commutative: a·b = b·a.
  • Geometric: a·b = |a||b|cosθ – useful for finding angles.
  • Orthogonality: If a·b = 0, the vectors are perpendicular.

Applications

The dot product of vectors, a·b = a₁b₁ + a₂b₂ + a₃b₃, is a scalar that measures the projection of one vector onto another. It is used to determine angles, to test orthogonality, and to compute work done by a force. Engineers apply it in structural analysis to resolve forces, in computer graphics for lighting calculations, and in signal processing for correlation and similarity. The dot product also appears in machine learning for vector similarity measures (e.g., cosine similarity). By using this operation, professionals can efficiently compute projections and geometric relationships, making it a fundamental tool in vector algebra across all STEM fields.

  • Force analysis in mechanical systems (work and projections)
  • Angle and orthogonality checks in geometry
  • Computer graphics (shading, light reflection)
  • Signal processing (correlation, matched filtering)
  • Machine learning (similarity metrics, kernel methods)