Keyword Density Analyzer

Keyword density—
Total words—
Keyword occurrences—
Verdict—
Most frequent words—

How Keyword Density Analyzer is calculated: Density = keyword occurrences ÷ total words × 100; healthy is 0.5%–2.5%; matches are case-insensitive whole words

What is a keyword density analyzer?

A keyword density analyzer measures how often a chosen word or phrase appears in a piece of text, as a percentage of all the words. You paste in an article or a page, type the keyword, and the tool counts the total words, counts how many times the keyword appears as a whole word, and divides one by the other. The result is a single number that says whether the keyword is used rarely, naturally, or far too often.

The number matters because search engines read it as a signal about the topic. A page about QR codes should mention QR codes — if it never says the words, the search engine cannot tell what the page is about. But a page that repeats the same phrase in every sentence looks written for a machine, not a person, and readers leave. Density is the balance between those two failures.

This analyzer also shows the three most frequent words in the text, ignoring small words like the, and, and of. That list is a quick check on what the page is really about: if the top words are not the topic, the page has drifted, whatever the density number says.

How keyword density is calculated

The formula is simple: density equals keyword occurrences divided by total words, times 100. The default text has 23 words, and the keyword fox appears 3 times, so the density is 3 ÷ 23 × 100, which is 13.0 percent. That is far above the healthy range, which is why the verdict reads high and may look stuffed — a 23-word passage that says fox three times is repeating the word in almost every sentence.

Matching is case-insensitive and whole-word. Fox, Fox, and FOX all count as the same word, because capitalisation does not change the meaning. But foxes does not count as fox, and firefox does not count either, because the match must be the whole word on its own. That rule matters: a page that says dogs three times and dog once has one occurrence of dog, not four, because dogs is a different word.

The total word count is the count of all words in the text, including the small ones. The default text has 23 words, counting The, is, and, and A alongside the content words. The density is therefore a share of everything written, not just of the meaningful words, which is the standard way the number is reported.

What counts as healthy density

Under 0.5 percent, the verdict is low. The keyword is barely present, and a reader — or a search engine — could miss what the page is about. A 1,000-word article that mentions its keyword twice has a density of 0.2 percent, which is too thin. The fix is to use the keyword a few more times in natural places: the title, the first paragraph, and one or two headings.

Between 0.5 and 2.5 percent, the verdict is healthy. A 1,000-word article with its keyword 10 times has a density of 1.0 percent, and one with 20 mentions has 2.0 percent. Both read naturally, because the keyword appears about once every 50 to 100 words, which is how often a writer mentions the topic without trying. Most well-written pages land in this range without any effort to hit it.

Over 2.5 percent, the verdict is high and may look stuffed. The default text is an extreme case at 13.0 percent, but even 4 or 5 percent reads as forced in a long article. The fix is not to delete the keyword everywhere, but to replace some mentions with pronouns or synonyms: say it, the tool, or the code instead of repeating the phrase. If the density is high because the article is short, lengthen the article rather than cutting the keyword.

A worked example: checking a short passage

Take the default text: The quick brown fox jumps over the lazy dog. The fox is quick and the dog is lazy. A quick fox jumps high. It has 23 words. The keyword fox appears 3 times, so the density is 3 ÷ 23 × 100, which is 13.0 percent, and the verdict is high and may look stuffed. The three most frequent words are quick (3), fox (3), and jumps (2), which confirms the passage is about a quick fox that jumps.

Now change the keyword to dog. The same 23 words hold dog twice, so the density is 2 ÷ 23 × 100, which is 8.7 percent — still high, because the passage is short and the word appears twice. Change the keyword to zebra, which does not appear at all, and the density is 0.0 percent with a verdict of low. The same text gives three different answers for three different keywords, which is exactly the point: density is always about one keyword at a time.

Try a second passage: Dogs are loyal animals. Dogs love walks and dogs love food. A dog is a good friend. It has 17 words. The keyword dog appears once as a whole word, because the other three are dogs, which is a different word. The density is 1 ÷ 17 × 100, which is 5.9 percent, and the verdict is high. The three most frequent words are dogs (3), love (2), and loyal (1). If you want the full count of every word, a word frequency counter lists them all, not just the top three.

Why keyword density still matters

Keyword density is not a ranking rule. No search engine publishes a target density, and no page ranks because it hit exactly 1.5 percent. The number is a diagnostic: it shows whether the writing mentions the topic enough to be understood, or so often that it reads as written for a machine. A page that never says its keyword is hard to rank for that keyword, and a page that says it in every sentence is hard to read.

