Select the vector type, choose the representation method, and enter all coordinates. The calculator will instantly determine the angle, magnitude, and dot product between them.
Related
An online angle between two vectors calculator allows you to find the angle, magnitude, and dot product between two vectors. It works for both 2D and 3D vectors. Read on to learn how to use formulas and examples to determine the angle between vectors.
In mathematics, the angle between two vectors is the smallest angle through which one vector must rotate to align with the other. Vectors have both magnitude and direction and can be represented in 2D or 3D space.
Different formulas are used depending on how the vectors are represented:
Vectors represented by coordinates:
Let vectors be m = [xm, ym] and n = [xn, yn]. Then the angle between them is:
\( \text{Angle} = \cos^{-1} \left[ \frac{x_m x_n + y_m y_n}{\sqrt{x_m^2 + y_m^2} \cdot \sqrt{x_n^2 + y_n^2}} \right] \)
Vectors defined by terminal points:
For vector p with points M = [xm, ym] and N = [xn, yn]:
p = [xn − xm, yn − ym]
For vector q with points C = [xc, yc] and D = [xd, yd]:
q = [xd − xc, yd − yc]
Then, the angle is:
\[ \text{Angle} = \cos^{-1} \left[ \frac{(x_n - x_m)(x_d - x_c) + (y_n - y_m)(y_d - y_c)}{\sqrt{(x_n - x_m)^2 + (y_n - y_m)^2} \cdot \sqrt{(x_d - x_c)^2 + (y_d - y_c)^2}} \right] \]
An online Arccos Calculator can compute the inverse cosine for any number.
Vectors represented by coordinates:
Let vectors be m = [xm, ym, zm] and n = [xn, yn, zn]. The angle between them is:
\[ \text{Angle} = \cos^{-1} \left[ \frac{x_m x_n + y_m y_n + z_m z_n}{\sqrt{x_m^2 + y_m^2 + z_m^2} \cdot \sqrt{x_n^2 + y_n^2 + z_n^2}} \right] \]
Vectors defined by terminal points:
For vector a with points M = [xm, ym, zm] and N = [xn, yn, zn]:
a = [xn − xm, yn − ym, zn − zm]
For vector b with points O = [xo, yo, zo] and P = [xp, yp, zp]:
b = [xp − xo, yp − yo, zp − zo]
The angle formula is analogous to the 2D case:
\[ \text{Angle} = \cos^{-1} \left[ \frac{(x_n - x_m)(x_p - x_o) + (y_n - y_m)(y_p - y_o) + (z_n - z_m)(z_p - z_o)}{\sqrt{(x_n - x_m)^2 + (y_n - y_m)^2 + (z_n - z_m)^2} \cdot \sqrt{(x_p - x_o)^2 + (y_p - y_o)^2 + (z_p - z_o)^2}} \right] \]
The angle between two vectors can also be found using the dot product formula:
\( \mathbf{a} \cdot \mathbf{b} = |\mathbf{a}| \cdot |\mathbf{b}| \cdot \cos(\theta) \)
Solving for the angle:
\( \theta = \cos^{-1} \left( \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}| \cdot |\mathbf{b}|} \right) \)
Magnitude of a vector:
Given vectors:
A = {4, 6, 8}, B = {3, 2, 5}
Step 1: Dot Product
A · B = 4·3 + 6·2 + 8·5 = 64
Step 2: Magnitudes
|A| = √(4² + 6² + 8²) = √116 ≈ 10.77033
|B| = √(3² + 2² + 5²) = √38 ≈ 6.16441
Step 3: Angle
cos θ = 64 / (10.77033 · 6.16441) ≈ 0.96396
θ ≈ cos⁻¹(0.96396) ≈ 15.43°
180°
1
Angles are dimensionless, but their orientation (clockwise or counterclockwise) gives directional information.
This calculator efficiently computes the angle between vectors in 2D and 3D, providing dot product, magnitudes, and step-by-step results.
Wikipedia: Dot product and law of cosines
WikiHow: Find the Angle Between Two Vectors
Krista King Math: Finding angles in 3D
Related
Links
Home Conversion Calculator About Calculator Online Blog Hire Us Knowledge Base Sitemap Sitemap TwoEmail us at
Contact Us© Copyrights 2026 by Calculator-Online.net