Keyword Density preview

Keyword Density

Analyze keyword frequency and density in your text. Shows single words, 2-grams, and 3-gram phrases with counts and percentages. Stop word filtering included.

Key features

  • Analyzes single words, 2-grams, and 3-gram phrases
  • Shows frequency counts and density percentages
  • Built-in stop word filtering for cleaner results
  • Visual bars make it easy to spot dominant keywords

Guide

Keyword density is the percentage of times a target keyword or phrase appears in a text relative to the total word count. It is one of the oldest SEO metrics, dating back to the early days of search engines when algorithms relied heavily on keyword frequency to determine page relevance. While modern search engines use far more sophisticated ranking factors, keyword density remains a useful diagnostic tool for identifying over-optimization and ensuring natural keyword usage in your content. The formula is straightforward: keyword density equals (number of keyword occurrences divided by total word count) multiplied by 100. For a multi-word phrase, each occurrence counts as one regardless of how many words the phrase contains. If your 1000-word article mentions "content marketing strategy" 15 times, the density for that phrase is 1.5 percent. ## Why Keyword Density Still Matters Google has repeatedly stated that there is no ideal keyword density. John Mueller, Google Search Advocate, has confirmed in multiple webmaster hangouts that Google does not use a keyword density formula for ranking. However, keyword density remains relevant for two practical reasons. First, it helps you detect keyword stuffing. If your primary keyword appears at 5 percent density or higher, the text almost certainly reads unnaturally. Search engines detect this pattern and may demote the page or flag it as spam. The Penguin algorithm update (2012, with real-time integration in 2016) specifically targets manipulative keyword usage. Even before algorithmic detection, readers will notice and leave pages that repeat the same phrase every other sentence, increasing your bounce rate and reducing dwell time. Second, it helps you detect under-optimization. If you write a 2000-word article about "home espresso machines" and the phrase appears only once, search engines may not have enough relevance signals to rank the page for that query. A density below 0.5 percent for your primary keyword often indicates that the content drifts off-topic or uses too many synonym variations without anchoring them to the target phrase. Some topical relevance is lost when the primary keyword is absent from large sections of the content. ## Recommended Density Ranges Based on analysis of top-ranking pages across multiple industries and query types, the following ranges represent natural keyword usage that correlates with strong search performance: Primary keyword: 1.0 to 2.5 percent. This means your main target phrase appears roughly 10 to 25 times per 1000 words. The exact number depends on the content type. Product pages trend lower (1.0 to 1.5 percent) because they contain specifications, pricing, and other structured data that naturally dilutes keyword frequency. Long-form guides and tutorials trend higher (1.5 to 2.5 percent) because they discuss the topic at length from multiple angles, creating natural opportunities for keyword usage. Secondary keywords: 0.5 to 1.5 percent. Secondary keywords are related phrases that support the primary topic. For an article targeting "home espresso machines," secondary keywords might include "espresso grinder," "milk frothing," "bar pressure," and "portafilter." These help search engines understand the topical depth and comprehensiveness of your content. LSI (Latent Semantic Indexing) terms: no specific density target. LSI terms are contextually related words that naturally appear in comprehensive content about a topic. For espresso content, these would include words like "crema," "extraction," "tamping," "dose," "brew ratio," "water temperature," and "grind size." Their presence signals topical authority. Do not force a specific density for these terms. If your content is thorough and written by someone who understands the subject, they appear naturally. ## Keyword Density vs. TF-IDF TF-IDF (Term Frequency-Inverse Document Frequency) is a more sophisticated metric than keyword density. While keyword density treats all words equally, TF-IDF weighs a term's importance in a document against its frequency across a large corpus of documents. The formula is: TF-IDF = (term frequency in document) x log(total documents / documents containing the term). Common words like "the," "is," and "in" have high frequency but low TF-IDF scores because they appear in virtually every document. A specialized term like "portafilter" has a high TF-IDF score in an espresso article because it is frequent in that document but rare in documents overall. This weighting helps identify the terms that truly distinguish your content from generic text. Modern SEO tools use TF-IDF analysis to suggest terms that top-ranking competitors use but your content misses. Tools like Surfer SEO, Clearscope, and MarketMuse calculate TF-IDF scores across the top 10 to 30 ranking pages for a query and compare them against your content. This approach is more actionable than raw keyword density because it identifies specific topical gaps rather than just counting occurrences. ## Analyzing Keyword Density Effectively When analyzing your content, examine density at multiple levels: Exact match density counts only the exact target phrase in the exact word order. "Home espresso machine" and "espresso machine for home" are different from an exact match perspective. This is the strictest measurement. Partial match density counts occurrences of the individual words in the phrase appearing near each other (within the same sentence or paragraph) without requiring the exact order. "The best machine for making espresso at home" counts as a partial match for "home espresso machine." This captures natural variations that search engines understand as semantically equivalent through their NLP models. Stemmed match density counts root word variations. "Espresso machines," "espresso machine," and "espresso machining" all share the stem "espresso machin." Search engines lemmatize queries and content during indexing, so stemmed variations contribute to relevance. Your analysis should account for both singular and plural forms. N-gram analysis breaks your text into all possible word combinations of a given length and ranks them by frequency. Unigrams (single words), bigrams (two-word phrases), and trigrams (three-word phrases) each reveal different patterns. If your trigram analysis shows "click here to" as the most frequent three-word phrase, your content may have too many generic call-to-action phrases and too little topically relevant language. ## Content Zones and Weighted Density Not all keyword placements carry equal weight. Search engines give more relevance to keywords in certain page elements: Title tag: The single most important on-page placement. Include your primary keyword once, preferably near the beginning. A title like "Home Espresso Machines: 10 Best Models for 2026" places the keyword first and adds a compelling modifier. Keep titles between 50 and 60 characters to avoid truncation in search results. H1 heading: The main visible heading on the page. Include the primary keyword naturally. The H1 should match or closely reflect the title tag content. There should be only one H1 per page. First 100 words: Keywords in the opening paragraph confirm the page topic immediately. Both search engines and human readers benefit from early topic establishment. If a reader (or crawler) has to scroll through 300 words before encountering the main topic, the relevance signal is weaker. Subheadings (H2, H3): Include primary or secondary keywords in some subheadings, but not all. Every subheading containing the exact same keyword looks forced and harms readability. Use subheadings to organize content logically and include keyword variations where they fit naturally. Meta description: While not a direct ranking factor, the meta description influences click-through rate (CTR) from search results. Include the primary keyword so it appears bolded in search results when it matches the user's query. A higher CTR sends positive engagement signals to Google. Keep meta descriptions between 150 and 160 characters. Image alt text: Describe what the image shows. Include keywords only when they accurately describe the image content. "Home espresso machine on kitchen counter" is good alt text for an image showing that scene. "Best home espresso machine cheap buy now" is keyword stuffing. URL slug: A short, keyword-inclusive URL performs better than a long, parameter-filled URL. Keep it under 5 words. /home-espresso-machines is better than /articles/2026/03/the-ultimate-guide-to-home-espresso-machines-for-beginners. Anchor text of internal links: When other pages on your site link to this page, the anchor text should include or relate to the target keyword. This reinforces the page's topical focus within your site's link graph. ## Common Keyword Density Mistakes Keyword stuffing in invisible elements: Hiding keywords in white text on white backgrounds, zero-font-size text, CSS-hidden divs, or behind images is a black hat technique that search engines have detected reliably since the mid-2000s. It results in manual penalties from Google's webspam team and algorithmic demotion. Repetitive keyword patterns: Using the exact keyword at the start of every paragraph creates a predictable pattern that reads poorly for humans and triggers algorithmic over-optimization filters. Vary your sentence structure, keyword placement within sentences, and use synonyms and related phrases to break repetitive patterns. Ignoring user intent: Optimizing for keyword density without matching search intent is pointless. If users searching for "espresso machine" want product reviews with prices and comparisons, and you publish a historical essay about the invention of espresso, no amount of keyword optimization will rank that page. Analyze the current top 10 results for your target keyword to understand what type of content (informational, transactional, navigational, or commercial investigation) Google considers relevant for that query. Optimizing for too many keywords: Each page should target one primary keyword and 3 to 5 secondary keywords that belong to the same semantic cluster. Trying to optimize a single page for 20 different keywords from different topic areas dilutes the relevance signal for all of them. Create separate pages for distinct keyword clusters. A site about espresso machines should have separate pages for "espresso machines under 500," "espresso machines with grinders," and "espresso machines for office use." Neglecting content quality for keyword targets: If adding one more keyword instance makes a sentence awkward or redundant, skip it. Google's helpful content system (introduced 2022, updated 2023 and 2024) evaluates whether content is written primarily for humans or primarily for search engines. Natural, helpful content that slightly misses a keyword density target outranks stuffed content that hits the number perfectly but provides a poor reading experience. ## Keyword Density for Different Content Types Blog posts and articles (1000 to 3000 words): Primary keyword at 1.0 to 2.0 percent. Use the exact phrase in the title, first paragraph, one or two subheadings, and the concluding paragraph. Fill the body with semantically related terms and natural variations. Product pages (200 to 800 words): Primary keyword at 1.5 to 3.0 percent. Product pages have less text, so each mention carries more weight. Include the keyword in the product name, the introductory description, the detailed description, and the specifications section. Category pages (300 to 1000 words): Primary keyword at 1.0 to 2.0 percent. Category pages often have thin content consisting only of product listings. Adding a 300 to 500-word category description with natural keyword usage significantly improves ranking potential and gives search engines context about what the category contains. Homepage (200 to 500 words of visible text): Primary keyword at 1.0 to 1.5 percent. The homepage targets your brand name and primary service or product category. Keep it focused on your core value proposition. FAQ pages: Keyword density is less relevant because the content is structured as question-answer pairs. Focus on including target keywords in the questions (which mirror how users search) and providing thorough answers. FAQ pages benefit from FAQ schema markup that can earn rich results in search. Landing pages for PPC campaigns: Keyword density is less important for paid traffic but affects Quality Score in Google Ads. Including the target keyword in the H1, first paragraph, and throughout the page improves your ad relevance score, which lowers cost-per-click and improves ad position. ## How Search Engines Moved Beyond Keyword Density Google's BERT update (2019) introduced transformer-based natural language understanding that grasps context, intent, and meaning rather than counting keywords. BERT processes words in relation to all other words in a sentence, understanding nuances like negation ("not good" versus "good") and prepositions ("flights from New York to London" versus "flights from London to New York"). The MUM update (2021) extended this to multi-modal and multi-language understanding, allowing Google to draw connections between text, images, and content in different languages. Google's helpful content system (2022, updated 2023 and 2024) evaluates overall content quality and user satisfaction at a site-wide level. Sites with a large proportion of unhelpful, search-engine-first content receive a site-wide demotion that affects all pages. These advances mean that synonym usage, topical coverage, content structure, internal linking, user engagement signals (click-through rate, bounce rate, dwell time), and E-E-A-T (Experience, Expertise, Authoritativeness, Trustworthiness) matter more than raw keyword counts. Keyword density is a diagnostic checkpoint, not a ranking formula. This tool analyzes your text and reports exact keyword density for any term or phrase you specify. It counts exact matches, partial matches, and stemmed variations, and provides a word frequency breakdown of your entire text. Use it to verify natural keyword usage, identify over-optimization, spot under-optimization, and compare your density against recommended ranges for your content type.

Frequently asked questions

What is keyword density?

It's the percentage of times a keyword appears compared to total words. I calculate it instantly for your content!

What is a good keyword density?

Generally 1-3% is ideal. Higher than that can look spammy to search engines.

Related guides

Related WebRecast sections