Dot Product Calculator – Scalar Product & Angle Between Two Vectors
Use this free Dot Product Calculator to find the scalar (dot) product of two vectors from their components, together with the angle between them. It works in 3D — just leave the z components as 0 for flat 2D problems.
Formula
A · B = AxBx + AyBy + AzBz and cos θ = (A · B) / (|A| |B|)
How to use
- Enter the x, y and z components of vector A and vector B (use 0 for z in 2D problems).
- Click "Calculate Dot Product".
- You get the dot product, both magnitudes, and the angle between the vectors in degrees.
Worked example
Let A = (1, 2, 3) and B = (4, 5, 6). A · B = (1×4) + (2×5) + (3×6) = 4 + 10 + 18 = 32. Also |A| = √14 = 3.74 and |B| = √77 = 8.77, so cos θ = 32 / (3.74 × 8.77) and the angle between them is 12.93°.
FAQ
What does the dot product tell us?
It measures how much two vectors point in the same direction. It is also how physics defines work: W = F · d, the force component along the displacement times the displacement.
What does a dot product of zero mean?
The vectors are perpendicular (the angle between them is 90°). A negative dot product means the angle is greater than 90° — the vectors point partly against each other.
Is the dot product a vector?
No. Unlike the cross product, the dot product is a single number (a scalar) with no direction.