Distance Formula Calculator
Distance between two points in 2D or 3D.
Scalar product of two vectors, plus the angle between them.
Leave at 0 for a 2D vector.
| Measure | Value |
|---|
Dot Product Calculator multiplies two vectors componentwise and adds the results, giving a single number rather than a vector — which is why it is also called the scalar product. Leave the z components at zero and it works for two-dimensional vectors unchanged.
The sign of the answer is the useful part. A positive dot product means the vectors point broadly the same way, negative means broadly opposite, and exactly zero means they are perpendicular. That last fact is the standard test for a right angle in coordinate geometry and in computer graphics, and it needs no trigonometry at all.
The angle itself follows from a · b = |a||b| cos θ, which the page rearranges and shows. The magnitudes are given alongside because they are what turn the dot product into an angle, and because a zero-length vector has no direction, so no angle exists.
The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.
Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.
More tools: FreeToolsHub.org
The Dot Product Calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
The sum of the products of matching components: a₁b₁ + a₂b₂ + a₃b₃. The result is a single number, not a vector.
The vectors are perpendicular, provided neither has zero length. It is the quickest test for a right angle between two directions.
Rearrange a · b = |a||b| cos θ to cos θ = (a · b) / (|a||b|), then take the inverse cosine. The page shows that step.
Yes. Leave both z components at zero and everything — the product, the magnitudes and the angle — comes out correctly for two dimensions.
If the Dot Product Calculator is not quite what you need, these other free tools solve closely related problems, and there are 35 more in math calculators.
Distance between two points in 2D or 3D.
Slope between two points, with angle and line equation.
Sin, cos, tan and the inverse functions.
Midpoint, missing endpoint and any division ratio.
Square root, simplified radical form, square and cube root.
Checked and rebuilt on 2026-10-18. The method this calculator uses is described in the section above, and corrections go through the contact page.