Take the search "vegan pancake recipe". A page that says "this vegan pancake recipe" has the three words side by side. A page that says "our pancakes are vegan, and the full recipe is below" spreads them over several words. Keyword proximity is that distance, usually counted in the words between the terms.
The idea is that words close together are more likely to be about the same thing. "Red shoes with white laces" and "red laces with white shoes" contain the same words but describe different products; distance and order carry meaning.
Why search engines care about distance
Proximity comes from information retrieval, the field behind search engines. The standard textbook explains it this way: when all of a query's words appear close to each other, that's evidence the text is focused on what the searcher wants. One way to measure it is the smallest stretch of text that contains all the query words. In "the quality of mercy is not strained", the smallest window for the query "strained mercy" is four words. The smaller the window, the better the match. Introduction to Information Retrieval
The same textbook notes that a search engine can treat that distance as one more signal and let machine learning decide how much it counts.
Google doesn't publish whether or how it weighs word distance. What it does say is that having the searcher's words in a page's headings or body is a basic sign of relevance, and that its synonym systems can match a page even when it doesn't use the exact words. Someone searching "change laptop brightness" can still find a manual that says "adjust laptop brightness".
Searchers who need words together and in order can ask for it: putting a phrase in quotation marks, such as "tallest building", tells Google to look for that exact match.
Proximity, density and placement
These three ideas are often mixed up:
| Idea | The question it asks |
|---|---|
| Proximity | How close together are the words of the phrase? |
| Keyword density | How often does the phrase appear, relative to the page's length? |
| Placement | Where does the phrase appear: title, headings, opening, body? |
None of them is a number Google asks you to hit. They're ways of describing whether a page clearly talks about what the searcher typed.
What to do about keyword proximity
Mostly, write naturally. When people describe a thing, the words that belong together usually end up together.
A few habits help:
- Use the phrase as people say it where it fits naturally, especially in the page title and main heading. A heading like "Easy vegan pancake recipe" is clear to readers and to search engines.
- Keep related words in the same sentence when you're defining or naming something. "Our return policy for sale items" is clearer than spreading "return", "sale" and "policy" across a paragraph.
- Don't force awkward search phrasing into sentences. Write "cheap plumbers in London", not "plumber London cheap". Search engines handle normal grammar, and readers expect it.
- Don't count words between terms. No search engine documents a target distance, and contorting sentences to shorten it will hurt readability long before it helps anything else.
If you find yourself editing for proximity, you're likely drifting toward keyword stuffing. Ask instead whether the page answers the question behind the search, and whether a reader can tell what it's about from its title and first paragraph. That's what content relevance comes down to.