Angle Between Vectors Calculator

Calculate the angle between two vectors in 2D or 3D using the dot product formula.

Share this calculator

Dimensions

Vector 1

Vector 2

How it works

The angle between two vectors is found using the dot-product formula: cos(θ) = (v1 · v2) / (|v1| × |v2|). The result is always between 0° and 180°.

Special cases

Parallel vectors give 0°, opposite vectors give 180°, and perpendicular vectors give exactly 90°. A zero-length vector has no defined direction, so the angle is undefined.

Result

16.2602°

The angle between the two vectors is 16.2602° (0.283794 rad).

Angle (degrees)
16.2602°
Angle (radians)
0.283794 rad
Dot product
24
cos(θ)
0.96
|v1|
5
|v2|
5

Step-by-step

Given 2D vectors v1 = (3, 4) and v2 = (4, 3).

Dot product: v1 · v2 = (3 × 4) + (4 × 3) = 24.

|v1| = √(3² + 4²) = 5.

|v2| = √(4² + 3²) = 5.

cos(θ) = 24 / (5 × 5) = 0.96.

θ = arccos(0.96) = 16.2602° (0.283794 rad).

Also in Linear Algebra

Linear Algebra

Angle between vectors calculator: find the angle using the dot product

An angle between vectors calculator uses the dot product formula cos(θ) = (u·v)/(|u||v|) to find the angle between two vectors in 2D or 3D space.

The dot product method

The dot product u·v equals |u||v|cos(θ). Rearranging gives θ = arccos(u·v / (|u||v|)). The result is always between 0° and 180°.

Special cases: perpendicular vectors have a dot product of zero (90°), parallel vectors give 0° or 180°.

θ = arccos((u · v) / (|u| × |v|))

Angle between two vectors.

Frequently asked questions

Can the angle be greater than 180°?

No — the angle between two vectors is defined as the smallest angle between them, so it is always between 0° and 180° inclusive.

What if one vector is the zero vector?

The angle is undefined because the zero vector has no direction. The calculator returns no result in this case.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.