Cosine Similarity

Calculate Cosine Similarity instantly with the exact formula and a worked example.

Cosine Similarity

A₁
A₂
A₃
B₁
B₂
B₃
cosθ
0.974632
Calculate Cosine Similarity instantly with the exact formula and a worked example.
Angle between vectors
12.93°
Dot product A·B
32
|A|
3.7417
|B|
8.775

More about: Cosine Similarity

What it calculates

The “Cosine Similarity” calculator computes cosθ from 6 parameters: a₁, a₂, a₃, b₁, b₂, b₃.

Standard IT calculations for developers and sysadmins.

Example calculation

With parameters A₁ = 1, A₂ = 2, A₃ = 3, B₁ = 4, B₂ = 5, B₃ = 6 the result is 0.9746.

How to use

  1. Enter a₁, a₂, a₃, b₁, b₂ and b₃ — each field above is adjustable with a slider.
  2. cosθ is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. Copy the result or bookmark this calculator.

Related calculators

FAQ

How is Cosine Similarity calculated?
The Cosine Similarity calculator computes cosθ from a₁, a₂, a₃, b₁, b₂, b₃. Enter your values above and the exact formula is applied instantly; a worked example with real numbers is shown below.
Is the Cosine Similarity calculator free?
Yes. It is completely free, needs no signup, runs entirely in your browser, and sends no data to any server.

More calculators in this category

Explore related free tools

Loot TableGame Damage ReductionGame Currency ConversionPokemon IV CalculatorRoll d20 / Dice ProbabilityTabletop XP DistributionTime Complexity ComparisonSpace ComplexityRecursion DepthHash Table Load FactorSorting Algorithm ComplexityGraph Diameter