The number is most useful as a check before publishing. A writer who has just finished an article pastes it in, checks the main keyword, and sees 0.3 percent — too low — or 4.5 percent — too high. Both are fixable in minutes: add the keyword to the introduction and a heading, or replace a few mentions with pronouns. Without the check, the same problems sit on the live page for months.

Density also catches drift. The top-three words list shows what the page actually talks about most. If the list is full of words that are not the topic, the article has wandered, and no density number for the main keyword will fix it. The fix is to cut the wandering paragraphs, not to add more keywords.

Keyword density analyzer vs word frequency counter

A density analyzer and a word frequency counter both count words, but they answer different questions. The analyzer is about one keyword: how often does this word appear, as a share of the whole text, and is that share healthy. The counter is about all words: it lists every word in the text with its count, from most to least frequent.

Use the analyzer when you have a keyword in mind and want a verdict on it. Use the counter when you want to see what the text is actually about, or when you suspect a word is repeated without noticing. The two pair well: run the counter first to find the words that dominate the text, then run the analyzer on the main keyword to get the percentage and the verdict.

Both tools share the same counting rules: case-insensitive, whole words, and a small list of stopwords ignored in the frequency list. The difference is only the question they answer. If the question is how long the text is, rather than what it repeats, a word counter gives the word, character, and sentence counts instead.

Common mistakes with keyword density

The most common mistake is chasing a magic number. There is no density that guarantees a ranking, and a page at 1.0 percent does not outrank a page at 2.0 percent because of the number. The range of 0.5 to 2.5 percent is a guide for natural writing, not a target to hit exactly. Write for the reader first, then check the number, and only fix it when it is clearly outside the range.

The second mistake is counting the wrong thing. Some tools count partial matches, so foxes and firefox inflate the count for fox, and the density looks higher than it is. This tool counts whole words only, which is the honest count. The third mistake is checking a short text and panicking: a 23-word passage at 13.0 percent is not a stuffed article, it is a short example, and the number only becomes meaningful on a text of a few hundred words or more.

The fourth mistake is stuffing the keyword into headings, image descriptions, and footers to raise the number. Search engines read all of those, and a keyword repeated in every heading reads as manipulation. Keep the keyword in the title, the first paragraph, and a few natural mentions in the body, and let synonyms carry the rest. And the fifth mistake is checking only one keyword: a page usually targets a main keyword and two or three related ones, so check each of them in turn. A sentence counter can check the sentence structure of the same text while you are at it.

How to use this keyword density analyzer

First, paste the full text of the page or article into the box. Paste the whole thing, not just a paragraph, because density is a share of the whole text and a short sample gives a wild number. Then type the keyword in the second box — one word or a short phrase, exactly as it appears on the page.

The results update live as you type. The density is the headline number, with the total words, the occurrences, and the verdict below it, plus the three most frequent words. If the verdict is low, add the keyword to the introduction and a heading. If it is high, replace a few mentions with pronouns or synonyms and check again.

Finally, check the related keywords too, one at a time, and read the top-three list to confirm the page is about what you think it is about. Your text never leaves your device: the whole analysis runs in your browser, and closing the page deletes everything. If the writing itself needs a readability check, a syllable counter counts the syllables that drive the reading scores. Density tells you what a page already says — to choose the terms deliberately, use our meta keywords generator on your draft text first.

Frequently Asked Questions

Between 0.5% and 2.5% is healthy for most pages. Under 0.5% means the keyword is barely present, and over 2.5% starts to look stuffed. There is no magic number that guarantees a ranking — the range is a guide for natural writing, not a target to hit exactly. A 1,000-word article with its keyword 10 to 20 times lands in the healthy range.

No. Matches are case-insensitive whole words, so Fox and FOX count as fox, but foxes and firefox do not, because they are different words. That is the honest count: a page that says dogs three times and dog once has one occurrence of dog, not four. Partial matches would inflate the density and hide the real number.

Because density is a share of the whole text, and a short text has a small denominator. A 23-word passage that says fox three times has a density of 13.0%, but the same three mentions in a 1,000-word article would be 0.3%. The number only becomes meaningful on a text of a few hundred words or more, so always paste the full article, not a paragraph.

No. The text is counted in your browser and never uploaded or stored. You can paste draft articles, client copy, or unpublished pages without worrying about who sees them, and the tool works offline once the page has loaded.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.