How Angle Between Vectors Calculator Works?
The Angle Between Vectors Calculator works by dividing the dot product by the product of the magnitudes and taking the arccos: θ = arccos((a·b)/(|a||b|)).
- Enter vector a. 2D or 3D components.
- Enter vector b. Same dimension as a.
- Compute a·b and the magnitudes. a·b = aₓbₓ + a_yb_y (+ a_zb_z).
- Apply arccos. Result in [0°, 180°].
Angle Between Vectors Calculator Formula
The angle between 2 vectors is θ = arccos((a·b)/(|a|·|b|)).
Worked Example
a = (1, 2, 2), b = (2, 1, −2). a·b = 2 + 2 − 4 = 0. θ = 90°.
Angle Between Vectors Calculator Conversion Table
The angle between vectors conversion table lists 8 vector pairs with dot product and angle.
| a | b | a·b | |a||b| | Angle |
|---|---|---|---|---|
| (1, 0) | (0, 1) | 0 | 1 | 90° |
| (1, 0) | (1, 1) | 1 | 1.4142 | 45° |
| (3, 4) | (4, 3) | 24 | 25 | 16.26° |
| (1, 2) | (−2, 1) | 0 | 5 | 90° |
| (1, 0) | (−1, 0) | −1 | 1 | 180° |
| (2, 1) | (1, 3) | 5 | 7.0711 | 45° |
| (1, 1) | (−1, 1) | 0 | 2 | 90° |
| (5, 0) | (3, 4) | 15 | 25 | 53.13° |
What is Angle Between Vectors Calculator?
An Angle Between Vectors Calculator is a tool that finds the smallest angle between 2 vectors placed tail to tail.
The dot product is positive for acute angles, zero for right angles, and negative for obtuse angles.
The ratio (a·b)/(|a||b|) is called cosine similarity in data science.
What are the uses of Angle Between Vectors Calculator?
There are 4 main uses of an Angle Between Vectors Calculator.
- Physics: Find the angle between force and displacement for work.
- 3D graphics: Compute lighting with the angle between surface normal and light.
- Text search: Compare document vectors with cosine similarity.
- Chemistry: Find bond angles from atom coordinates.