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.

On this page
Summary
Keyword density is the percentage of times a target word or phrase appears in a piece of content relative to its total word count, and while it was once treated as a ranking lever, modern search engines no longer use it as a direct factor, favoring natural language and topical relevance instead.
Want to go further? Ask
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 prominence is how early and how clearly a keyword appears on a page. A term in the title, the main heading, or the opening sentence tells readers and search engines what the page covers, even when it appears only once. Density counts how often a word shows up. Prominence asks where it shows up. For most pages, placement matters more than repetition.
Start with the places that carry the most weight. You control each one directly.
| Location | What to do |
|---|---|
| Title tag | Put the main keyword near the start. Google says the title link is often the primary piece of information people use to decide which result to click, so it must read well as a link. Google Search Central, title link documentation |
| Main heading | Use the keyword, or a close variant, in the main heading of the page. |
| Opening paragraph | Name the topic in the first sentence or two, in plain words. |
| Subheadings | Use the keyword in the H2s where it fits. Let the other subheadings name the sub-topics a reader would look for. |
| Image alt text | Describe the image. Use the keyword only if it truly describes what the image shows. |
Prominence is about placement, not frequency. Put the keyword where a reader expects it, then write the rest for the reader. If you need to repeat the phrase in every paragraph to make the page work, the problem is the copy, not the count. Repeated phrases read as filler and leave no room for the related terms that show a page covers its topic in depth.
Then compare the page with the top results for the same query. Note where they place the phrase and where they leave it out. You are looking for a clearer structure, not a copy of their wording.
Tip
Write the title and the opening paragraph after the body is finished. By then you know the main point, so the most important words are easier to place.
For more detail on the first screen, read what belongs above the fold. To choose the topics your pages should target, read blogging for SEO.
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 AI, 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 proximity is how close the words of a phrase, or two related terms, sit to each other in a text. Words in the same sentence usually express one idea, so keeping them together makes the meaning clear to readers and to search systems. Keep your multi-word keywords whole, and keep the terms that belong with them in the same sentence or paragraph.
Proximity is a different question from density. Density asks how often a term appears. Proximity asks how far apart the parts of a phrase are. Two pages can use a keyword the same number of times and still read very differently: one keeps “flat feet” next to “running shoes”, the other spreads the two words across separate sections.
| Pattern | What it looks like | What to do |
|---|---|---|
| Phrase kept whole | “Best running shoes for flat feet” in one sentence | Keep it. This is the goal. |
| Phrase split across sentences | “Shoes are a big decision. Your feet matter too. Flat feet need support.” | Rewrite so the words share a sentence, in plain language. |
| Terms listed in a row | “running shoes, flat feet, arch support, runners, cushioning” | Turn the list into sentences that explain how the terms relate. |
| Terms in separate sections | The keyword in the introduction, the related term hundreds of words later | Move the related term into the section that discusses it. |
Tip
Read a paragraph out loud. If you stumble over a phrase because its words are split up, rewrite the sentence, even when the keyword count looks fine.
Proximity works best as a side effect of clear writing. You do not need to measure it word by word. Once each idea sits in a complete sentence, the words that belong together will usually sit together. For the vocabulary to place around your main phrase, read related keywords. For how language systems read the words around a term, read NLP SEO.
A keyword density checker counts how often a word or phrase appears in a text and divides it by the total word count. Use it as a quick sanity check, not as a target to hit:
Then check the rest of the page with the free Sorank Chrome extension, which also reviews headings, metadata and readability.
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.
Keyword integration means working your target phrase into sentences where it fits the meaning, and using its variants when the exact phrase would read awkwardly. A sentence that carries the phrase should still say something a reader needs. If you have to bend a sentence to fit the term, leave the term out and let a related word do the job.
Plurals, reordered words and short synonyms let you name the topic without repeating one exact string. For a target of “keyword density”, these forms all read naturally:
| Form | Example sentence | Use it when |
|---|---|---|
| Exact phrase | Keyword density is the share of words that match your target. | You define the term. |
| Plural | Keyword densities vary from one topic to the next. | You compare several topics. |
| Reordered | The density of a keyword matters less than where it sits. | The exact phrase reads stiff. |
| Related term | Term frequency measures how often a word appears. | You explain the concept rather than repeat the query. |
Keep one name for one concept inside a section. If a paragraph calls the same idea a density, a ratio and a frequency, readers may think you mean three different things. Save the variety for the next section. For how many variants to use on one page, see how many keywords per page.
When you can, let the phrase be the subject: “Keyword density measures the share of a text…” reads more directly than “…a measure called keyword density.” Avoid stacking the term into long noun chains such as “keyword density checker tool ideas”. Those read like a list of tags, not a sentence.
The URL slug is the first. Google’s URL guidance recommends “readable words rather than long ID numbers” (Google Search Central, URL structure), so a path such as /glossary-geo-seo/keyword-density tells readers and crawlers what the page covers. Keep it short, lowercase and hyphenated.
Internal link anchors are the second. Name the destination in the link text: “Read about related keywords before you plan your sections” gives the reader and the crawler a clear target. “Click here” gives neither. For a full review of your anchors, see anchor text optimization.
Tip
Read the draft aloud. If you stumble over the phrase, or it shows up in several sentences in a row, rewrite some of them with a pronoun, a variant or a related term.
Sources
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.
