This keyword density calculator works out what percentage of a text is made up of a keyword or phrase. Enter how many times it appears, how many words the phrase has, and the total word count of the page.
Keyword Density Calculator
Keyword density (percentage of total words) for a keyword or phrase in a piece of text, from word counts.
Starting values: the calculator opens with a keyword that appears 8 times, a one-word phrase and a total word count of 800. The keyword density is 1.00 percent.
The formula
Keyword density (%) = (Occurrences × Words per phrase) ÷ Total words × 100
Where:
- Occurrences = how many times the exact keyword or phrase appears in the text
- Words per phrase = the number of words in the keyword (1 for "calculator", 3 for "date difference calculator")
- Total words = the word count of the whole text you are measuring
Multiplying by the number of words in the phrase counts every word the phrase takes up, so a three-word phrase used 5 times accounts for 15 words, not 5. Some tools count only the occurrences, which gives a lower figure for phrases, so always check which method a tool uses before comparing numbers.
Does Google use keyword density?
Not as a target. John Mueller of Google’s Search team said in a January 2023 office-hours video that Google does not have a notion of optimal keyword density, and added that being explicit about what your page covers matters more than a percentage. That means there is no "right" figure to hit. The calculator is useful as a check, mostly to spot a page where a phrase has been repeated so often that the text reads badly.
A sensible way to use it is as a smoke test after you write. If a keyword makes up 3 or 4 percent of your words, read the page aloud and see whether the repetition sounds forced. If it sits well below 1 percent, that is also fine as long as the page clearly covers its topic with related words and plain explanations.
Worked examples
Example 1: the default
A single word used 8 times in an 800-word article: (8 × 1) ÷ 800 × 100 = 1.00 percent.
Example 2: a three-word phrase
The phrase "date difference calculator" appears 5 times in a 1,500-word page. (5 × 3) ÷ 1,500 × 100 = 1.00 percent. The same 5 occurrences, counted without the word multiplier, would show 0.33 percent, which is why the method matters.
Example 3: an overused keyword
A two-word keyword appears 12 times in a 600-word page. (12 × 2) ÷ 600 × 100 = 4.00 percent. Four in every hundred words is a lot, and it is likely to read as repetitive.
Example 4: a long article
A single-word keyword used 3 times in 1,200 words gives (3 × 1) ÷ 1,200 × 100 = 0.25 percent. That is a natural level for a long page where the topic is carried by many related terms.
How to count the inputs
- Paste your text into a word processor to get the total word count. Remove menus, footers and comment text if you only want the article body.
- Use the find function to count exact matches of the phrase. Decide in advance whether to count variants such as plurals.
- Enter the number of words in your phrase in the second field.
Using the figure sensibly
Density does not tell you whether a page answers the reader’s question, whether its headings match the topic, or whether the facts are right. A page can have a perfect 1 percent and still be thin. Use better signals alongside it: does the first paragraph state the answer, do the headings cover the questions people ask, and are related terms present in context? The percentage is just a quick way to catch obvious stuffing.
What the calculator does not do
- It does not read your page. You supply the counts yourself.
- It treats the keyword as one phrase, so for several keywords run it once for each.
- It does not compare your page with competitors. Check what the top pages cover separately.
A worked check on a real draft
Suppose you have written a 1,000-word guide aimed at the phrase "date calculator". You count the phrase 9 times. The phrase is two words long, so the density is (9 × 2) ÷ 1,000 × 100 = 1.8 percent. That is higher than the 1 percent most checklists treat as comfortable, but the real question is how the page reads. Open it and look at the first paragraph, the headings and the places where the phrase appears. If three of the nine uses sit in consecutive sentences, trim them and use a plain pronoun or a different noun. Run the calculator again afterwards: with 6 occurrences the density falls to 1.2 percent.
Working back to a count
You can also run the formula in reverse. To keep a one-word keyword at or below 1 percent in a 900-word article, you can use it at most 9 times, since 9 ÷ 900 = 1 percent. For a three-word phrase the limit is 3 uses, because each use takes up three words. Knowing the ceiling in advance makes it easy to stop while you are drafting rather than cutting afterwards.
Related words matter more than repeats
When you need to refer to the topic again, vary the wording the way a person would. A page about a loan can say "the loan", "the repayment schedule", "your monthly payment" and "the balance" without repeating the exact phrase. This keeps the density of any single phrase low, and it also gives the page a natural vocabulary that matches how people search.
Frequently asked questions
What is a good keyword density?
Google has said it has no notion of optimal keyword density. As a rough check, use the figure to catch obvious repetition: a figure around 1 percent or less rarely causes problems, and it is worth reading the text aloud if it climbs to 3 or 4 percent.
How do I calculate keyword density?
Multiply the number of times the keyword appears by the number of words in the phrase, divide by the total word count, and multiply by 100.
Why does the number of words in the phrase matter?
A phrase of three words used five times takes up fifteen words of your text. Counting only the five occurrences understates how much of the page the phrase fills.
Should I count plurals and variations?
That is your choice, as long as you count the same way every time. Counting only exact matches is the simplest approach.
