- What it measuresThe angle between two vectors, not their length.
- Typical rangeOften -1 to 1, with higher meaning more similar.
- Used forMatching queries to passages, finding duplicates, clustering.
- NeedsEmbeddings made by the same model.
- Common mistakeTreating a score as a universal pass mark.
What is cosine similarity?
Cosine similarity compares two lists of numbers, called vectors, by the angle between them. If they point the same way, the score is high. If they point in unrelated directions, it is near zero. Length does not matter, only direction.
In search and content work, the vectors are usually embeddings, which represent the meaning of a query, a page or a passage. The score then acts as a similarity measure between two pieces of text.
How is it used in SEO and AI search work?
Retrieval systems often embed a question and a set of passages, then pick the passages with the closest scores. SEO teams use the same idea for their own tasks: grouping keywords by meaning, spotting pages that overlap, and checking whether a page is close to the topic of a query.
These are working tools, not a view into Google. Search engines do not publish how they score pages, and a score from your own tool says nothing certain about rankings.
| Task | How the score helps | Caution |
|---|---|---|
| Keyword clustering | Groups queries with close meaning | Check clusters by eye |
| Cannibalization checks | Flags pages that cover the same topic | Close score is a hint, not proof |
| Internal link suggestions | Finds related pages to link | Review for real usefulness |
| Passage matching | Finds the best passage for a question | Depends on the embedding model |
How do you use and read the scores?
Scores only compare vectors from the same embedding model. A 0.80 from one model is not the same as 0.80 from another. Set your own thresholds by looking at examples you know are close and examples that are not.
- Pick one embedding modelUse the same model for everything you compare.
- Embed your textsCreate vectors for queries, titles or page sections.
- Score known pairsTest pairs you already judge as related or unrelated.
- Set a working thresholdChoose a cutoff from those examples, then review the borderline cases by hand.
What are common mistakes with cosine similarity?
The biggest mistake is chasing a score. Rewriting a page to push its similarity to a query higher does not guarantee better rankings or citations. Another is comparing scores across different models or across very different text lengths.
A high score can also hide a mismatch in intent. Two texts can be about the same subject while one is a guide and the other is a sales page. Always read the pages.
Need help with Cosine similarity on your site?
Tell us what is not working. We will check where this affects your search results and what to fix first.
Book a meetingAEO servicesQuestions people ask
Is cosine similarity a Google ranking factor?
Google has not published it as a ranking factor, and you cannot read Google's scores. It is a general method used in many systems. Use it as a working tool in your own analysis, not as a target.
What is a good cosine similarity score?
There is no universal answer. Scores depend on the embedding model and the text. Test pairs you know are related and unrelated, then choose a threshold that separates them for your own data.
Why use cosine similarity instead of keyword overlap?
Embedding-based scores can match texts with similar meaning but different words. Keyword overlap misses that. Overlap is still useful for exact terms, which is why many systems combine both.