SEOsite.day
Search & AI VisibilityThe Science of Being Found
Home › SEO › Is Keyword Density Still Relevant?
Analysis

Is Keyword Density Still Relevant?

Keyword density is an attractive number with a misleading promise. Here is why the ranking target fails, what retrieval models actually show, and how term counts can improve an editorial audit.

There is a peculiar moment in the life of an SEO article. The writer has explained the subject, checked the facts and answered the reader's questions. Then a content optimization tool turns a small indicator red. The target keyword has appeared only eight times. The recommendation is to use it another six times. Suddenly, an apparently finished article has become a numerical problem.

Should the writer obey? The answer depends on what the missing mentions would actually contribute. If the article never clearly identifies its subject, another occurrence may help. If the text already explains everything that the reader came to learn, six extra mentions may do little more than make the prose worse.

Keyword density has survived several generations of search technology because it is easy to calculate, easy to explain to a client and easy to turn into a deliverable. That does not make it a reliable objective for optimization. Yet dismissing all term-frequency analysis as obsolete would be equally unhelpful. There is a meaningful distinction between measuring the language of a document and trying to engineer its ranking through a percentage.

The seductive simplicity of a percentage

For a single word, keyword density is commonly defined as the number of its occurrences divided by the total word count, multiplied by 100. A 500-word article containing ten occurrences of a term has a density of 2%. A 2,000-word article containing the same ten occurrences has a density of 0.5%.

Imagine that the first document is a short introduction to canonical URLs and the second is an extensive guide to resolving canonical conflicts on ecommerce websites. The second contains explanations of redirects, duplicate product variants, pagination and internal linking. Its lower density could reflect a much broader and more useful treatment of the subject. Alternatively, it could be full of irrelevant digressions. The statistic alone cannot distinguish the two possibilities.

Ten occurrences: 2% in 500 words, 0.5% in 2,000 words.
SEOsite illustration: identical occurrence counts, different document lengths.
View underlying data
Keyword density calculation
DocumentWordsOccurrencesDensity
Short500102%
Long2,000100.5%

Illustrative calculations: occurrences ÷ word count × 100.

The denominator also creates some surprising incentives. An editor could raise the percentage by deleting useful explanations without adding a single mention of the target term. Another could lower it by inserting irrelevant paragraphs. Neither operation necessarily improves the answer. A measurement that can be improved by making the product worse is a dangerous performance target.

That problem is familiar outside SEO. A customer support department judged exclusively on the number of calls handled may rush difficult cases; a newsroom judged exclusively on page views may favor sensational headlines. In each case, the measurement is real, but the behavior it encourages can undermine the outcome it was meant to represent.

Even the counting is not as simple as it looks

Before comparing two density scores, it is worth asking whether the tools are measuring the same thing. A phrase is not a word. A plural is not necessarily counted as the singular. Different approaches to punctuation, compound words, accented characters and HTML extraction can alter the results.

Suppose a text of 200 words contains four exact occurrences of the phrase technical SEO. An occurrence-based calculation reports 2%. A calculation based on the number of words occupied by those four phrases reports 4%. Both calculations are arithmetically correct under their respective definitions. They answer different questions.

Three ways to count the same hypothetical passage
Counting conventionNumeratorDenominatorResult
Exact two-word phrase occurrences4200 words2%
Words occupied by those phrases8200 words4%
Single word SEO (including two other occurrences)6200 words3%

Our Keyword Density Checker uses the occurrence-based convention. It counts Unicode letter and number tokens (including internal apostrophes) and matches case-folded token sequences. Spaces and hyphens can separate matching tokens, but other intervening punctuation and blank-line paragraph breaks interrupt a phrase. Multiword keywords count as occurrences, not as the number of constituent words; overlapping matches are included. It does not automatically combine synonyms or grammatical forms. This makes the calculation reproducible, but it does not make it a semantic analysis.

Copy the main article text into the checker rather than an entire HTML document. Navigation, cookie notices, related articles and repeated footer links can distort a comparison. If the purpose is to examine sitewide boilerplate, include that material deliberately and record a separate measurement. The extraction boundary should follow the question being investigated.

What search technology actually tells us

There is a legitimate historical reason for the interest in word frequency. Information retrieval systems have long used the relationship between the terms in a query and the terms in a document to estimate relevance. A document containing the word warehouse may be a more plausible match for a warehouse-related query than a document that never mentions anything connected with warehousing.

