Short answer: Keyword density is the percentage of words on a page that are your target keyword, and there is no ideal number. Google's documentation does not set one; its SEO Starter Guide instead warns that repeating the same words over and over is tiring for users and that keyword stuffing is against its spam policies. Put your main keyword where it naturally belongs (title, H1, opening lines, a relevant heading), use everyday variations elsewhere, and use density only to catch overuse.
The basic formula is simple:
keyword density = (times the keyword appears / total words on the page) x 100
A plumbing page with 1,200 words that uses "drain cleaning" 9 times has a density of 0.75 percent by this method. Some tools count each word of a multi-word phrase separately, some include navigation and footer text, and some count partial matches. That is why one page can score 0.8 percent in one checker and 2.1 percent in another.
The idea comes from early search engines, which leaned heavily on how often a word appeared on a page. Repeating a term was a quick way to look relevant, so people started measuring it, then optimizing it, then abusing it. Search has moved on a long way since, but the metric lives on in plugins and content tools.
You will see "1 to 2 percent" or "no more than 3 percent" quoted as rules. None of these figures comes from Google's Search documentation. Here is what Google does say:
- Repetition is a user problem. Google's SEO Starter Guide says that excessively repeating the same words over and over, even in variations, is tiring for users, and that keyword stuffing is against Google's spam policies.
- Exact repetition is not needed. The same guide says Google's language matching systems can understand how a page relates to many queries, even if the page does not use the exact terms. It suggests thinking about the different words users might search for, rather than repeating one phrase.
- Stuffing is spam. Google's spam policies define keyword stuffing as filling a web page with keywords or numbers in an attempt to manipulate rankings.
- No magic numbers elsewhere either. The Starter Guide also says there is no magical word count target and no ideal number of headings. The same thinking applies to keyword counts.
Google's John Mueller has also said in public Q&A sessions, more than once, that keyword density is not something to focus on and that Google has no concept of an optimal density. Those were spoken answers rather than documentation, but they are consistent with everything in the written guides.
So the honest answer to "what is the best keyword density?" is: whatever results from writing a clear, complete page for a person. For context on other numbers Google says it does not use, see 15 things Google says are not ranking factors.
Dropping density as a target does not mean keywords are irrelevant. The words on the page are still how Google and AI systems understand what it is about. The difference is placement and clarity rather than frequency.
| Place | Why it matters | Example for "water heater repair" in Denver |
|---|---|---|
| Title element | Google often uses it for the title link in results | Water Heater Repair in Denver | Same-Day Service |
| H1 | Tells readers they are in the right place | Water Heater Repair in Denver |
| Opening lines | Confirms the topic and is often lifted for snippets and AI answers | "We repair gas, electric and tankless water heaters across Denver, usually the same day." |
| One relevant subheading | Helps scanning and structure | "Water heater repair or replacement?" |
| Internal link text | Google uses link text to understand the linked page | "see our water heater repair service" |
| Image alt text, where accurate | Describes the image; keyword only if it is truthful | "Technician replacing the thermocouple on a gas water heater" |
Everywhere else, write normally. Use "it," "the heater," "your tank," "a repair visit" and the other phrases a person would use. Our guides to title tags and heading structure go deeper on the first two rows.
Google's spam policies give three examples of keyword stuffing: lists of phone numbers without substantial added value, blocks of text listing cities and regions a page is trying to rank for, and repeating the same words or phrases so often that it sounds unnatural. Local business sites hit the second and third more than any other kind of site.
Example 1: a service page intro
Stuffed: "Looking for an emergency plumber in Austin? Our emergency plumber Austin team is the best emergency plumber Austin TX has. Call our Austin emergency plumber today for emergency plumbing in Austin."
Natural: "Burst pipe or backed-up drain in Austin? Our licensed plumbers answer 24 hours a day and can usually be at your door within about an hour inside Loop 360. Call now and you will speak to a person, not a voicemail."
The natural version uses the core idea once, then earns relevance with specifics (24 hours, licensed, a local landmark, a promise). Those specifics are also what persuades someone to call.
Example 2: the "areas we serve" block
Stuffed: a footer paragraph reading "HVAC repair Plano, HVAC repair Frisco, HVAC repair Allen, HVAC repair McKinney, HVAC repair Richardson..." for forty towns.
Natural: a short service-area section listing the main cities you cover, a map, and links to real location pages only where you have something specific to say about that area. See service area pages done right.
Example 3: a dentist's FAQ
Stuffed: "How much do dental implants cost in Columbus? Dental implants in Columbus cost..." repeated for every question.
Natural: "How much do implants cost?" answered with what drives the price (number of teeth, bone grafting, type of restoration) and how you quote. The city is already clear from the page.
Density is useful as a smoke alarm, not a thermostat. Here is a fifteen-minute check for any page:
- Read the page aloud. Mark any sentence that sounds like it was written for a search engine. This catches most problems on its own.
- Use your browser's find tool. Search the page for the main phrase and the city name. If the highlights cluster in one paragraph, or the phrase shows up in nearly every sentence, rewrite.
- Look at the footer and sidebar. Sitewide blocks of services or cities repeat on every page and are easy to forget.
- Check titles across the site. If every title is "Service City | Service City Company," that is repetition at site scale. Google's title link documentation specifically advises against keyword stuffing in titles.
- Check alt text. Google's image guidance warns against filling alt attributes with keywords. See our alt text examples for what good descriptions look like.
- Run a density checker only last. If one phrase is far more frequent than any other meaningful term, look at why.
The free Website SEO Audit flags missing or duplicated titles and headings, which are often where repetition starts.
The opposite problem is common too, especially on sites written by designers or owners who avoid "SEO words" entirely. Signs of it:
- The H1 is a slogan ("Comfort You Can Count On") and the service is never named in a heading.
- The page never says where you work, or only in an image.
- Services are described in brand language ("our Total Home Care plan") rather than the words customers search ("furnace tune-up").
- The title element says "Home" or the business name only.
The fix is not to raise a percentage. It is to name the service and place clearly in the six spots in the table above, and to add the sections customers need. Our local keyword research guide helps you find the words customers actually use, and the LSI keywords explainer covers how to fill topic gaps without keyword lists.
Google Business Profile name
The most damaging form of stuffing for a local business is not on the website at all. Google's Business Profile guidelines ask that your name reflect your real-world business name. Adding keywords or cities to the profile name can lead to suspension. We cover this in detail in keyword stuffing your Google Business name.
City pages
Swapping the city name into the same template across dozens of pages produces pages where the only difference is the place name. That is a doorway and scaled-content risk regardless of density. Each location page needs genuinely local content to justify itself.
Reviews
Asking customers to include specific keywords in reviews is unnecessary and can look manipulated. Ask them to mention the service they received, in their own words.
Canada and Australia
Use the spelling and terms your customers use. A Toronto HVAC page talks about "furnaces," while a Melbourne page is more likely to talk about "heating" and "split systems." Using the wrong country's terms is a bigger relevance problem than any density number.
Here is an illustrative rewrite of a typical over-optimized page section. The original was built around one phrase, "roof replacement Charlotte."
Before (about 60 words, the phrase 5 times): "Need roof replacement Charlotte? We are the roof replacement Charlotte experts. Our roof replacement Charlotte NC services include roof replacement Charlotte for homes and businesses. Get a free roof replacement Charlotte estimate today from the best roofers."
After: "Replacing a roof in Charlotte usually takes one to three days for a typical house, depending on size, pitch and weather. We start with a free inspection, show you photos of what we find, and give you a written quote that separates materials, labor and any decking repairs. If a repair will buy you a few more good years, we will say so."
What changed:
- The phrase appears once in a natural form ("replacing a roof in Charlotte"). The H1 and title still carry the exact keyword.
- Every sentence now answers something a homeowner wants to know: how long, what happens first, what the quote includes, whether replacement is even needed.
- Specific words that real roofing pages use ("pitch," "decking," "inspection," "written quote") appear because the content needs them.
- Claims that cannot be backed up ("the best roofers") are gone. Replace them with proof such as license numbers, warranty terms and reviews.
The timeline in the example is a placeholder; use your own real numbers. A page with true, specific details is more useful to customers and harder for competitors to copy.
- One primary keyword per page, chosen from real search behavior.
- Primary keyword or a close variant in the title, H1 and first two sentences.
- One or two subheadings that use customer phrasing for subtopics.
- Variations, synonyms and pronouns used freely in the body.
- City or service area named clearly, but not in every sentence.
- No lists of cities, zip codes or phone numbers without real added value.
- Alt text describes the image, keyword only if accurate.
- Internal links use descriptive text, not the exact same anchor on every page.
- The page passes the read-aloud test.
For the rest of the page-level work, see the full on-page SEO checklist. To see which keywords your pages actually rank for in your area, run a free rank check.
If you would rather have this handled for you, see our local SEO services.
What is the ideal keyword density for SEO?
There is none. Google's documentation does not give a target percentage, and Google's John Mueller has said in public Q&A sessions that Google has no notion of an optimal keyword density. Use the main keyword where it naturally belongs, such as the title, H1 and opening, and otherwise write for the reader. If a sentence sounds forced, rewrite it.
How do you calculate keyword density?
Divide the number of times the keyword appears by the total number of words on the page, then multiply by 100. A 1,000-word page that uses "roof repair" 8 times has a density of 0.8 percent by the simplest method. Tools count multi-word phrases, headings and navigation differently, so the same page can show different numbers in different tools.
How many times should a keyword appear on a page?
As many times as it naturally needs to. On a typical local service page that means the title, the H1, the first paragraph, perhaps one subheading, and occasional natural mentions in the body. Beyond that, use variations and pronouns the way you would when speaking. There is no count that Google rewards.
Is keyword stuffing still penalized?
Yes. Google's spam policies define keyword stuffing as filling a page with keywords or numbers to manipulate rankings, and list examples such as blocks of city names and phrases repeated so often they sound unnatural. Pages that violate spam policies can rank lower or be removed from results, including through manual actions.
Does keyword density matter for Google Business Profile?
Not as a percentage, but stuffing is a real risk there. Google's Business Profile guidelines say the business name should match your real-world name, so adding keywords such as "Best Plumber Dallas" can lead to suspension. Describe services naturally in the description and services list instead.
Are keyword density checkers useful?
They are useful as a quick check for accidental overuse, for example when one phrase appears far more often than any other term on the page. They are not useful as a target. A low number does not mean the page is weak, and a page can read as stuffed even at a modest percentage if the repetitions are clumped together.
More in this topic: Website SEO, all 208 guides →
Rank on relevance, not repetition
Book a free audit and we will show you where your pages overuse or underuse their main keywords, and what to write instead.
Book Free Audit →