Ending the Encounter
RuleYou can decide a fight is over if there's no challenge left and the player characters are just cleaning up the last few weak enemies. However, avoid doing this if any of the players still have inventive and interesting things they want to try or spells they're concentrating on—ending an encounter early is a tool to avoid boredom, not to deny someone their fun. You can end a fight early in several ways: the foes can surrender, an adversary can die before its Hit Points run out, or you can simply say the battle is over and that the PCs easily dispatch their remaining foes. In this last case, you might ask, “Is everyone okay if we call the fight?” to make sure your players are on board.
One side might surrender when almost all its members are defeated or if spells or skills thoroughly demoralize them. Once there's a surrender, come out of initiative order and enter a short negotiation. These conversations are really about whether the winners will show mercy to the losers or just kill or otherwise get rid of them. The surrendering side usually doesn't have much leverage in these cases, so avoid long back-and-forth discussions.