A balanced D&D 5e encounter spends a clear XP budget against your party’s level and the difficulty you want — Easy, Medium, Hard, or Deadly — then fills that budget with monsters whose Challenge Ratings (and group multipliers) match the scene.
This guide walks through XP thresholds by party level, how CR maps to XP, when multi-monster fights get harder than the raw total suggests, how many fights to plan per adventuring day, and how to pair combat math with terrain and story. When you want the budget filled instantly, open the free 5e encounter generator, set party level (1–20) and difficulty, and review monsters, individual XP, total XP, and a random environment.
Edition and table rules differ. Treat DMG-style thresholds as a starting point; adjust for magic items, optimized parties, and house rules before you stake a character’s life on the dice.