How keyword density is calculated
Keyword density is the share of your text taken up by a keyword or phrase:
density = times the phrase appears × words in the phrase ÷ total words × 100
So a two-word phrase that appears 5 times in a 1,000-word article has a density of 5 × 2 ÷ 1,000 × 100 = 1%. txtstat lists the top single words, two-word phrases and three-word phrases, and you can check any keyword of your own in the box above the table.
Words are matched without regard to capitals, and punctuation at the start and end of a word is ignored, so Keyword, and keyword are the same. Phrases are only counted inside a sentence, never across a full stop. With Hide common words on, words such as the, and and of are left out, and phrases that start or end with one are skipped; phrases with a common word in the middle, such as cost of living, are kept.
Is there an ideal keyword density?
No. Search engines have long since moved past counting keywords, and Google has said for years that it doesn’t use a target keyword density. What it does warn against is keyword stuffing: repeating words unnaturally in the hope of ranking, which breaks its spam policies and can hurt a page.
That makes a density check useful in two ways. First, as a topic check: your top phrases should describe what the page is about. If they don’t, readers and search engines may both miss the point. Second, as a stuffing alarm: if one keyword stands far above everything else, read the text out loud. If it sounds repetitive, replace some mentions with synonyms, pronouns or more specific terms.
Using keyword density for SEO
- Check the top three phrases against the search terms you want the page to be found for.
- Use related terms. A page about running shoes that never mentions cushioning, trail or sizing is probably thin. The two- and three-word tabs show which related phrases you already use.
- Put the main keyword where it matters: the title, the first paragraph and a heading or two, written naturally.
- Compare with pages that rank. Paste a competitor’s article to see which topics it covers that yours doesn’t.
Click any keyword in the table to highlight every place it appears in your text. To see the full list of words, use the word frequency counter.
Frequently asked questions
What is keyword density?
The percentage of a text made up of a particular keyword or phrase: how often it appears, times the number of words in it, divided by the total number of words.
What is a good keyword density for SEO?
There isn’t one. Write naturally for your readers. As a rough guide, if a single keyword goes above a few percent of a long text, check that it doesn’t read as repetitive.
Does Google use keyword density?
Google has said it doesn’t use a target density. Its systems look at what a page is about and how useful it is. Repeating a keyword unnaturally counts as keyword stuffing, which is against Google’s spam policies.
What are stop words?
Very common words such as the, and, of, to and is. They make up a large share of any English text but say little about its topic, so they are hidden from the keyword list by default.
Can I check a phrase, not just one word?
Yes. Type it in “Check a keyword or phrase” to see how often it appears and its density, and switch the table between one-, two- and three-word phrases.