Homebrewing a balanced 5e monster means getting its challenge rating right so encounters land at the difficulty you intend. This builder runs the Dungeon Master’s Guide method: a defensive CR from hit points and armour class, an offensive CR from damage and accuracy, averaged into a final number.
How it works
The DMG splits CR into two halves that are then averaged:
defensive CR = CR(hit points), shifted ±1 per 2 points AC away from expected
offensive CR = CR(damage/round), shifted ±1 per 2 points to-hit/DC away from expected
final CR = round( (defensive CR + offensive CR) / 2 )
Each side is looked up on the DMG’s “Monster Statistics by Challenge Rating” table, which pairs HP ranges and damage ranges with expected AC and attack values. The averaging stops a monster that is a glass cannon or an unkillable pillow from being rated purely on one extreme.
Example and tips
A monster with 130 HP, AC 15, 30 damage per round, and a +5 to-hit lands near CR 5. If you raise its AC well above the expected value for its HP, its defensive CR climbs and pulls the final CR up. Remember the table cannot see special abilities: flight, multiple legendary actions, or strong crowd control let a monster punch above its computed CR, so playtest and nudge the result to match real table performance.