Britannica Sources used in this answer

How do dot products show whether two vectors are perpendicular?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In linear algebra, the dot product of two vectors, 𝐚 and 𝐛, is defined as:

𝐚·𝐛=|𝐚||𝐛|cosθ

where |𝐚| and |𝐛| are the magnitudes of the vectors and θ is the angle between them.12

Because the cosine of a 90-degree angle (perpendicular) is zero, the dot product of two non-zero vectors is exactly zero if and only if the vectors are perpendicular. In this context, perpendicularity is often referred to as orthogonality. Therefore, calculating the dot product provides a straightforward algebraic method to determine if two vectors are at right angles without needing to measure the angle directly.12