Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Dot Product CalculatorAngle ConverterVector CalculatorVector Projection CalculatorCross Product CalculatorVector Magnitude CalculatorGram-Schmidt Calculator
Home Page > Math > Linear Algebra

Angle Between Vectors Calculator

Calculate the angle between two 2D or 3D vectors using the dot product formula cos(θ) = (a·b)/(|a||b|). Get step-by-step solutions, results in both degrees and radians, interactive vector diagram, and geometric interpretation.

Free to useNo sign-up requiredInstant Results
Angle Between Vectors CalculatorTry it now — free ▼
Examples:
LIVE VECTOR PREVIEW
Vector ax, y or x, y, z
∠ θ
Vector bx, y or x, y, z

Embed Angle Between Vectors Calculator Widget

About Angle Between Vectors Calculator

The Angle Between Vectors Calculator finds the angle between two 2D or 3D vectors using the dot product formula \(\cos \theta = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}||\vec{b}|}\). Enter your vector components to instantly get the angle in both degrees and radians, a complete step-by-step solution, vector magnitudes, dot product, unit vectors, projection, geometric interpretation, and an interactive diagram with toggleable layers.

The Dot Product Angle Formula

The angle \(\theta\) between two vectors \(\vec{a}\) and \(\vec{b}\) is derived from the dot product identity:

$$\cos \theta = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}| \cdot |\vec{b}|}$$

Where:

Understanding the Dot Product Sign

a · b > 0
Acute angle (0° < θ < 90°) — vectors point in similar directions
a · b = 0
Right angle (θ = 90°) — vectors are perpendicular / orthogonal
a · b < 0
Obtuse angle (90° < θ < 180°) — vectors point in opposite directions

Real-World Applications

🎮
Game Dev
Field-of-view checks and lighting angles
🤖
Machine Learning
Cosine similarity measures text/document likeness
🔧
Physics
Work = F·d·cos θ for force along displacement
📡
Signal Processing
Phase angle between signal vectors
🏗
Engineering
Structural analysis of force directions
🧬
Bioinformatics
Gene expression vector similarity

Key Formulas

FormulaExpressionDescription
Dot Product (2D)\(a_1 b_1 + a_2 b_2\)Sum of component-wise products
Dot Product (3D)\(a_1 b_1 + a_2 b_2 + a_3 b_3\)Extends to three components
Magnitude\(|\vec{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}\)Length (norm) of a vector
Angle\(\theta = \arccos\left(\frac{\vec{a} \cdot \vec{b}}{|\vec{a}||\vec{b}|}\right)\)Always between 0° and 180°
Cosine Similarity\(\frac{\vec{a} \cdot \vec{b}}{|\vec{a}||\vec{b}|}\)Same as cos θ — ranges from −1 to 1
Projection\(\text{proj}_{\vec{b}}\vec{a} = \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^2}\vec{b}\)Component of a along b

How to Use the Angle Between Vectors Calculator

  1. Enter Vector a: Type the components separated by commas. Use 2 components for 2D (e.g., 3, 4) or 3 components for 3D (e.g., 1, 2, 3). Click any quick example to auto-fill both fields.
  2. Enter Vector b: Type the components of the second vector in the same dimension as vector a.
  3. Watch the live preview: The diagram updates in real time, showing both vectors and the computed angle as you type.
  4. Click Calculate: Press the button to get the full result including angle in degrees and radians, step-by-step solution, all related quantities, and the interactive diagram.
  5. Explore the diagram: Toggle layers (angle arc, projection, grid, labels) for different visualizations. For 3D vectors, drag to rotate the view.

2D vs 3D Vectors

The dot product angle formula works identically in both 2D and 3D — only the number of components changes. In 2D, vectors have components (x, y) and the diagram shows a flat Cartesian plane with a clear angle arc. In 3D, vectors have components (x, y, z) and the diagram provides an interactive rotatable isometric view. The mathematical principle is the same: compute the dot product, divide by the product of magnitudes, and take the arccosine.

FAQ

What is the formula for the angle between two vectors?
The angle between two vectors a and b is found using the dot product formula: cos(θ) = (a · b) / (|a| × |b|). First compute the dot product (sum of component-wise products), then divide by the product of the two magnitudes, and finally take the arccosine to get the angle θ.
Can you find the angle between 2D vectors?
Yes. The dot product formula works in any dimension. For 2D vectors (x, y), the dot product is a₁b₁ + a₂b₂ and the magnitudes use the same two components. The formula and steps are identical to 3D — just with one fewer component.
What does it mean when the angle between vectors is 90 degrees?
When the angle is 90°, the vectors are perpendicular (orthogonal). Their dot product equals zero, meaning they share no component in the same direction. This concept is fundamental in linear algebra, physics, and machine learning (orthogonal features are independent).
What is the range of the angle between two vectors?
The angle between two vectors always falls between 0° and 180° (0 to π radians). At 0° the vectors are parallel and point the same way, at 90° they are perpendicular, and at 180° they point in exactly opposite directions.
How is the dot product related to the angle between vectors?
The dot product a · b equals |a| × |b| × cos(θ). A positive dot product means the angle is acute (less than 90°), zero means the vectors are perpendicular (exactly 90°), and a negative dot product means the angle is obtuse (greater than 90°). The normalized version, cosine similarity, is widely used in NLP and recommendation systems.

Reference this content, page, or tool as:

"Angle Between Vectors Calculator" at https://MiniWebtool.com/angle-between-vectors-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: 2026-04-10

You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.

Linear Algebra:

Top & Updated:

Distance Between Two Points CalculatorAngle Bisector CalculatorMiter Angle CalculatorView all →
Home Page > Math > Linear Algebra > Angle Between Vectors Calculator