Home · Everyday · Vectors & Complex Numbers · Dot Product Calculator

Dot Product Calculator

The dot product of two vectors — sum of component products — with the angle between them.

Your figures

Example result — edit the figures to make it yours

12

Dot product a · b

Sum of component products. Positive means the vectors point in broadly the same direction; zero means they are perpendicular.

|a|3.7417
|b|8.775
Angle between them68.5624°

What this calculator does

The dot product of two vectors — sum of component products — with the angle between them. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

a · b = Σ aᵢbᵢ = |a| |b| cos θ

Enter vectors as comma-separated components; both vectors must share the same dimension.

Components are combined by the standard vector rules (Euclidean geometry).

Angles are returned in degrees unless you switch the angle unit.

Worked example

With the example inputs this page opens with (a — x 1, a — y 2, a — z 3, b — x 4), the result is 12 — dot product a · b. Sum of component products. Positive means the vectors point in broadly the same direction; zero means they are perpendicular.

Quick reference

Quick reference — varying a — x
a — xDot product a · b
0.510
0.811.2
112
1.2513
1.514
216

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Dot Product Calculator work?

The dot product of two vectors — sum of component products — with the angle between them. Vector a · Vector b → a · b. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Dot Product Calculator need?

Vector a · Vector b → a · b. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Dot Product Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.