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.
Many SEO experts consider the optimum keyword density to be 1 to 3 percent. Using a keyword more than that could be considered search spam. The formula to calculate your keyword density on a web page for SEO purposes is ( N k r / T k n ) ∗ 100 {\displaystyle (Nkr/Tkn)*100} {\displaystyle (Nkr/Tkn)*100}, where Nkr is how many times you repeated a specific keyword and Tkn the total words in the analyzed text.
Many SEO experts consider the optimum keyword density to be 1 to 3 percent. Using a keyword more than that could be considered search spam. The formula to calculate your keyword density on a web page for SEO purposes is ( N k r / T k n ) ∗ 100 {\displaystyle (Nkr/Tkn)*100} {\displaystyle (Nkr/Tkn)*100}, where Nkr is how many times you repeated a specific keyword and Tkn the total words in the analyzed text.