Angle Between Vectors Calculator
Calculate the angle between two 2D vectors in both degrees and radians, along with the dot product and both magnitudes, with a visual diagram and full step-by-step working.
Vector A
Vector B
Angle Between Vectors θ
57.529°
= 1.004 radians
A · B = 7
|A| = 4.123 |B| = 3.162
The angle between the vectors is acute — less than 90°.
Vectors and the Angle Between Them
Both vectors are drawn from the same origin. The arc shows the angle θ, with the exact value labeled directly on the diagram.
θ = 57.529° (1.004 rad) | A · B = 7 | |A| = 4.123, |B| = 3.162
Step-by-Step Solution
Here's exactly how this answer was calculated, one step at a time.
- 1
Write down each vector's x and y components
A = (4, 1), B = (1, 3)
The angle between two vectors is found using the dot product formula, so start by identifying every component of A and B.
- 2
Calculate the dot product A · B
A · B = Ax×Bx + Ay×By = (4)(1) + (1)(3) = 4 + 3 = 7
Multiply the matching components and add the results to get the scalar dot product.
- 3
Find the magnitude of each vector
|A| = √(4² + 1²) = 4.123, |B| = √(1² + 3²) = 3.162
Each vector's magnitude (length) comes from the Pythagorean theorem applied to its own components.
- 4
Divide the dot product by the product of the magnitudes
cos θ = (A · B) / (|A| |B|) = 7 / (4.123 × 3.162) = 0.5369
This rearranges the geometric dot product formula A · B = |A| |B| cos(θ) to isolate cos(θ).
- 5
Take the inverse cosine to find the angle
θ = arccos(0.5369) = 57.529° = 1.004 rad
Applying arccos (cos⁻¹) to both sides gives the actual angle between the two vectors, in degrees and radians.
✓ θ = 57.529° = 1.004 radians
Free Online Angle Between Vectors Calculator
This angle between vectors calculator instantly finds the angle between two 2D vectors, in both degrees and radians, along with the dot product and each vector's magnitude. It works as an angle between vectors calculator, vector angle calculator, and angle between two vectors calculator all in one tool, so you never need to work through the dot product, magnitude, and inverse cosine steps by hand.
Whether you're a student solving physics or linear algebra homework on vector direction, an engineer checking whether two forces or directions are aligned, or a programmer comparing directions in graphics or navigation code, this angle between vectors calculator gives you an instant, accurate result along with a visual diagram and complete step-by-step working, so the geometry behind the formula is never a mystery.
How to Use This Angle Between Vectors Calculator
Using this online angle between vectors calculator takes only a few seconds. Enter the x and y components of vector A, then enter the x and y components of vector B — the angle, dot product, and both magnitudes update instantly as you type. The diagram redraws automatically to show both vectors from the same origin, with the angle between them marked and labeled directly on the arc.
- Enter the x-component and y-component of vector A
- Enter the x-component and y-component of vector B
- Read the angle θ in both degrees and radians, along with the dot product and magnitudes
- Check the diagram and step-by-step solution to see exactly how the angle was calculated
Angle Between Vectors Formula
The angle between two vectors is found by rearranging the geometric dot product formula. For 2D vectors A = (Ax, Ay) and B = (Bx, By), the dot product equals the product of their magnitudes times the cosine of the angle between them — solving that equation for θ gives the formula below. Enter any two vectors' components, and the calculator applies this formula automatically.
- Dot product: A · B = Ax × Bx + Ay × By
- Magnitude formula: |A| = √(Ax² + Ay²), and the same for |B|
- Geometric relationship: A · B = |A| × |B| × cos(θ)
- Angle formula: θ = arccos( (A · B) / (|A| |B|) )
- In radians: multiply the degree result by π/180, or compute arccos directly in radian mode
Worked Example: Finding the Angle Between Two Vectors
Suppose A = (4, 1) and B = (1, 3). First, find the dot product: A · B = (4)(1) + (1)(3) = 4 + 3 = 7 — matching the default example above.
Next, find each vector's magnitude: |A| = √(4² + 1²) = √17 ≈ 4.123, and |B| = √(1² + 3²) = √10 ≈ 3.162. Now divide the dot product by the product of the magnitudes: cos θ = 7 ÷ (4.123 × 3.162) ≈ 0.5368. Finally, take the inverse cosine: θ = arccos(0.5368) ≈ 57.53°, or about 1.004 radians. Because the angle is less than 90°, vectors A and B point in a broadly similar, acute direction.
Understanding the Result: Acute, Obtuse, and Special Angles
The angle between two vectors always falls between 0° and 180° — vectors don't have a 'negative' angle between them the way directions on a compass might, since the smaller of the two possible angles is always reported. A 0° angle means the vectors point in exactly the same direction (they are parallel), while a 180° angle means they point in exactly opposite directions.
An angle of exactly 90° means the vectors are perpendicular (orthogonal) — this happens precisely when the dot product equals zero, which is often the fastest way to test perpendicularity without computing the full angle. Angles below 90° are called acute, meaning the vectors broadly point the same way, while angles above 90° are obtuse, meaning the vectors broadly point away from each other.
Degrees vs. Radians
This calculator reports the angle between vectors in both degrees and radians, since different fields and textbooks favor one over the other. Degrees are the more intuitive, everyday unit — a full circle is 360°, a right angle is 90°. Radians measure angle based on arc length along a unit circle, where a full circle is 2π radians (about 6.283) and a right angle is π/2 radians (about 1.571).
Programming languages and scientific calculators almost always expect radians for trigonometric functions like cos() and sin(), so if you're writing code that uses this angle, the radian value is usually the one to use directly, while the degree value is more useful for reporting results to a general audience.
Where the Angle Between Vectors Is Used
Finding the angle between two vectors comes up constantly wherever direction, alignment, or orientation needs to be measured precisely:
- Physics, determining the angle of incidence or the angle between force and displacement when computing work
- Computer graphics, checking lighting angles between a surface normal and a light source direction
- Machine learning, computing cosine similarity between feature vectors, which is directly derived from this angle
- Robotics and navigation, comparing a robot's current heading to a target direction
- Engineering, analyzing the angle between structural members or applied forces
- Game development, determining field-of-view checks and whether one object faces another
Frequently Asked Questions
How do you find the angle between two vectors?
Use the formula θ = arccos( (A · B) / (|A| |B|) ). Calculate the dot product of the two vectors, divide it by the product of their magnitudes, and take the inverse cosine of the result.
What does an angle of 90° between vectors mean?
An angle of exactly 90° means the two vectors are perpendicular (orthogonal). This happens precisely when their dot product equals zero.
Can the angle between two vectors be negative?
No. The angle between two vectors is always reported between 0° and 180°, since it's the smaller of the two possible angles formed where the vectors meet at their tails.
What does a 0° or 180° angle mean?
A 0° angle means the two vectors point in exactly the same direction (they're parallel). A 180° angle means they point in exactly opposite directions (they're anti-parallel).
How do I convert the angle from degrees to radians?
Multiply the angle in degrees by π/180 (approximately 0.01745). This calculator shows both the degree and radian values automatically, so no manual conversion is needed.