But sophisticated lexical retrieval is not equivalent to rewarding a predetermined density. A classic illustration is Okapi BM25, described in Manning, Raghavan and Schütze's Introduction to Information Retrieval. Its scoring combines the frequency of a query term in a document, the distribution of the term across a collection, and a length-normalization component. The term-frequency contribution saturates: the tenth repetition has less incremental value than the first, all else being equal.

For an illustration, hold the document length equal to the collection's average and set the BM25 parameter k1 to 1.2. Ignoring the separate inverse-document-frequency weight, the term-frequency factor becomes 2.2f/(f + 1.2), where f is the occurrence count. It rises from zero towards 2.2 rather than growing indefinitely in proportion to the repetitions.

BM25 term-frequency factor increases from 0 to approximately 2.08 at 20 occurrences.
SEOsite calculation using the BM25 term-frequency component; average document length and k₁ = 1.2. IDF omitted.
View underlying data
Illustrative BM25 term-frequency factor
OccurrencesFactor
00.000
11.000
21.375
31.571
41.692
51.774
61.833
71.878
81.913
91.941
101.964
111.984
122.000
132.014
142.026
152.037
162.047
172.055
182.062
192.069
202.075

Formula: 2.2f/(f + 1.2). Values rounded to three decimals; not Google ranking data.

This is a mathematical example of one established retrieval model, not a reconstruction of Google's ranking algorithm. Its significance is the contrast: even in a lexical model, the relationship between frequency and relevance need not be linear, and the surrounding collection matters. A common term that occurs in almost every document is generally less useful for distinguishing those documents than a more discriminating term. There is no reason to expect one universal percentage to capture such relationships.

Modern search systems add other capabilities. Google's description of its ranking systems includes BERT, neural matching and RankBrain, which help relate words, context, concepts and intent. The existence of these systems does not mean literal vocabulary is irrelevant. It means that matching a query is more complicated than counting identical strings.

There is also unusually direct guidance on this particular SEO debate. In its January 2023 SEO office hours, Google distinguished the importance of making a page's subject explicit from the supposed importance of keyword density. Its spam policies identify manipulative keyword repetition as keyword stuffing, while the SEO Starter Guide discourages excessive repetition. None of these documents establishes a recommended density target.

The mistake of confusing relevance with repetition

Consider a business selling warehouse management software. A landing page might repeat its main phrase frequently while saying little about the actual product. It could tell visitors that its warehouse management software is powerful, innovative and suitable for modern warehouses. A competing page might use the exact phrase less often but explain barcode scanning, inventory reconciliation, picking workflows, integrations with ERP systems and the conditions under which implementation takes place.

The second page gives a purchasing team something to evaluate. The first may be clear about the category but vague about the offer. If the query implies commercial investigation, the difference is not merely stylistic; the buyer needs evidence that the product solves a specific operational problem.

What a commercial searcher might need to know
Search intentUseful page contentWhat repetition cannot supply
Evaluate functionalityPicking, stock counts, inventory accuracy, supported devicesEvidence that features exist
Compare systemsIntegration requirements, deployment models, supported workflowsMeaningful differences between alternatives
Estimate investmentPricing approach, implementation scope, ongoing costsCommercial information
Assess riskSecurity, support, migration plan, documented limitationsCredibility and operational assurance

This also explains why merely adding a list of related terms is not a substitute for research. Mentioning ERP, RFID and cycle counting might increase the apparent topical breadth of a page, but the words are not the same as knowledge. A genuinely useful explanation describes how those things relate to the user's decision. A software vendor should not claim an integration simply because a content tool recommends the name of a platform.

The opposite mistake is equally common: removing precise terminology to satisfy a low repetition score. A technical document about the HTTP 301 status code has good reason to use the identifier repeatedly. Replacing it with vague synonyms can make the difference between permanent and temporary redirects harder to understand. In medicine, law, engineering and software documentation, lexical consistency is often a feature of good writing, not a defect.

Where keyword density still earns its place

There is a practical use for the humble word count: it can draw attention to a problem that a human should investigate. In that role, it is inexpensive and useful. The key is to treat the result as a question rather than an instruction.

Take a retailer with hundreds of product descriptions generated from a common template. A frequency check can expose a competing model name accidentally left in a description. A multilingual publisher can search for words that should have been translated. A marketing editor can identify a brand name that appears in almost every paragraph even though most mentions contribute nothing. A technical writer can check whether an essential identifier appears at all.

Another useful application is content migration. When a site changes its CMS, the apparent vocabulary of a page may shift because the extraction now includes a different menu, related-content widget or hidden element. Comparing the primary text before and after migration can help separate an editorial change from a template problem. See our explanation of what search engines really see for the distinction between the initial document and its rendered representation.

