Loading…

Dot Product Calculator

Physics Classical Mechanics • Vectors

View all topics

Compute the dot product A·B, the angle between two vectors, orthogonality, scalar projection, and the work-style interpretation W = F·d. The graph supports zoom, pan, and a Play animation for the angle arc and projection.

Vector A
Vector B

Accepted numeric expressions include pi/2, sqrt(2), 1e-3, sin(0.4), and abs(-5). In 2D the graph shows the smaller angle arc and the projection of B onto A. In 3D, drag the graph to rotate the viewpoint.

Ready
Enter the vectors and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

How do you compute the dot product?

Multiply matching components and add them. In 2D, A·B = AxBx + AyBy. In 3D, add the z-term as well.

When are two vectors orthogonal?

Two nonzero vectors are orthogonal when their dot product is zero. That means the angle between them is 90 degrees.

What does a negative dot product mean?

A negative dot product means the angle between the vectors is obtuse, so they point partly in opposite directions.

What is the work interpretation of the dot product?

If one vector is force and the other is displacement, the dot product gives the work done: W = F·d.

What is the projection vector?

The projection of B onto A is the part of B that lies along the direction of A. It is given by proj_A(B) = (A·B)/(A·A) A.