Skip to main content

Assessments: Keyphrase density

The Keyphrase density assessment checks whether the (content) words from the keyphrase are used in the text, and whether they are used often enough (but not too often). For a match, all content words should occur in one sentence. Multiple occurrences of all content words within one sentence count as multiple matches.

Keyphrase density
Name in codeKeyphraseDensityAssessment
Title URLhttps://yoa.st/33v
Call to action URLhttps://yoa.st/33w
When it appliesAlways.
ProductYoast SEO (Free)
Content typesWordPress: posts and pages, taxonomies, products (WooCommerce SEO)
Shopify: products, collections, blog posts and pages
Google Docs: documents
Related keyphrases✅
Uses synonyms❌
LanguagesAll languages
Cornerstone❌ Same scoring
Uses highlighting✅ When the keyphrase is found
Uses morphology (Premium)✅ The boundaries are higher when multiple word forms are matched.

Scoring​

kd is the keyphrase density, adjusted for the length of the keyphrase:

kd = ( number of keyphrase matches / number of words in the text ) * 100 * ( 0.7 + keyphrase length / 3 )

The keyphrase length is the number of (content) words in the keyphrase. Because of this factor, a longer keyphrase needs fewer matches for the same kd. For example, a match of a 3-word keyphrase counts 1.7 times, and a match of a 1-word keyphrase counts about 1.03 times.

Traffic lightScoreCriterionFeedback
Red-50No keyphrase and/or contentKeyphrase density: Please add both a keyphrase and some text containing the keyphrase.
Red4Keyphrase not found in contentKeyphrase density: The keyphrase was found 0 times. That's less than the recommended minimum of X times for a text of this length. Focus on your keyphrase!
Texts 100+ words
Red-50kd > 4Keyphrase density: The keyphrase was found X times. That's way more than the recommended maximum of X times for a text of this length. Don't overoptimize!
Red-103 < kd ≤ 4 (3.5 < kd ≤ 4 for multiple word forms)Keyphrase density: The keyphrase was found X times. That's more than the recommended maximum of X times for a text of this length. Don't overoptimize!
Red40 < kd < 0.5, or the keyphrase is found only onceKeyphrase density: The keyphrase was found X times. That's less than the recommended minimum of X times for a text of this length. Focus on your keyphrase!
Green90.5 ≤ kd ≤ 3 (0.5 ≤ kd ≤ 3.5 for multiple word forms), or the keyphrase is found twice and the recommended minimum (see below) is 2Keyphrase density: The keyphrase was found X times. This is great!
Texts 51-99 words
Red-50Keyphrase found 4+ timesKeyphrase density: The keyphrase was found X times. That's way more than the recommended maximum of X times for a text of this length. Don't overoptimize!
Red-10Keyphrase found 3 timesKeyphrase density: The keyphrase was found X times. That's more than the recommended maximum of X times for a text of this length. Don't overoptimize!
Green9Keyphrase found 1-2 timesKeyphrase density: The keyphrase was found X times. This is great!
Texts < 51 words
Red-50Keyphrase found 3+ timesKeyphrase density: The keyphrase was found X times. That's way more than the recommended maximum of X times for a text of this length. Don't overoptimize!
Red-10Keyphrase found 2 timesKeyphrase density: The keyphrase was found X times. That's more than the recommended maximum of X times for a text of this length. Don't overoptimize!
Green9Keyphrase found onceKeyphrase density: The keyphrase was found 1 time. This is great!

For texts of 100 words or more, the feedback shows a recommended minimum and maximum number of matches. They come from the kd boundaries above:

  • Recommended minimum = round up ( 0.5 * number of words / ( 100 * ( 0.7 + keyphrase length / 3 ) ) ), but at least 2.
  • Recommended maximum = round down ( 3 * number of words / ( 100 * ( 0.7 + keyphrase length / 3 ) ) ), but at least 2. With multiple word forms, 3.5 is used instead of 3.

So the recommended minimum goes up in steps as the text gets longer. The step size depends on the keyphrase length, not on the text length:

Keyphrase lengthOne more match needed every
1 wordabout 207 words
2 wordsabout 273 words
3 words340 words

For example, a 1-word keyphrase needs at least 2 matches in a text of up to 413 words, and 3 matches in a text of 414 to 619 words.

See recommendedKeywordCount.js and keyphraseLengthFactor.js.