The difficulty of a combat encounter is determined by the Experience Point (XP) threshold system outlined in the Dungeon Master's Guide. This system compares the total XP of the monsters against the combined threshold values of your party members across four categories: Easy, Medium, Hard, and Deadly.