Dot Product Calculator

MATRICES & VECTORS

Find the dot product of two vectors and the angle between them. Enter both vectors, components separated by commas.

Dot Product
—
Scalar result.

Usage Tip

Projection, work in physics, and similarity in machine learning all rest on the dot product.

THE MATH
A · B = sum of products of matching components
cos(angle) = (A · B) ÷ (|A| |B|)
The dot product combines two vectors into a single number, related to how aligned they are.
Zero means perpendicular; positive means a similar direction, negative the opposite.
Enter two vectors of equal length.
The angle between them and both magnitudes are shown.
The dot product is zero exactly when the vectors are perpendicular.
Practical Notes

The dot product multiplies matching components of two vectors and adds the results into a single number. It also equals the product of the two lengths times the cosine of the angle between them, which is how the angle is found. A positive dot product means the vectors point in broadly the same direction, zero means they are perpendicular, and a negative value means they point in opposite directions.

The dot product is used to find the component of one vector along another, to test for perpendicular directions, and to calculate work done by a force. Both vectors must have the same number of components. If either vector has zero length, the angle between them is undefined.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.