Math
Cosine Similarity Calculator
Measure the cosine of the angle between two 3D vectors.
Did this calculator solve your problem today?
✓ Thank you for your feedback!
Report issue to loopingon.com
Sponsored
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°).
Frequently Asked Questions
Does magnitude matter?
No — cosine similarity ignores length and measures direction only.
Advertisement