Keyword density is the percentage of times a target keyword appears in a piece of content relative to its total word count. If a keyword shows up six times in a 400-word article, its density is 1.5%. It signals topical focus but is no longer a direct ranking factor.
The formula is simple: divide the number of times the keyword appears by the total number of words, then multiply by 100. A blog post of 800 words that uses "cold brew coffee" ten times has a density of (10 ÷ 800) × 100 = 1.25%. For exact-match multi-word phrases, some tools divide by the number of phrase slots instead of single words, which nudges the figure slightly one way or the other.
For years, SEOs chased a magic number, often cited as 1–3%. Modern search engines analyze meaning, synonyms, and context, so writing to hit a quota is a waste of effort at best and a warning sign at worst. Google's systems can tell when a phrase has been forced in repeatedly. Aim for natural coverage: use the keyword where it genuinely fits, then let related terms and questions carry the rest of the topic.
A practical test: read a paragraph aloud. If the keyword appears so often that it sounds robotic, you have drifted toward keyword stuffing, and density has stopped helping you.
Balancing keyword usage against readable, well-structured copy is core to on-page SEO.