Dot Product of Two 3D Vectors (Components)

a⃗⋅b⃗=axbx+ayby+azbz\vec{a}\cdot\vec{b} = a_x b_x + a_y b_y + a_z b_z

Units aren’t used in this calculation: every value is a plain number.

sig figs

Worked example: (1, 2, 3)·(4, −5, 6) → 12. Press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value.

Where Dot Product of Two 3D Vectors (Components) fits

Missing an input?
Your answer feeds

See also

Magnitude of a 3D Vector: Both use vector x component and vector y component.Dot Product of Two 2D Vectors (Components): Both use dot product and vector x component.Angle Between Two 2D Vectors (Components): Both use vector x component and vector y component.Cross Product z-Component of Two 2D Vectors: Both use vector x component and vector y component.Direction Angle of a 2D Vector: Both use vector x component and vector y component.Magnitude of a 2D Vector: Both use vector x component and vector y component.
5 more relatedDot Product from Magnitudes and Included Angle: Both use dot product.Scalar Projection of One Vector onto Another: Both use dot product.y-Component from Magnitude and Angle: Both use vector y component.Unit Vector Component (Normalization): Both use vector x component.x-Component from Magnitude and Angle: Both use vector x component.
Learning zone

Dot Product of Two 3D Vectors (Components) explained

(ax, ay, az)(bx, by, bz)a·b

Adding a third axis costs the dot product exactly one more term. Its most-used property survives untouched: a·b = 0 means the two vectors meet at a right angle. That test underpins an enormous amount of working code: checking whether a surface normal faces a light, whether a ray runs parallel to a plane, whether two axes of a rotation matrix have drifted out of square. Example: (1, 2, 2)·(2, −2, 1) = 2 − 4 + 2 = 0, so those two are perpendicular even though neither lies along an axis and no picture would make it obvious.

Solve for one missing component and the equation is just a linear one in disguise: with a = (1, 2, 2), bx = 2, by = −2 and a required dot product of 0, the remaining component must satisfy 2 − 4 + 2bz = 0, giving bz = 1. The paired coefficient has to be non-zero, though: if az = 0 then bz never enters the sum, and no dot product can reveal it.

Dot Product of Two 3D Vectors (Components) formula

a⃗⋅b⃗=axbx+ayby+azbz\vec{a}\cdot\vec{b} = a_x b_x + a_y b_y + a_z b_z
Where
  • a⃗⋅b⃗\vec{a}\cdot\vec{b}= Dot product
  • axa_x= x-component of a
  • aya_y= y-component of a
  • aza_z= z-component of a
  • bxb_x= x-component of b
  • byb_y= y-component of b
  • bzb_z= z-component of b
Revised 31 October 2026
Cite this page

formula.expert. (2026, October 31). Dot Product of Two 3D Vectors (Components) Calculator. https://formula.expert/solvers/dot-product-3d