StatGardenREF. DESK
Calculators/SEO/Keyword Density
SEO

Keyword Density calculator

How much of a page's word count is made up of one target keyword or phrase.

What this calculator does

Keyword density is the share of a page's words that are a specific target keyword or phrase, expressed as a percentage. It was a much bigger deal in the early days of search, when stuffing a page with a keyword could move it up the rankings on its own.

Modern search engines read for meaning and context rather than counting repetitions, so density is now a rough sanity check rather than a target to hit. A figure that is unusually high is a sign the copy may read awkwardly to a person, or look manipulative to a search engine, more than it is a lever to pull for rankings.

The formula

FormulaKeyword density = (keyword occurrences / total word count) × 100

Divide the number of times the keyword or phrase appears by the total word count of the page, then express that as a percentage.

TermMeaning
Keyword densityThe percentage of total words that are the target keyword: (occurrences ÷ total words) × 100.
OccurrencesThe number of times the exact keyword or phrase appears in the page copy.
Total word countThe word count of the visible body content being checked.

The inputs explained

FieldWhat to enter
Times the keyword or phrase appearsCount how many times the keyword or phrase appears in the body copy, including headings.
Total word count of the pageThe total word count of the page or section being checked.

When to use it

Sanity-checking a draft before publishing

Running a finished draft through a density check flags copy that leans on one phrase far more heavily than natural writing would, before it goes live.

Comparing a page against competitors

Checking density on a handful of top-ranking pages for the same term shows roughly how often they mention it, as one small data point among many when planning a new page.

Avoiding over-optimisation

A page rewritten repeatedly to include a keyword can drift toward unnatural repetition without the writer noticing; a density check makes that drift visible.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How density changes with occurrences at a fixed word count

A fixed 1,200-word page, against a range of keyword occurrence counts.

1,200-word page
OccurrencesKeyword densityWords per occurrence, on average
30.250%400
60.500%200
121.00%100
181.50%67
242.00%50
363.00%33
Density rises in direct proportion to occurrences once the word count is fixed, and the average gap between mentions shrinks as the same page repeats the term more often.

How density changes with word count at a fixed number of occurrences

A fixed 12 occurrences, spread across a range of page lengths.

12 occurrences of the keyword
Total word countKeyword densityWords per occurrence, on average
4003.00%33
8001.50%67
1,2001.00%100
2,0000.600%167
3,0000.400%250
5,0000.240%417
The same 12 mentions produce a lower density on a longer page, since that word count is doing more of the surrounding work.

Questions

Is there an ideal keyword density?

No widely accepted figure exists, and search engines have never published one. Older guidance sometimes quoted 1-2% as a rough range, but modern ranking systems weigh relevance and context far more than a repetition count.

Can keyword density hurt a page?

An unnaturally high density is more a symptom than a cause: it usually means the copy has been written for a repetition count rather than for a reader, which can hurt readability and, in extreme cases, look like keyword stuffing to a search engine.

Should density be checked per keyword or per phrase?

Either is valid depending on what you are targeting. Checking an exact phrase gives a stricter figure than checking a single word, since a page can use related words and synonyms that a strict phrase count would miss entirely.

Does density matter more than good writing?

No. Writing that answers the query clearly, in language a person would actually use, generally serves both readers and rankings better than any density figure calculated after the fact.

For the length of the title that will represent this page in search results, see the title tag length checker. For the summary shown underneath it, see the meta description length checker.