Statistics

Cosine Similarity Calculator

Compare the direction of two numeric vectors of equal length.

Data stays on this deviceConvention explained below
Data explorer
Data explorer

Check the dataset and sample convention before interpreting results.

See the method

Add your observations

Runs on your device

Your statistical summary

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter vector a, vector b.
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

The method, explained

Similarity = dot(A,B)/(|A||B|), with norms computed from squared components.

A WORKED EXAMPLE

Using vector a = 1, 0, 1, vector b = 0, 1, 1, the result is 0.5. Change these example inputs to match your task; use the method above to check each step.

What to keep in mind

Results range from −1 to 1. Numeric alignment and feature scaling determine meaning; this does not generate semantic text embeddings. A descriptive or probability calculation under the stated assumptions. Check the sample design and model before interpreting results.

Common questions

Which inputs does this calculation need?

Compare the direction of two numeric vectors of equal length. Enter vector a, vector b. The filled example is editable and is not a saved personal record.

How should I interpret the result?

Results range from −1 to 1. Numeric alignment and feature scaling determine meaning; this does not generate semantic text embeddings. A descriptive or probability calculation under the stated assumptions. Check the sample design and model before interpreting results.

Methodology maintained by ClarityKit. How these tools are built and checked.