Angle Between Two Vectors Calculator

Find the angle between two 3D vectors.

Angle (°) 45
Angle (rad) 0.7854

Formula: θ = arccos((a · b) ÷ (|a| |b|))

Step-by-step with your numbers:
1. Values used:
2. a x = 1
3. a y = 0
4. a z = 0
5. b x = 1
6. b y = 1
7. b z = 0
8.
9. Angle = 45°
10. Angle = 0.7854rad
Did we solve your problem today?

Find the angle between two vectors using the dot product.

How the Math Works

The Angle Between Two Vectors Calculator uses the formula θ = arccos((a · b) ÷ (|a| |b|)) to determine the smallest angle between two 3D vectors. First, the dot product (a · b) is calculated by multiplying corresponding components of the vectors and summing the results. The magnitudes |a| and |b| are found using the square root of the sum of squared components for each vector. Dividing the dot product by the product of magnitudes yields the cosine of the angle, which arccosine then converts to the angle θ in radians or degrees. This formula ensures the angle is always between 0° and 180°, representing the most direct rotation between the vectors.

Practical Applications

This calculation is essential in engineering and physics for analyzing forces, motion, and structural loads. For instance, determining the work done by a force requires finding the angle between the force vector and displacement vector. In computer graphics, it helps calculate lighting effects by measuring angles between surface normals and light sources. Game developers use it to simulate realistic interactions, such as collision angles or character orientation. Additionally, in machine learning, cosine similarity (derived from this formula) compares document or feature vectors to measure their alignment, aiding in recommendation systems and natural language processing.

Day-to-Day Use

While vectors might seem abstract, this calculation appears in everyday tech. GPS devices use vector angles to determine directions between locations. In sports, coaches analyze the angle between a ball's trajectory and a player's movement to improve performance. Virtual reality applications rely on vector angles to track head and hand movements for immersive experiences. Even in photography, understanding the angle between light and objects helps capture better-lit images. Essentially, this math underpins technologies that shape how we interact with digital environments, navigate spaces, and optimize physical tasks.

Worked example

(1,0,0) and (1,1,0) → 45°.

FAQ

What angle means perpendicular?

90°, which happens exactly when the dot product is zero.