Access the NEW Basecamp Support Portal

Keyword density

« Back to Glossary Index

Definition and Importance of Keyword Density
– Keyword density is the percentage of times a keyword or phrase appears on a web page compared to the total number of words on the page.
– It is used in search engine optimization (SEO) to determine the relevance of a web page to a specific keyword or keyword phrase.
– In the late 1990s, keyword density was an important factor in page ranking.
– Webmasters discovered how to implement optimum keyword density, leading search engines to prioritize other factors.
– Overusing keywords, known as keyword stuffing, can result in penalties for a web page.

Calculation of Keyword Density for Single Keyword
– The formula to calculate keyword density for a single keyword on a web page is (Nkr/Tkn)*100.
– Nkr represents the number of times the keyword is repeated on the page.
– Tkn represents the total number of words in the analyzed text.
HTML tags and other embedded tags should be ignored when calculating keyword density.
– The result of the calculation is the keyword density value.

Calculation of Keyword Density for Keyword Phrase
– To calculate keyword density for a keyword phrase, the formula is (Nkr*Nwp/Tkn)*100.
– Nwp represents the number of words in the phrase.
– For example, a four-hundred word page with the phrase ‘search engine optimization’ used four times would have a keyword phrase density of 3%.
– The calculation considers the frequency of the phrase within the text.
– Keyword phrases consisting of multiple terms should be treated as a single appearance.

Mathematical Viewpoint of Keyword Density
– From a mathematical viewpoint, keyword density refers to the frequency of appearance of a keyword in a dissertation.
– Keyword phrases with multiple words artificially inflate the total word count.
– The purest mathematical representation adjusts the total word count by removing excess key(phrase) word counts.
– The adjusted formula for keyword density is (Nkr / (Tkn – (Nkr * (Nwp-1)))) * 100.
– Nwp represents the number of terms in the keyphrase.

Related Concepts
– Dynamic Keyword Insertion is a technique used in online advertising to dynamically insert keywords into ad copy.
– References for further reading on keyword density can be found in academic publications like ‘Computational Science and Its Applications – ICCSA 2010: International Conference, Fukuoka, Japan, March 23-26, 2010, Proceedings.’
– The formula (Nkr * Nwp / Tkn) * 100 is sometimes used to calculate keyword density.
– The Wikipedia page on keyword density provides additional information and can be accessed at https://en.wikipedia.org/w/index.php?title=Keyword_density&oldid=1184676541.
– Keyword density is a concept within the field of search engine optimization (SEO).

Keyword density (Wikipedia)

Keyword density is the percentage of times a keyword or phrase appears on a web page compared to the total number of words on the page. In the context of search engine optimization, keyword density can be used to determine whether a web page is relevant to a specified keyword or keyword phrase.

In the late 1990s, the early days of search engines, keyword density was an important factor in page ranking. However, as webmasters discovered how to implement optimum keyword density, search engines began giving priority to other factors beyond the direct control of webmasters. Today, the overuse of keywords, a practice called keyword stuffing, will cause a web page to be penalized.

The formula to calculate your keyword density on a web page for SEO purposes is , where Nkr is how many times you repeated a specific keyword, and Tkn the total words in the analyzed text. The result is a keyword density value. When calculating keyword density, ignore html tags and other embedded tags which will not appear in the text of the page once published.

When calculating the density of a keyword phrase, the formula would be , where Nwp is the number of words in the phrase. So, for example, for a four-hundred word page about search engine optimization where "search engine optimization" is used four times, the keyword phrase density is (4*3/400)*100 or 3 percent.

From a mathematical viewpoint, the original concept of keyword density refers to the frequency (Nkr) of appearance of a keyword in a dissertation. A "keyword" consisting of multiple terms, e.g. "blue suede shoes," is an entity in itself. T frequency of the phrase "blue suede shoes" within a dissertation drives the key(phrase) density. It is "more" mathematically correct for a "keyphrase" to be calculated just like the original calculation, but considering the word group, "blue suede shoes," as a single appearance, not three:

Density = ( Nkr / Tkn ) * 100.

'Keywords' (kr) that consist of several words artificially inflate the total word count of the dissertation. The purest mathematical representation should adjust the total word count (Tkn) lower by removing the excess key(phrase) word counts from the total:

Density = ( Nkr / ( Tkn -( Nkr * ( Nwp-1 ) ) ) ) * 100. where Nwp = the number of terms in the keyphrase.

« Back to Glossary Index

Request an article

Please let us know what you were looking for and our team will not only create the article but we'll also email you to let you know as soon as it's been published.
Most articles take 1-2 business days to research, write, and publish.
Content/Article Request Form

Submit your RFP

We can't wait to read about your project. Use the form below to submit your RFP!
Request for Proposal

Contact and Business Information

Provide details about how we can contact you and your business.


Quote Request Details

Provide some information about why you'd like a quote.