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
| Inputs | Result |
|---|---|
| A x1A y2A z3B x4B y-5B z6 | Dot product: 12Angle between them: 68.5624° |
Show 2 more examples
| A x1A y0A z0B x0B y1B z0 | Dot product: 0Angle between them: 90°The vectors are perpendicular. |
| A x2A y3A z0B x4B y1B z0 | Dot 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 z | Dot product |
|---|---|
| 1.5 | 3 |
| 2 | 6 |
| 2.5 | 9 |
| 3starting value | 12 |
| 3.5 | 15 |
| 4 | 18 |
| 4.5 | 21 |
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.