Cosine Similarity Calculator
Measure the cosine of the angle between two 3D vectors.
Cosine similarity rates how aligned two vectors are, widely used in search and machine learning.
The math behind it
Divide the dot product by the product of the magnitudes. The result ranges from −1 (opposite) through 0 (perpendicular) to 1 (identical direction).
Worked example
(1,2,3) and (4,5,6) → cosine similarity ≈ 0.974 (about 13°).
FAQ
Does magnitude matter?
No — cosine similarity ignores length and measures direction only.