Vets start from the resting energy requirement (RER): the calories a pet burns at rest, worked out as 70 × body weight in kg to the power of 0.75. Daily needs are the RER multiplied by a factor for life stage and activity, such as 1.6 for a neutered adult dog or 1.2 for a neutered adult cat.
Find the energy content on your pet food’s label, usually as kcal per 100 g or per kg (divide kcal per kg by 10), and the calculator turns calories into grams a day. For weight loss it uses your pet’s target weight, which your vet can help you set.