Keyword Density

Keyword density is the percentage of times a keyword appears on a page compared with the total number of words. It was once a popular SEO target, but there is no ideal percentage, and modern search engines judge relevance in far more sophisticated ways than counting repeated phrases.

How keyword density is calculated

The formula is simple: divide the number of times the keyword appears by the total word count, then multiply by 100.

(keyword occurrences / total words) x 100 = keyword density %

For example, a phrase used 8 times in an 800-word article has a density of 1%. Some tools count multi-word phrases differently, so the same page can show different figures in different tools. Some include navigation, footers and sidebars in the word count, while others only measure the main content, which makes any “target” figure even less meaningful.

Why it used to matter

Early search engines relied heavily on matching words on the page to the words in a query. Repeating a keyword more often could genuinely help a page rank, so SEOs chased target densities of 2%, 3% or more. This led to awkward, repetitive copy and outright keyword stuffing, which Google now treats as spam.

What Google has said

Google representatives have said many times that keyword density is not something site owners should focus on, and that there is no magic number. Keyword stuffing is listed in Google’s spam policies, so excessive repetition can hurt rather than help.

Systems such as BERT help Google understand the meaning of words in context, synonyms and related concepts. A page can rank for a phrase it barely repeats if it clearly covers the topic. In practice, the pages that rank well for competitive terms often have quite different densities from one another, which suggests the number itself is not what drives their success.

What to focus on instead

  • Placement: use the main keyword in the title, H1 and opening lines. See keyword placement.
  • Topic coverage: answer the questions a searcher is likely to have and cover the subtopics they expect.
  • Related terms: natural use of synonyms, entities and connected concepts, the basis of semantic SEO.
  • Readability: copy that sounds natural when read aloud.
  • Intent: matching the type of page searchers want, whether a guide, product or comparison.

When density is still useful

Density can work as a rough sense check rather than a target:

  • A very high figure on a page can flag repetitive or stuffed copy that needs editing.
  • A figure of zero might mean the page never actually names the topic it targets.
  • Comparing term usage with top-ranking pages can reveal missing subtopics, though this should guide coverage, not word counts.

Common myths

  • “The ideal density is 1-2%.” There is no confirmed ideal figure.
  • “More mentions mean higher rankings.” Beyond natural use, repetition adds nothing and can harm quality.
  • “SEO plugins‘ density scores are ranking signals.” They are rough writing aids, not measures Google uses.

Key Takeaways

  • Keyword density is keyword mentions divided by total words.
  • There is no ideal keyword density percentage.
  • Google has said density is not something to focus on.
  • Excessive repetition counts as keyword stuffing.
  • Focus on placement, topic coverage and natural language instead.

Related Terms

Want to know where your site stands? Book a free SEO health check, or keep learning in the SEO Encyclopedia.