Vector Angle Calculator

Angle between two vectors

CalculatorsFreeNo Signup
4.5(598 reviews)
All Tools

Loading tool...

About Vector Angle Calculator

A vector angle calculator that finds the angle between two vectors using the dot product formula: cos(θ) = (A·B)/(|A||B|). Supports 2D and 3D vectors. Shows cosine similarity, determines if vectors are parallel, perpendicular, or acute/obtuse. All calculations are client-side. Essential for physics, computer graphics, machine learning, and geometry.

Vector Angle Calculator Features

  • 2D/3D
  • Angle (deg/rad)
  • Cosine similarity
  • Relationship
  • Dot product
The angle between vectors A and B: cos(θ) = (A·B)/(|A||B|). θ = 0°: parallel (same direction). θ = 90°: perpendicular. θ = 180°: antiparallel. Cosine similarity = cos(θ), ranging from −1 to 1. In ML, high cosine similarity means similar directions.

How to Use

Enter two vectors:

  • 2D: (x, y) components
  • 3D: (x, y, z) components
  • Result: Angle and relationship

Special Cases

  • θ = 0°: parallel, same direction
  • θ = 90°: perpendicular (A·B = 0)
  • θ = 180°: antiparallel
  • 0° < θ < 90°: acute

Cosine Similarity

Used in ML and NLP to measure text/document similarity. Range [−1, 1]. 1 = identical direction, 0 = orthogonal, −1 = opposite.

Step-by-Step Instructions

  1. 1Enter vector A components.
  2. 2Enter vector B components.
  3. 3Toggle 2D/3D.
  4. 4View the angle.
  5. 5Check relationship.

Vector Angle Calculator — Frequently Asked Questions

What if the angle is exactly 90°?+

The vectors are perpendicular (orthogonal). Their dot product is exactly 0. This is fundamental in physics (work = F·d = 0 for perpendicular force and displacement).

How is cosine similarity used in AI?+

In NLP, words/documents are represented as high-dimensional vectors. Cosine similarity measures how 'similar' they are regardless of magnitude — 'king' and 'queen' have high similarity.

Can the angle be negative?+

No, the angle between vectors is always 0° ≤ θ ≤ 180°. The direction of rotation isn't defined for the dot product formula. Use the cross product to determine rotation direction in 3D.

Share this tool: