Keyword Density Calculator
Calculate keyword frequency and density percentage in your content
About This Tool
Counting how often a keyword appears in a long page is tedious by hand, and a too-high density can trip spam filters while a too-low density signals to search engines that the page isn't really about that topic. Striking the right balance requires knowing what your draft's actual density is — not what you assume it is.
Paste your content and provide one or more target keywords. The calculator returns occurrence count, density percentage, and total word count. Stop words are excluded from total word count for a fairer denominator (since articles like "the" and "a" are noise, not signal). Multi-word phrases are matched as exact matches by default; toggle to count partial overlaps.
Useful for SEO sanity-checking — most modern guidance suggests 0.5%–2% density for primary keywords, well below the 5%+ that triggers spam signals. The calculator doesn't tell you what to write, only how often what you wrote uses the words you said you cared about.
The core formula is simple: density = (keyword occurrences / total words) × 100. The choices that affect the answer are which words count toward total (stop words inflate the denominator and lower density), how exact-match versus partial-match counts, and whether stems and morphological variants count as the same keyword. Modern SEO guidance has moved away from density as a primary lever, but it remains a useful sanity check — a 2,000-word article about a topic that mentions the topic exactly twice is probably under-optimized for that topic, regardless of what semantic models say about the rest of the content.
Worked example: a 1,500-word article about "container gardening" with 22 occurrences of the exact phrase. Density = 22 / 1500 × 100 = 1.47%. That's in the safe zone (most guidance suggests 0.5-2% for primary keywords). Now check related terms: "vegetables in pots" 8 times (0.5%), "balcony garden" 6 times (0.4%), "small space gardening" 4 times (0.3%). The semantic ecosystem around the head term is meaningful — search engines weight topical relevance, and an article that uses related terms naturally is more likely to rank than one that hammers the head term and ignores variants.
Limits the calculator can't address: keyword density is a 2010-era metric. Modern ranking algorithms (Google's BERT, MUM, and successors) understand topical relevance through semantic embeddings, not raw frequency. An article that scores well on density but reads as keyword-stuffed will be detected and possibly penalized. Conversely, an article that uses synonyms and topical variations naturally can rank for the head term without ever reaching 1% density on the exact phrase. Density is a sanity check, not a target to optimize against.
Over-optimization is the failure mode that triggered Google's Penguin update years ago and remains a real signal. Density above 5% on a primary keyword reads unnatural and can be classified as keyword stuffing. The fix isn't to dial density to a specific number — it's to write naturally for humans, then check density to confirm you didn't accidentally drift to 0.1% (under-mentioning) or 8% (stuffing). Most well-written content lands in the 0.5-2% range without effort.
The about text and FAQ on this page were drafted with AI assistance and reviewed by a member of the Coherence Daddy team before publishing. See our Content Policy for editorial standards.