To calculate protein density, all you need to do is divide the total protein count in grams by the total calories, then take this sum and divide it by 100. This score shows the protein density or the percentage of protein relative to the total calories per serving. The higher the number, the better.