It is the measure of occurrence of a particular keyword in the content. In simple words, it is the number of a particular keyword per hundred words.
Formula for keyword density = (Number of Times a Keyword appears * 100) /Total number of words.
If we are talking about 1-2% of keyword density in our article. It means our keyword should appear 1-2 times per 100 words.