Vector dot product calculator
Finds the dot product of two 3D vectors and the angle between them.
anındahesapla Editör Ekibi · Updated:
Dot product: 32. For vectors a = (1, 2, 3) and b = (4, 5, 6), multiplying matching parts and adding gives 1·4 + 2·5 + 3·6 = 32. The angle between them is 12.93°.
Maths and physics students, game developers, engineers and data scientists use this calculator.
One number, plus an angle.
Results appear instantly, the tool is free and no sign-up is needed.
Result
32
Dot product: 32
Result in all units
Step-by-step solution
What the dot product tells you
The dot product combines two vectors into one number.
It measures how aligned they are.
Multiplying matching components and adding the results gives the dot product, and dividing it by the product of the two lengths gives the cosine of the angle between the vectors, which is how the calculator finds 12.93° here.
Positive means similar direction.
Zero means perpendicular.
Negative means opposite.
This sign test is used everywhere, from checking whether a surface faces a light source in 3D graphics to deciding whether a force helps or resists motion in physics, and it costs only a few multiplications.
Work in physics uses it.
Force times displacement.
Only the part of the force along the motion does work. The dot product picks out that part.
Quick rule: multiply matching parts, then add.
Data science uses it too.
Comparing documents, images or user preferences as long vectors relies on the same operation, and normalising the vectors first turns the result into a similarity score between minus one and one.
Two dimensions work by setting z to zero.
The angle formula stays the same.
Robotics and drone software use dot products to compare a heading with the direction to a target, turning until the two vectors line up and the angle between them shrinks close to zero.
Search engines and recommendation systems compare items as long vectors with the same arithmetic, only with many more components.
Students learning linear algebra meet the dot product early, and checking homework with a calculator shows quickly whether a sign or a component was mixed up along the way.
The angle result also helps visualise how two arrows relate in space.
Calculation steps
Formula: a·b = aₓbₓ + a_yb_y + a_zb_z.
- Enter the x, y and z parts of vector a.
- Enter the x, y and z parts of vector b.
- Read the dot product and the angle.
| Input or result | Value |
|---|---|
| Vector a | (1, 2, 3) |
| Vector b | (4, 5, 6) |
| Angle between them | 12.93° |
| Dot product (a·b) | 32 |
Set z to zero for 2D.
When the dot product comes out as zero, double-check the inputs before concluding the vectors are perpendicular, since a single mistyped sign can flip a term and turn a near-zero result into a misleading one.