Keyword Density
Keyword density is the percentage of a document's total word count made up by a specific keyword, calculated as (number of keyword occurrences ÷ total word count) × 100. If a keyword appears 10 times in a 1,000-word article, the density is 1%, and Google does not treat this as a direct ranking factor.
- Keyword density is the percentage (%) you get from (number of keyword occurrences ÷ total word count) × 100.
- Google's John Mueller has stated plainly that keyword density is not a ranking factor.
- The idea of an "optimal density of X%" is a baseless myth—Google says no concept of an ideal keyword density even exists.
- Forcing density upward turns into keyword stuffing, which violates Google's spam policies and can push rankings down.
- The right mindset is to cover a topic thoroughly and write naturally rather than chasing a percentage.
Definition
Keyword density is a metric that expresses, as a percentage, how often a specific keyword appears relative to the total number of words in a document. It quantitatively shows how frequently a target keyword is used in the body copy.
Formula
The calculation is simple: divide the number of times the keyword appears by the total word count, then multiply by 100.
Keyword Density (%) = (Keyword Occurrences ÷ Total Word Count) × 100| Total Word Count | Keyword Occurrences | Keyword Density |
|---|---|---|
| 1,000 | 10 | 1% |
| 1,000 | 20 | 2% |
| 500 | 15 | 3% |
For example, if a target keyword appears 10 times in a 1,000-word article, the density is 1%. Ahrefs presents the same formula and example.
SEO Misconceptions
The most common misconception is the belief that there is some separate, ideal keyword density percentage. Google, however, holds no concept of an optimal density at all. Google's John Mueller has said, "There's no concept of optimal keyword density at Google… keyword density doesn't matter, but mentioning it explicitly does." He has also described keyword density as "generally something I wouldn't worry about."
Trying to artificially inflate the density number leads to keyword stuffing. Keyword stuffing—packing a page with keywords or numbers to manipulate rankings—is a violation prohibited by Google's web search spam policies. Google treats it not as a ranking factor but as a spam signal, and violations can cause rankings to drop or pages to be removed from search results.
The Right Perspective
Density is merely a supporting metric for measuring an outcome, not a goal in itself. Rather than straining to hit a particular percentage, the key is to cover the topic comprehensively and write naturally. When you write naturally, keywords blend into the body copy without any special effort. Matt Cutts likewise once said, "I wish people wouldn't fixate on keyword density… there's no hard-and-fast rule."
Checking density is best used only as a light way to confirm that a keyword hasn't been left out entirely—or repeated to an unnatural degree. Placing keywords naturally in key positions such as the title tag, H1, URL, and meta description is far more meaningful than the density number.
Action Checklist
- Stop setting a target density percentage and trying to hit it.
- Cover the topic broadly instead of repeating the same keyword unnaturally.
- Audit for stuffing patterns such as lists of cities and regions or meaningless keyword clusters.
- Place the keyword once, without awkwardness, in key positions like the title, H1, and URL.
- Use density checkers only as a supporting tool for a light check on omission or overuse.