Keyword density is the share of a page’s words taken up by one word or phrase. For years it was treated as a dial: set it to the right percentage and the page would rank. There was never good evidence that such a percentage existed, and Google has said repeatedly that it does not.

This guide covers how the figure is calculated, what one widely linked study from 2004 really reported, what Google has said, and what is worth doing instead.

How it is calculated

Count how many times the keyword appears. Divide by the total number of words on the page. Multiply by 100.

A phrase that appears 12 times on an 800-word page has a density of 1.5%.

The simplicity is misleading, because every tool has to make choices the formula does not settle:

  • What counts as the page. Body text only, or navigation, footers and image alt text as well?
  • Phrases. If a three-word phrase appears once, is that one occurrence out of the page’s words, or three words out of them?
  • Variants. Do “run”, “runs” and “running” count as the same keyword? (See our guide to stemming and semantics.)

Two tools can therefore give different figures for the same page and the same keyword. Any target percentage is tied to the tool that produced it.

What an early study actually said

Advice from the early 2000s often quoted a target range, usually a few per cent. Much of it gave no source. One study that was widely linked at the time can still be read, and it is more cautious than the advice that cited it.

In January 2004 a tools site, goRank.com, published a “Google Keyword Density Analysis”. According to the archived report, it took the top ten Google results for more than 2,000 single-word keywords with few monthly searches, measured keyword density in several parts of each page, and counted each page’s backlinks. It reported, among other things:

  • Overall density was low. Across all top-ten results the keyword made up 2.1% of the words on average. Pages ranked first averaged 2.5%, and pages ranked tenth 1.9%.
  • Most pages were below the average. The report says that more than 40% of results fell between 0.5% and 1.5%, and that very few had a density above 5%.
  • Titles were different. The keyword made up about 17% of the words in the title on average. Titles are a handful of words long, so one use of the keyword produces a large percentage.
  • Other elements mostly did not contain the keyword. For link text, alt text, the meta keywords tag and the meta description, most top-ten pages had a density under 0.5%.

Two things about this report are worth noticing.

First, its authors declined to draw conclusions. The report says their aim was to publish the data and let others interpret it. Its introduction does describe the goal as helping to discover “the right keyword density levels”, but the findings are averages, not a recommendation.

Second, the data cannot show what the advice built on it claimed. The study describes pages that already ranked. It does not compare them with pages that failed to rank, so it cannot show that any density caused a ranking. A density of about 2% may be nothing more than what ordinary writing about a subject looks like. The first-place and tenth-place averages differ by about half a percentage point, and the report gives no measure of whether that difference is meaningful.

What Google has said

Google’s public position has been consistent for at least fifteen years.

  • 2011. In a Google video, Matt Cutts, then head of the web spam team, said there was no ideal keyword density. As quoted by Search Engine Journal, he said the first one or two mentions of a word might help, that further mentions bring diminishing returns, and that continued repetition risks being treated as keyword stuffing. He added that he would love people to “stop obsessing about keyword density”.
  • Late 2021. Asked on Reddit whether keyword density was still an SEO factor, John Mueller of Google replied with one word: no (Search Engine Roundtable).
  • 2023. In a Google office-hours session, Mueller said that Google “does not have a notion of optimal keyword density”, and that its systems had become good at recognising what a page is about even when the keywords are not mentioned at all. He added that being explicit still matters: if a business paints houses, the page should say so (Search Engine Roundtable).

These are statements by Google staff about Google. They are not independent evidence, and Google does not publish how it scores pages. But they agree with each other across twelve years, and nothing in the 2004 data contradicts them.

Why a percentage was never a good model

Three reasons, none of which depends on taking Google’s word.

Counting words is only one way to score a page, and not a strong one. Even the classic text-retrieval measure, tf–idf, does not use a page’s keyword percentage on its own. It weighs how often a term appears in a document against how common that term is across the whole collection. A word that appears everywhere counts for little however often a page repeats it.

Search engines use much more than the page’s text. Links, the wording of links, and many other signals are involved. Two pages with the same density can rank a long way apart. Our article on the Florida update describes the point in 2003 when many site owners found that on-page adjustments had stopped being enough.

Search engines match meaning as well as strings. Mueller’s 2023 remark, that a page can be understood without containing the keyword, describes a system that a word count cannot capture.

When repetition does harm

Repetition is not neutral. Google’s spam policies list keyword stuffing: filling a page with keywords in an attempt to manipulate rankings. It is one of the practices usually called black hat SEO. The examples given include blocks of text listing cities and regions, and repeating the same words or phrases so often that the text sounds unnatural.

Google’s SEO Starter Guide makes the same point from the reader’s side: excessive repetition, even in variations, is tiring to read. The same guide says Google Search does not use the keywords meta tag, which was once another place people stuffed keywords.

What to do instead

  • Use the words your readers use. Find out how people describe the thing, and use those terms in the title, the main heading and the opening paragraph. This is Mueller’s “be explicit” advice.
  • Say it once, clearly, where it matters. One plain statement of what the page is about is worth more than ten awkward repetitions.
  • Write the page for the question. Cover what someone searching would want to know. Related terms will appear without being forced.
  • Read it aloud. Cutts’ suggestion from 2011 still works: if the text sounds stilted, the keyword is there too often.
  • Ignore density scores in tools. A figure flagged as “too low” or “too high” is that tool’s convention, not a measurement of anything a search engine has said it uses.

A density checker has one honest use: finding a page where a word has been repeated to the point of sounding wrong. For that, reading the page is quicker.