Turning frequency observations into editorial decisions
ObservationPossible explanationNext action
Expected product term is absentAmbiguous copy, missing definition or extraction issueCheck the title, introduction and actual page text
Brand occurs unusually oftenTemplate repetition or repetitive sales copyRead each occurrence and inspect boilerplate separately
Technical term has high densityPrecision may require repetitionRetain necessary identifiers; remove only redundant passages
Competitors have higher densityDifferent length, scope, template or intentCompare answered questions, not just percentages
Density changed after migrationText extraction or rendering changedCompare equivalent content boundaries

None of these observations needs a traffic-light threshold such as 1–2%. A specialist can establish an internal anomaly flag for a particular set of comparable pages, provided it is described as a quality-control rule rather than a search engine requirement. A flag prompts review; it does not authorize an automatic rewrite.

What about AI search?

The shift towards generative search has revived older optimization habits under new names. If an answer engine retrieves passages rather than presenting a conventional list of links, it seems tempting to repeat the desired phrase throughout the article so that every passage contains it. There is a reasonable concern underneath that idea: a passage detached from its surrounding page may become ambiguous.

But repetition is a poor substitute for self-contained meaning. A section explaining when a canonical URL is ignored should clearly identify the relevant directive and the conditions being discussed. It should not have to repeat the phrase in every sentence. A passage that gives the actual explanation is more useful than one that keeps announcing its subject.

Google's guide to optimizing for generative AI features connects those features to its underlying search and quality systems. That guidance should not be extrapolated into a single formula for every chatbot or retrieval system. Platforms differ in their indexing, retrieval, answer generation and source selection. Nor does the ability of a model to recognize a term establish that it will cite the page containing it.

For publishers, the practical question is whether a particular section provides an accurate answer with enough context to be interpreted correctly. Definitions, examples, explicit relationships and traceable evidence are valuable editorial ingredients. Our analysis of GEO versus SEO considers these questions in more depth.

A more useful on-page audit

Instead of beginning an optimization project with a density target, start by establishing the purpose of the document. Is it a product page, a reference definition, an investigative article or an implementation guide? The same query may admit several useful formats, but the writer needs to know which task the page is meant to accomplish.

Four stages: define intent, review coverage, check vocabulary, measure outcomes.
SEOsite editorial review framework.

Next, review the language that a prospective reader actually uses. Search Console can reveal queries associated with an existing page; interviews, customer support conversations and internal site-search logs can reveal terminology that a company has overlooked. These sources do not automatically establish search volume or demand. They help identify questions and distinctions that the document might need to address.

Write an outline around those questions. Check whether the title and opening clearly state the subject, whether the headings describe their sections, and whether important terms are defined when necessary. Inspect the main content for missing explanations, duplicated passages and misleading statements. Use a frequency report at this stage to investigate unusual vocabulary, rather than to determine how many words should be inserted. The On-Page SEO Checker can support the separate inspection of page metadata and structure.

For an existing page, a revision should have a testable objective: for example, clarify the distinction between two product tiers, answer a recurring implementation question or replace vague terminology with the words customers actually use. Record the date, the affected URL and what was changed. Then examine the relevant search queries and business outcomes over comparable periods.

Google's explanation of Search Console performance data is a useful reminder that query tables are not exhaustive; some queries are anonymized. Changes in impressions and clicks can also reflect demand, competition, search-result layout or indexing changes. A simple before-and-after comparison cannot isolate keyword frequency as a causal factor. If enough comparable pages exist, a controlled rollout with a comparison group can provide better evidence, though the assumptions and limitations still matter.

For a commercial page, monitor qualified inquiries or purchases alongside search performance. For a publisher, consider readership, subscriptions and the value of traffic. A rise in the density score is not a substitute for any of these outcomes. The same measurement discipline applies to AI visibility, as discussed in Measuring Visibility Beyond Google.

Keep the instrument. Retire the target.

Keyword density is not useless. It is simply a descriptive measure whose interpretation depends on the document, the counting convention and the editorial problem. Its appeal is its simplicity; its weakness is that the simplicity can be mistaken for a theory of relevance.

SEO professionals should still care about the words that appear on a page. A business must name what it offers. A reference work must use accurate terminology. A guide must help the intended reader recognize the problem and understand the solution. Those are reasons to pay attention to vocabulary, not reasons to impose an arbitrary ratio.

The next time a content tool asks for six more repetitions of a keyword, ask which six sentences the reader would benefit from. If there is a persuasive answer, improve the article. If there is not, the indicator can remain red.