Angle Between Two Vectors Calculator

Enter the vector components to calculate the angle between them (in degrees and radians) and see the step-by-step solution with a graph.

Vector a
,
Vector b
,

Quick Examples

Rate this tool

How to Use the Calculator

This online angle between two vectors calculator is a geometric and algebraic tool that allows you to find the angle formed when positioning two vectors from the same origin. Designed to work in the Cartesian plane (R2) and in space (R3), the system will provide the direct value, the complete mathematical step-by-step solution, and a graphical representation of your problem.

How to enter your data:

  1. Select the dimension: Use the main menu to define whether your problem occurs in two dimensions (x, y axes) or three dimensions (x, y, z axes).
  2. Enter the components: Fill in the text fields with the rectangular components of each vector. The tool supports integers, decimals, and exact fractions.

Results:

When processing the values, the algorithm will structure the answer into three sections to make the analytical calculation easier to understand:

  • Main answer: In a highlighted box, you will get the direct solution to your problem. The calculator will display the angle measure expressed simultaneously in degrees and radians, so you can use the format required by your assignment.
  • Step-by-step solution: Below the answer, the entire procedure needed to find the angle will be displayed. First, the engine will calculate the dot product (or scalar product) between both vectors. Then, the individual magnitudes of each vector will be calculated. Finally, you will see how the classic trigonometric formula cos(θ) = (a · b) / (|a| · |b|) is used via the arccosine to solve for the angle.
  • Interactive graph: For problems set in R2, the bottom section will include an interactive Cartesian plane. In this representation, you can see both vectors plotted from the coordinate origin (0,0) and a visual arc highlighting the angle between them, allowing you to verify the geometric consistency of the results.

Solved Examples

The following are examples of problems solved by the calculator.

Find the angle between the vectors \(\vec{a}=\langle 3, 4\rangle\) and \(\vec{b}=\langle 12, 5\rangle.\)

Result

The angle between the given vectors is:

$$ \displaystyle \theta \approx 30.51^\circ \quad \text{|} \quad \displaystyle \theta \approx 0.5325 \text{ rad} $$

Step-by-step solution

1. Identify the vectors.

The vectors to work with are:

$$ \displaystyle \vec{a} = \langle 3, 4 \rangle \\[1em] \vec{b} = \langle 12, 5 \rangle $$

2. Calculate the dot product.

We determine the dot product between the vectors (to see the detailed step-by-step, check out the dot product calculator):

$$ \displaystyle \vec{a} \cdot \vec{b} = (3)(12) + (4)(5) = 56 $$

3. Calculate the magnitude of each vector.

We obtain the magnitude of both vectors (to see the step-by-step, check out the vector magnitude calculator):

$$ \displaystyle |\vec{a}| = \sqrt{(3)^2 + (4)^2} = \sqrt{25} = 5 \\[1em] |\vec{b}| = \sqrt{(12)^2 + (5)^2} = \sqrt{169} = 13 $$

4. Calculate the angle between the vectors.

We can obtain the angle between two vectors using the following formula:

$$ \displaystyle \theta = \arccos\left(\frac{\vec{a} \cdot \vec{b}}{|\vec{a}| |\vec{b}|}\right) $$

We substitute the previously calculated values:

$$ \displaystyle \theta = \arccos\left(\frac{56}{(5)(13)}\right) \\[1em] \theta = \arccos\left(\frac{56}{65}\right) \approx 30.51^\circ $$
Graph of two vectors in the Cartesian plane and the acute angle formed between them. Example 1.
Graph of the vectors
Get the angle between the two vectors \(\vec{a}=\langle 1, 1 \rangle\) and \(\vec{b}=\langle -1, 1\rangle.\)

Result

The angle between the given vectors is:

$$ \displaystyle \theta = 90^\circ \quad \text{|} \quad \displaystyle \theta \approx 1.5708 \text{ rad} $$

Step-by-step solution

1. Identify the vectors.

The vectors to work with are:

$$ \displaystyle \vec{a} = \langle 1, 1 \rangle \\[1em] \vec{b} = \langle -1, 1 \rangle $$

2. Calculate the dot product.

We determine the dot product between the vectors:

$$ \displaystyle \vec{a} \cdot \vec{b} = (1)(-1) + (1)(1) = 0 $$

3. Calculate the magnitude of each vector.

We obtain the magnitude of both vectors:

$$ \displaystyle |\vec{a}| = \sqrt{(1)^2 + (1)^2} = \sqrt{2} \\[1em] |\vec{b}| = \sqrt{(-1)^2 + (1)^2} = \sqrt{2} $$

4. Calculate the angle between the vectors.

We can obtain the angle between two vectors using the following formula:

$$ \displaystyle \theta = \arccos\left(\frac{\vec{a} \cdot \vec{b}}{|\vec{a}| |\vec{b}|}\right) $$

We substitute the previously calculated values:

$$ \displaystyle \theta = \arccos\left(\frac{0}{(\sqrt{2})(\sqrt{2})}\right) \\[1em] \theta = \arccos\left(\frac{0}{2}\right) = 90^\circ $$
Graph of two vectors in the Cartesian plane and the right angle formed between them. Example 2.
Graph of the vectors
Find the angle formed between the vectors \(\langle -3, -4\rangle\) and \(\langle -5, 12\rangle.\)

Result

The angle between the given vectors is:

$$ \displaystyle \theta \approx 120.51^\circ \quad \text{|} \quad \displaystyle \theta \approx 2.1033 \text{ rad} $$

Step-by-step solution

1. Identify the vectors.

The vectors to work with are:

$$ \displaystyle \vec{a} = \langle -3, -4 \rangle \\[1em] \vec{b} = \langle -5, 12 \rangle $$

