Overview

The dot product measures how much two vectors point the same way. It is zero when they are perpendicular.

Enter both vectors.

Worked examples

InputsResult
A x1A y2A z3B x4B y-5B z6Dot product: 12Angle between them: 68.5624°
Show 2 more examples
A x1A y0A z0B x0B y1B z0Dot product: 0Angle between them: 90°The vectors are perpendicular.
A x2A y3A z0B x4B y1B z0Dot product: 11Angle between them: 42.2737°

Dot product by a z

With the calculator's starting values, the dot product is 12. The table shows how it changes with the a z.

A zDot product
1.53
26
2.59
3starting value12
3.515
418
4.521

Other inputs: A x: 1 · A y: 2 · B x: 4 · B y: -5 · B z: 6. Change them in the calculator above for your own numbers.

How it works

A·B = AxBx + AyBy + AzBz. The angle comes from cos θ = A·B ÷ (|A||B|).

The formula

A·B = ΣAᵢBᵢ · cos θ = A·B ÷ (|A||B|)
θAngle between the vectors

Practical tips

  • (1, 2, 3) · (4, −5, 6) = 12, an angle of about 68.6°.
  • Physics work is a dot product: force · displacement.
  • Negative dot products mean an angle above 90°.

Frequently asked questions

Is the dot product a vector?

No, it is a single number.

What does zero mean?

The vectors are perpendicular.