Keyword density (SEO) (%) is the percentage of times a keyword or key phrase appears on a web page in comparison with the total number of words on the page
To get keyword density divide the number of times specific used keyword by the total number of words in the text and multiply the result by 100 to achieve your percentage.
The keyword density is the number of times the keyword appears in text divided by the total number of words. Thanks