Free Angle Between Two Vectors Calculator

Vector Space

Vector A

x
y

Vector B

x
y

Result Unit

Angle (α)

Enter vector coordinates
to calculate the angle

The Angle Between Two Vectors Calculator is a practical online tool that quickly determines the angle between any two vectors, supporting both 2D vector angle and 3D vector angle calculations. No matter if your vectors are given as coordinate pairs (component form) or as a starting and termination point, this calculator handles all common input formats. At its core, the tool uses the well‑known dot product relation (hence it functions as a vector dot product calculator) to deliver accurate results for students and professionals in physics, engineering, and geometry.

Formulas for 2D and 3D Vector Angles

The angle α\alpha between two vectors can always be expressed using the dot product and the magnitudes of the vectors. The following table summarizes the formulas for the most frequent cases.

DimensionInput TypeFormula
2DCoordinates (x1,y1),(x2,y2)(x_1,y_1), (x_2,y_2)α=arccos⁡(x1x2+y1y2x12+y12  x22+y22)\alpha = \arccos\left(\dfrac{x_1 x_2 + y_1 y_2}{\sqrt{x_1^{2}+y_1^{2}}\;\sqrt{x_2^{2}+y_2^{2}}}\right)
2DPoints A(x1,y1),B(x2,y2)A(x_1,y_1), B(x_2,y_2)Subtract to get vector a=(x2−x1,  y2−y1)\mathbf{a} = (x_2-x_1,\; y_2-y_1), then apply the coordinate formula above
3DCoordinates (x1,y1,z1),(x2,y2,z2)(x_1,y_1,z_1), (x_2,y_2,z_2)α=arccos⁡(x1x2+y1y2+z1z2x12+y12+z12  x22+y22+z22)\alpha = \arccos\left(\dfrac{x_1 x_2 + y_1 y_2 + z_1 z_2}{\sqrt{x_1^{2}+y_1^{2}+z_1^{2}}\;\sqrt{x_2^{2}+y_2^{2}+z_2^{2}}}\right)
3DPoints A(x1,y1,z1),B(x2,y2,z2)A(x_1,y_1,z_1), B(x_2,y_2,z_2)Compute a=(x2−x1, y2−y1, z2−z1)\mathbf{a} = (x_2-x_1,\,y_2-y_1,\,z_2-z_1), then use the 3D coordinate formula

Interpretation: The resulting angle α\alpha always lies between 0∘0^{\circ} and 180∘180^{\circ}. A positive dot product indicates an acute angle (<90°), a negative dot product indicates an obtuse angle (>90°), and a zero dot product means the vectors are orthogonal (90°).

How the Formula Is Derived

The derivation starts from the geometric definition of the dot product:

a⋅b=∣a∣ ∣b∣ cos⁡α\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}| \, |\mathbf{b}| \, \cos\alpha

Solving for cos⁡α\cos\alpha gives:

cos⁡α=a⋅b∣a∣ ∣b∣\cos\alpha = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}| \, |\mathbf{b}|}

The magnitude of a vector is computed by taking the square root of the sum of its squared components:

∣a∣=xa2+ya2+(if 3D za2)|\mathbf{a}| = \sqrt{x_a^{2} + y_a^{2} + (\text{if 3D } z_a^{2})}

Meanwhile, the algebraic dot product is simply the sum of the products of the corresponding components:

a⋅b=xaxb+yayb+(in 3D zazb)\mathbf{a} \cdot \mathbf{b} = x_a x_b + y_a y_b + (\text{in 3D } z_a z_b)

Substituting these expressions into the rearranged dot product equation and taking the inverse cosine yields the formulas listed in the table above.

Worked Example: 3D Vectors

Consider the following scenario: vector a\mathbf{a} is given in coordinate form, and vector b\mathbf{b} is defined by two points.

  • a=(3,6,1)\mathbf{a} = (3, 6, 1)
  • b\mathbf{b} from A=(1,1,2)A = (1, 1, 2) to B=(−4,−8,6)B = (-4, -8, 6)

Step 1 – Express b\mathbf{b} in component form:
b=(−4−1, −8−1, 6−2)=(−5,−9,4)\mathbf{b} = (-4-1,\,-8-1,\,6-2) = (-5, -9, 4)

Step 2 – Compute the dot product:
a⋅b=3×(−5)+6×(−9)+1×4=−15−54+4=−65\mathbf{a} \cdot \mathbf{b} = 3\times(-5) + 6\times(-9) + 1\times4 = -15 - 54 + 4 = -65

Step 3 – Compute the magnitudes:
∣a∣=32+62+12=9+36+1=46≈6.782|\mathbf{a}| = \sqrt{3^{2}+6^{2}+1^{2}} = \sqrt{9+36+1} = \sqrt{46} \approx 6.782
∣b∣=(−5)2+(−9)2+42=25+81+16=122≈11.045|\mathbf{b}| = \sqrt{(-5)^{2}+(-9)^{2}+4^{2}} = \sqrt{25+81+16} = \sqrt{122} \approx 11.045

Step 4 – Find the angle:

cos⁡α=−656.782×11.045≈−0.8678,α=arccos⁡(−0.8678)≈150.2∘\cos\alpha = \frac{-65}{6.782 \times 11.045} \approx -0.8678,\qquad \alpha = \arccos(-0.8678) \approx 150.2^{\circ}

This example demonstrates the typical workflow. The same result can be obtained directly by entering the vectors into the calculator — with a few clicks you get the angle, dot product, and magnitudes without manual calculations.

How to Use the Angle Between Two Vectors Calculator

Operating the tool is simple:

  1. Choose the dimension: Select “2D” or “3D” depending on your vectors.
  2. Set the input format for the first vector: Pick either “coordinates” or “points” (initial and terminal).
  3. Fill in the values: For coordinates, enter the numeric components; for points, provide the coordinates of the start and end points.
  4. Repeat the same steps for the second vector.
  5. Read the results: The calculator instantly displays the angle (in degrees), the dot product, and the magnitudes of both vectors.

The tool automatically handles any necessary unit conversions and arithmetical steps, making it a reliable companion for both quick checks and deep learning.

FAQ

1. How is the angle between two vectors calculated?

The angle α is derived from the dot product and magnitudes: α = arccos[(a·b)/(|a||b|)]. The calculator applies this formula for both 2D and 3D vectors, automatically converting point inputs to component form when needed.

2. Can I input vectors that are defined by initial and terminal points?

Yes. You can choose the 'points' representation and enter the start and end coordinates. The calculator subtracts them to obtain the component form before computing the angle.

3. What does the dot product have to do with the angle between vectors?

The geometric definition of the dot product states a·b = |a||b|cosα. Rearranging this equation gives the cosα expression used to find α, so the dot product is directly linked to the angle.

4. Does the calculator also show the vector magnitudes?

Yes, besides the angle, the calculator displays the dot product value and the magnitude (length) of each vector, giving you a full set of results for the input vectors.

5. What range does the calculated angle cover?

The angle between two vectors is always between 0° and 180°. A positive dot product indicates an acute angle (<90°), a negative dot product indicates an obtuse angle (>90°), and zero means the vectors are perpendicular (90°).

How to Use

  1. Select whether your vectors are in 2D or 3D space using the dimension toggle.
  2. Enter the coordinates for Vector A and Vector B. For 2D, fill in x and y; for 3D, fill in x, y, and z.
  3. The angle between the two vectors is calculated instantly, along with magnitudes, dot product, and a step-by-step breakdown.