Keyword Density is the total number of times a keyword appears in the content on the page. The density is interpreted as the total number of target keywords plus secondary and LSI keywords used in the content. One of the most common questions about keyword density is the ideal keyword density percentage per page.
Keyword Density = (Nkr / Tkn) x 100
KR = how many times you repeated a key-phrases
NWK = number of words in your key-phrases
TW = total words in the analyzed text
Although there is no defined score for ideal keyword density, industry practices are 2% keyword density per 100 words and avoid shortcuts like keyword stuffing to gain higher rankings.