2. Calculate the dot product.

We determine the dot product between the vectors:

$$ \displaystyle \vec{a} \cdot \vec{b} = (-3)(-5) + (-4)(12) = -33 $$

3. Calculate the magnitude of each vector.

We obtain the magnitude of both vectors:

$$ \displaystyle |\vec{a}| = \sqrt{(-3)^2 + (-4)^2} = \sqrt{25} = 5 \\[1em] |\vec{b}| = \sqrt{(-5)^2 + (12)^2} = \sqrt{169} = 13 $$

4. Calculate the angle between the vectors.

We can obtain the angle between two vectors using the following formula:

$$ \displaystyle \theta = \arccos\left(\frac{\vec{a} \cdot \vec{b}}{|\vec{a}| |\vec{b}|}\right) $$

We substitute the previously calculated values:

$$ \displaystyle \theta = \arccos\left(\frac{-33}{(5)(13)}\right) \\[1em] \theta = \arccos\left(\frac{-33}{65}\right) \approx 120.51^\circ $$
Graph of two vectors in the Cartesian plane and the obtuse angle between them. Example 3.
Graph of the vectors
Determine the angle between the vectors with decimal components \(\vec{a}=\langle 1.5, 2.5\rangle\) and \(\vec{b}=\langle-0.5, 3.2\rangle.\)

Result

The angle between the given vectors is:

$$ \displaystyle \theta \approx 39.84^\circ \quad \text{|} \quad \displaystyle \theta \approx 0.6954 \text{ rad} $$

Step-by-step solution

1. Identify the vectors.

The vectors to work with are:

$$ \displaystyle \vec{a} = \langle 1.5, 2.5 \rangle = \left\langle \frac{3}{2}, \frac{5}{2} \right\rangle \\[1em] \vec{b} = \langle -0.5, 3.2 \rangle = \left\langle -\frac{1}{2}, \frac{16}{5} \right\rangle $$

2. Calculate the dot product.

We determine the dot product between the vectors:

$$ \displaystyle \vec{a} \cdot \vec{b} = \left(\frac{3}{2}\right)\left(-\frac{1}{2}\right) + \left(\frac{5}{2}\right)\left(\frac{16}{5}\right) = \frac{29}{4} $$

3. Calculate the magnitude of each vector.

We obtain the magnitude of both vectors:

$$ \displaystyle |\vec{a}| = \sqrt{\left(\frac{3}{2}\right)^2 + \left(\frac{5}{2}\right)^2} = \sqrt{\frac{17}{2}} = \frac{\sqrt{17}}{\sqrt{2}} \\[1em] |\vec{b}| = \sqrt{\left(-\frac{1}{2}\right)^2 + \left(\frac{16}{5}\right)^2} = \sqrt{\frac{1049}{100}} = \frac{\sqrt{1049}}{10} $$

4. Calculate the angle between the vectors.

We can obtain the angle between two vectors using the following formula:

$$ \displaystyle \theta = \arccos\left(\frac{\vec{a} \cdot \vec{b}}{|\vec{a}| |\vec{b}|}\right) $$

We substitute the previously calculated values:

$$ \displaystyle \theta = \arccos\left(\frac{\frac{29}{4}}{(\frac{\sqrt{17}}{\sqrt{2}})(\frac{\sqrt{1049}}{10})}\right) \\[1em] \theta = \arccos\left(\frac{\frac{29}{4}}{\frac{\sqrt{17} \sqrt{1049}}{10 \sqrt{2}}}\right) \approx 39.84^\circ $$
Graph of two vectors in the Cartesian plane and the angle between them. Example 4.
Graph of the vectors
Calculate the angle between the vectors in three dimensions \(\langle 1, 2, 3\rangle\) and \(\langle 4, 5, 6\rangle.\)

Result

The angle between the given vectors is:

$$ \displaystyle \theta \approx 12.93^\circ \quad \text{|} \quad \displaystyle \theta \approx 0.2257 \text{ rad} $$

Step-by-step solution

1. Identify the vectors.

The vectors to work with are:

$$ \displaystyle \vec{a} = \langle 1, 2, 3 \rangle \\[1em] \vec{b} = \langle 4, 5, 6 \rangle $$

2. Calculate the dot product.

We determine the dot product between the vectors (to see the detailed step-by-step, check out the dot product calculator):

$$ \displaystyle \vec{a} \cdot \vec{b} = (1)(4) + (2)(5) + (3)(6) = 32 $$

3. Calculate the magnitude of each vector.

We obtain the magnitude of both vectors (to see the step-by-step, check out the vector magnitude calculator):

$$ \displaystyle |\vec{a}| = \sqrt{(1)^2 + (2)^2 + (3)^2} = \sqrt{14} \\[1em] |\vec{b}| = \sqrt{(4)^2 + (5)^2 + (6)^2} = \sqrt{77} $$

4. Calculate the angle between the vectors.

We can obtain the angle between two vectors using the following formula:

$$ \displaystyle \theta = \arccos\left(\frac{\vec{a} \cdot \vec{b}}{|\vec{a}| |\vec{b}|}\right) $$

We substitute the previously calculated values:

$$ \displaystyle \theta = \arccos\left(\frac{32}{(\sqrt{14})(\sqrt{77})}\right) \\[1em] \theta = \arccos\left(\frac{32}{\sqrt{14} \sqrt{77}}\right) \approx 12.93^\circ $$

Related Tools

Daniel Machado

Professor of Mathematics, graduated from the Faculty of Exact, Chemical and Natural Sciences of the National University of Misiones (UNAM). Developer and creator of RigelUp, dedicated to building tools for mathematical learning.