Keyword Density Calculator
Keyword density measures how often a target keyword or phrase appears in your content as a percentage of total words. While modern SEO has moved beyond simple keyword frequency toward semantic relevance, keyword density remains a useful sanity check. Too few occurrences may leave search engines unsure what your page is about. Too many risks a keyword stuffing penalty from Google. The generally accepted ideal range is 1% to 3% for primary keywords. This calculator counts keyword occurrences (case-insensitive, exact phrase match), total words, and calculates density as a percentage. Enter your text in the top box and your keyword or phrase in the second box, then click Calculate. The result shows whether you are below, within, or above the recommended range.
Keyword density formula
Keyword density (%) = (keyword occurrences / total words) x 100
SEO keyword density guidelines
| Density range | Assessment | Recommendation |
|---|---|---|
| Under 0.5% | Too low | Mention keyword more naturally in the content |
| 0.5-1% | Low | Consider adding a few more natural mentions |
| 1-3% | Ideal | Good balance of relevance without over-optimisation |
| 3-5% | High | Review for natural flow; reduce if it sounds unnatural |
| Over 5% | Keyword stuffing risk | Reduce keyword frequency; rewrite for natural reading |
Keyword density: frequently asked questions
What is keyword density?
Keyword density is the percentage of times a keyword or phrase appears in a piece of content relative to the total number of words. It is calculated as: (keyword occurrences / total words) * 100. For example, if a keyword appears 15 times in a 500-word article, the keyword density is 3%. Keyword density is used in SEO analysis to assess how prominently a keyword features in a piece of content.
What is the ideal keyword density for SEO?
Most SEO practitioners recommend a keyword density of 1% to 3% for primary keywords. Going above 3-4% risks keyword stuffing, which Google's quality guidelines penalise. Going below 1% may mean the page does not clearly signal its topic to search engines. However, Google's algorithms have evolved significantly and now focus on topic relevance and semantic context rather than raw keyword frequency. Natural writing always takes priority.
Does keyword stuffing hurt rankings?
Yes. Google's Webmaster Guidelines explicitly warn against keyword stuffing, which it defines as loading a page with keywords in an attempt to manipulate search rankings. Penalties can range from ranking drops to complete removal from search results. Google's documentation states that text that does not look natural to a human reader is a red flag. Focus on covering a topic comprehensively rather than repeating a keyword.
Is keyword density still relevant in modern SEO?
Keyword density as a strict metric has become less important since Google introduced semantic search (Hummingbird, 2013) and BERT (2019). Modern search engines understand synonyms, related terms, and context. However, keyword density remains a useful sanity check: if a keyword never appears in your content, search engines may not associate your page with that topic. The ideal approach is to include keywords naturally in headings, the introduction, and throughout the body.
Does the calculator count phrase keywords?
Yes. The calculator counts the number of times the full keyword phrase appears in the text (case-insensitive). For example, if your keyword is 'content marketing', it counts every occurrence of that exact two-word phrase. Single-word keywords are counted the same way. Partial matches are not counted: 'content' alone would not count toward a 'content marketing' keyword search.
Official sources
- Google Search Central: Google Search Essentials (formerly Webmaster Guidelines).
- Google Search Central: Creating helpful, reliable, people-first content.
- Google Search Central Blog: How RankBrain and semantic search works.
Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology.