Keyword density is the percentage of times a target keyword appears in a piece of content relative to the total word count. Calculated as (keyword occurrences ÷ total words) × 100, it was once a primary on-page ranking signal. Today it serves mainly as a sanity check — Google's semantic algorithms care about topical relevance and intent far more than raw repetition counts.
In the early 2000s, SEO forums debated the "perfect" keyword density like alchemists chasing gold. That era is over. Keyword density today is a floor-and-ceiling metric — your keyword must appear, but not obsessively. Understanding where the lines are keeps you out of penalty territory.
What is keyword density?
Keyword density measures how frequently your target keyword appears in a piece of content as a share of all words. The formula is straightforward:
Keyword Density = (Keyword Count / Total Word Count) x 100
# Example: keyword appears 15 times in a 1,000-word article
Density = (15 / 1000) x 100 = 1.5%
In practice, most SEO tools calculate density for the exact keyword phrase. A 2,000-word article with the phrase "content marketing" appearing 18 times has a density of 0.9% — reasonable and unlikely to raise flags.
Google has never published an official target keyword density percentage. Former head of web spam Matt Cutts confirmed in 2014 that density "doesn't really matter" beyond basic relevance. Google's BERT and MUM models understand synonym usage and topical context, not just exact phrase counts.
Why keyword density still matters in 2026
Density matters at both extremes. Here's why practitioners still track it:
- Presence check. If your target keyword never appears, Google has no lexical signal linking the page to the query. Density of 0% is a real problem.
- Stuffing detection. Densities above 3–4% often read as unnatural and can trigger Google's spam classifiers. Pages with 8%+ density for head keywords regularly underperform compared to lower-density equivalents.
- Semantic anchoring. Including the primary keyword (and its natural variants) in the first 100 words, the H1, and key subheadings sends clear topical signals even without obsessive repetition.
- Competitive benchmarking. Scraping the top-5 pages for a target keyword and averaging their densities gives you a data-backed baseline rather than guesswork.
How keyword density works — and where it fits in modern SEO
Modern ranking algorithms evaluate content through multiple lenses simultaneously. Keyword density is one input among dozens. Google's ranking systems care more about:
- Search intent match — Does the page format (list, guide, product page, video) match what searchers expect?
- Topical coverage — Do you cover the entity and its related subtopics comprehensively?
- TF-IDF signals — How does term frequency on your page compare to what's typical across the web for this topic?
- Engagement signals — Do users stay, interact, and convert, or bounce immediately?
Keyword density sits under the "topical coverage" umbrella. It's necessary but not sufficient — a page that mentions the keyword 20 times but fails to cover the topic in depth will lose to a page with 8 keyword mentions and comprehensive, structured content.
Keyword density vs TF-IDF vs semantic density
| Metric | What it measures | SEO weight | Best used for |
|---|---|---|---|
| Keyword Density | Raw % of keyword in text | Low (guardrail only) | Stuffing check, basic presence audit |
| TF-IDF | Frequency vs. corpus norm | Medium | Identifying under/over-used terms vs. competitors |
| Semantic Density | Coverage of related entities | High | Topical authority building, content gap analysis |
| LSI Keywords | Latent semantic terms | Medium | Natural language enrichment, avoiding thin content |
Real keyword density examples
Here's how density plays out across different content types:
1. Blog post (1,500 words) — informational intent
Keyword appearances: 12
Total words: 1,500
Density: 0.8% — well within safe range
Semantic variants used: content strategy, marketing content, content plan
2. Product page (600 words) — transactional intent
Keyword appearances: 10
Total words: 600
Density: 1.67% — acceptable for short commercial page
Semantic variants: men's running shoes, running footwear, athletic shoes
3. Over-optimised page (flag zone)
Keyword appearances: 45
Total words: 800
Density: 5.6% — likely to trigger spam classifier
Keyword density vs keyword stuffing — where the line is
Density and stuffing sit on the same spectrum. The difference is intent and naturalness.
Natural keyword use (density 0.5–2%)
- Keyword appears in title, H1, intro paragraph
- Variants and synonyms used throughout body
- Each mention serves the reader's understanding
- Reads naturally aloud without awkward repetition
- Semantic terms fill in entity coverage
Keyword stuffing (density 3%+)
- Exact phrase repeated in every paragraph
- Meta description crammed with identical phrase
- Alt text lists keyword with no description
- Hidden text in same-colour-as-background divs
- Footer lists city + service keyword combinations
6 best practices for keyword density in 2026
- Lead with the keyword naturally. Include the target phrase in the first 100 words without forcing it. First-paragraph presence correlates with featured snippet wins.
- Use variants, not repetition. Google maps "running shoe" to "sneakers," "athletic footwear," and "trainers." One exact match + 4 semantic variants beats 5 exact matches every time.
- Benchmark against top competitors. Pull density from the top 5 ranking pages using a tool like Surfer or scrape manually. Hit the average, don't exceed the maximum.
- Don't pad word count to dilute density. Adding filler sentences to lower density creates thin content — worse than slightly elevated density.
- Check all on-page elements. Density calculations typically count body text only. Separately audit title tag, meta description, H1-H3, and image alt text for natural keyword presence.
- Prioritise intent over frequency. A page that perfectly answers the query at 0.6% density will outrank a page with 2% density that buries the answer in fluff.
No published study has identified a universally optimal keyword density that holds across all niches, content types, and query categories. Practitioners who optimise toward a specific percentage (e.g., "always hit 1.5%") consistently underperform those who optimise for comprehensiveness and intent alignment. Use density as a sanity check, not a target.
Common keyword density mistakes to avoid
- Stuffing meta tags — repeating the keyword 4+ times in a 160-character meta description. Google ignores it and users distrust it.
- Ignoring semantic coverage — hitting 2% exact density but missing key related terms. Google's entity model expects topic clusters, not isolated keyword counts.
- Calculating density across page elements — navigation, footer, and sidebar text skew the count. Calculate on body text only for a meaningful signal.
- Using density as a proxy for quality — a 1.5% density score tells you nothing about whether the content actually answers the query.
- Forgetting long-tail variants — a page targeting "email marketing" should naturally include "email campaigns," "newsletter strategy," and "email automation." Absence of these signals shallow coverage.
Frequently asked questions
There is no single ideal percentage. Most SEO practitioners aim for 1–2% to avoid over-optimisation, but Google has never confirmed a target number. Focus on natural language, semantic variation, and matching search intent rather than hitting a specific density figure.
It matters at the extremes: zero occurrences of your target keyword is problematic, and unnaturally high repetition triggers spam filters. In between, Google's algorithms rely on semantic understanding (BERT, MUM) and topical authority far more than raw keyword frequency.
Divide the number of times your keyword appears by the total word count of the page, then multiply by 100. Example: a 1,000-word article with the keyword appearing 12 times has a 1.2% keyword density.
Excessive keyword repetition is classified as keyword stuffing by Google. It reads as unnatural, degrades user experience, and can trigger a manual or algorithmic penalty that drops rankings. Google's spam policies explicitly prohibit stuffing keywords into content or meta tags.
No. TF-IDF (Term Frequency-Inverse Document Frequency) compares how often a term appears on your page relative to how often it appears across a large corpus of documents. Keyword density is a simpler raw percentage. TF-IDF gives a more context-aware signal and is closer to how modern search engines evaluate term importance.
Related glossary terms
Find the keywords your customers actually search, scored by difficulty and intent.
