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. The perfect keyword density will help achieve higher search engine positions. Consider the optimum keyword density to be 2 to 5 percent. Using high density of keyword could be considered as spam.