Keyword density is the percentage of times a keyword appears in a piece of text compared to the total number of words. It is one of the oldest ideas in SEO. It is also one of the most misunderstood. This guide explains how to calculate it, what a healthy range looks like, and how to use it without harming your rankings.
How to calculate keyword density
The formula is simple. Divide the number of times your keyword appears by the total word count, then multiply by 100.
For example, if “running shoes” appears 8 times in a 1,000-word article, the density is 0.8%. You can calculate this by hand, but it is faster to paste your text into our free keyword density checker. It shows single words and two- or three-word phrases, and you can export the list as a CSV.
What is the ideal keyword density?
There is no official number. Google has never published one. However, most SEO tools, including Yoast, suggest a range of about 0.5% to 3% for your focus keyphrase. In practice, content that reads naturally usually lands between 1% and 2%.
Instead of chasing a percentage, focus on placement. Your keyword should appear in these places:
- The SEO title and the H1
- The first paragraph
- At least one subheading
- The meta description
- The URL slug
- Image alt text, where it fits naturally
Why keyword stuffing hurts SEO
In the early days of search, repeating a keyword dozens of times could push a page up the results. Today, it does the opposite. Google’s spam policies specifically call out keyword stuffing. Pages that repeat terms unnaturally can be demoted or ignored.
Furthermore, stuffed content is hard to read. Visitors leave quickly, and that sends a poor signal about the page. Google’s own guide to creating helpful content makes it clear that content should be written for people first.
Use related terms, not repetition
Modern search engines understand topics, not just exact words. So an article about coffee brewing should naturally mention grind size, water temperature and extraction. These related terms help Google understand what the page covers.
A quick way to find gaps is to look at your top phrases. If your two-word phrases are all variations of the same term, you are probably repeating yourself. If important subtopics are missing, add a section for them.
How to check keyword density step by step
- Write your draft first, without worrying about keywords
- Paste it into the keyword checker
- Check that your focus keyword sits between roughly 0.5% and 3%
- Switch to two-word phrases to see which topics dominate
- Rewrite any paragraph where the keyword feels forced
You can also turn the text into a word cloud. If your keyword is by far the largest word, you may be overdoing it.
Keyword density and content length
Longer articles need more mentions to reach the same percentage. However, they also cover more subtopics, so the exact phrase naturally appears less often. That is fine. A 2,500-word guide with a 0.7% density can easily outrank a 500-word page at 3%. To choose the right length, read our guide on blog post length.
The bottom line
Keyword density is a useful sanity check, not a ranking formula. Use it to catch stuffing and to confirm your main topic is clear. Then spend your real effort on answering the searcher’s question better than anyone else.
check your own text
free, private, no sign-up.