Keyword density measures how often a keyword appears in your text. Learn the formula, why it is not a ranking factor, and what to do instead.

Keyword density is a simple measure of how frequently a keyword appears in text, expressed as a percentage of the total word count. It dates back to early search engines that judged relevance largely by counting words, and it remains a familiar metric even though its importance has faded dramatically.
Understanding keyword density today is mostly about understanding what not to do. Chasing a target percentage can push writers toward unnatural, repetitive copy, while the engines themselves have moved on to meaning. Knowing where density fits helps you write for readers and for both classic search and modern AI search visibility.
Keyword density measures the share of your content made up by a particular word or phrase. It is a frequency metric: how often the term shows up compared with everything else on the page. The idea originated when primitive algorithms reasonably assumed that a page mentioning a term often was probably about that term.
That assumption no longer holds. As engines grew more sophisticated, raw frequency became a weak and easily gamed signal, so density shifted from a core ranking input to, at most, a rough sanity check on whether your keywords appear at all.
The calculation is straightforward: divide the number of times the keyword appears by the total word count, then multiply by 100. For example, a keyword that appears 20 times in an 800-word article has a density of 20 divided by 800 times 100, which is 2.5 percent.
You can work this out by hand, with online density checkers, or through content plugins that report it automatically. The math is trivial, which is part of the problem: a number this easy to optimize toward invites manipulation rather than good writing.
There is no official ideal. Various practitioners suggest ranges such as 0.5 to 3 percent or roughly one mention per 100 to 200 words, and 1 to 2 percent is a commonly cited comfort zone. But these are conventions, not rules, and they vary by topic, since a technical or scientific piece may naturally repeat a term more often.
Google has been clear that strict adherence is unnecessary. As John Mueller put it, the first one or two mentions of a word may help, but saying it seven or eight times does not necessarily help your rankings. Treat any percentage as a loose guideline, never a target.
Multiple Google representatives have dismissed density over the years, with guidance to write naturally rather than focus on frequency. The reason is technical: counting words ignores proximity, distribution, co-occurring terms, and thematic relevance, all of which information retrieval science treats as far more meaningful than a raw count.
Search has also changed how it reads language. Systems built on BERT algorithm style understanding interpret meaning in context, so an engine grasps what a page is about without needing the exact phrase repeated. That makes density largely irrelevant to how relevance is actually judged.
Pushing density high enough to look unnatural becomes keyword stuffing, the practice of cramming keywords to manipulate rankings. After Google's Penguin update, stuffing stopped working, and today it violates Google's spam policies and can trigger a manual action that removes a site from results entirely.
Beyond the penalty risk, stuffing simply reads badly. It produces robotic copy, crowds out useful related terms, and drives readers away, which hurts engagement signals. It is a textbook example of black hat SEO that costs more than it could ever return.
Write for people first and mention your keyword where it genuinely fits, including in the title, headings, and opening, then let the rest follow naturally. Cover the topic comprehensively so related terms and entities appear on their own, which signals relevance far better than repetition. This natural approach is what modern natural language processing rewards.
Think in topics, not single phrases. Building a topical map and addressing sub-topics across connected pages establishes authority and surfaces vocabulary organically. Matching the page to search intent matters more than any frequency target, and disciplined keyword research and content planning keeps you focused on the right concepts.
Keyword density is not dead so much as demoted. Mentioning a term a few times still confirms to crawlers and readers that a page is about that subject, and it remains a quick way to spot a page that forgot to include its target topic at all. The value is as a sanity check, not a lever.
For generative engines, the lesson is the same: models synthesize meaning, not word counts, so natural, semantically rich content is what gets understood and cited. Writing comprehensively with related entities supports both ranking and AI answers far more than hitting a percentage ever could, which is why density has quietly given way to relevance and entity salience.
Keyword density measures how often a keyword appears as a share of total words, but it is no longer a direct ranking factor, and chasing a target percentage risks unnatural copy or outright keyword stuffing. The modern approach is to write naturally, cover topics in depth, and let related terms emerge on their own.
To go further, connect this with semantic search and helpful content, and use Sorank's research and content planning tools to target topics and entities rather than frequency. Reference sources: Semrush, Hobo, and LowFruits.
There is no official ideal. Practitioners often cite ranges like 0.5 to 3 percent, with 1 to 2 percent as a common comfort zone, but these are conventions rather than rules and vary by topic. Google has said strict adherence is unnecessary. The better approach is to mention your keyword naturally where it fits and stop worrying about hitting a specific number.
Not as a direct factor. Google representatives have repeatedly said to write naturally instead of focusing on frequency, because modern systems understand meaning in context rather than counting words. Mentioning a term a few times confirms relevance, but repeating it many more times does not help. Keyword density is best treated as a loose sanity check, not a ranking lever.
Keyword density is simply the measured percentage of times a keyword appears in your text. Keyword stuffing is the abusive practice of cramming in keywords unnaturally to manipulate rankings. Stuffing violates Google's spam policies and can trigger a manual action that removes your site from results, so the goal is natural usage, not a high density.