How many enemies per dungeon is a good number

Just seeking people's opinions. This is something I've been placed in charge of and we're using onscreen enemies so I thought I would ask people their opinion on what number is best in their mind and how they decide these things?
That really depends on the rest of the game. Like, how long is each battle, how strong is the party and how common are healing items/spells.

I also think dungs at the beginning should be easier to clear then dungs at the end of the game.
My reply begins, as you'd expect, "It all depends..."

In addition to what John Doe has mentioned:

I take into account the size of the dungeon - the size of the individual maps as well as the number of them.

Then there is the question of how, if at all, the enemies respawn. After x amount of time? When you change maps? Only some of them or all of them? Only when you leave the dungeon? You need to think about that because if they can respawn while the player is still in the dungeon, then you have to consider how much backtracking there is likely to be.

Obviously the size of the troop matters. 10 troops of 3 enemies each vs 8 troops of 4, for example.

What level do you expect the player to be at the beginning of the dungeon and what do they need to be to beat the dungeon boss at the end?

There are many factors to balance up.
A long time ago, I went and did an "average" of encounters across multiple dungeons and RPGs. Basically, a "How many battles does a player usually engage in per dungeon?" question.

At the time, it was ABOUT 30 to 35 battles per dungeon. Roughly 1-5 per room, depending on room size. This even counted "backtracking" through rooms.

Whether that number is still accurate like... 5+ years later? No idea.
to add to that already mentioned "it depends"

is it a story driven game or a combat / dungeon exploring focus gameplay
i know some realy good story driven games, that focus more on the exploration and puzzle solving aspects of gameplay ... and thus have little to none real combat or only in a few places

also, it depends on the lenght (not size, but playing time, yo want the player to spend in your dungeon) and the fun/rewards (be it a good story or "i gonna get stronger") the player can get out of it ... higher reward = more and stronger enemies ... at least, that's how i'd see it
As many as you can feasibly make without having each enemy feel the same. I have never heard someone say "This game had too much variety in their monster designs"
In addition to what has already been said, I will just add that I don't think there is really any sort of right or magic answer to this since I think this mostly boils down to player preference.

As the game designer, I would put as many enemies as I think works for the location, considering all of the previously mentioned factors. Maybe there are location where I want the player to feel overwhelmed versus locations where I want them to breath easier for a moment.

As a player, I have certain preferences that probably don't match those of many other players. So what might seem like too few enemies for me might feel like too many enemies for someone else.

That probably doesn't help any, but those are just my additional thoughts.
Honest if you are using an ABS system i would limit the amount, at least on the same map. to many can cause latency issues. But also I wouldnt personally mob a character all the way through if you actually want them to spend time exploring especially if the monsters respawn. Personally i opted to have monsters appear more in areas that are closer to boss rooms, save points, or important points. At least intelligent ones. And base others of the ecology in my game. Like flame slimes are more common in areas of heat, and their nest closer to areas that vary in temperature extremes. Shroom monsters more where decay is common. Maybe a nest in decaying corpse or tree.
A lot to think about. I wonder if I can find the answer that best works for our game.
Play test.

Play through the dungeon several times. Does the trek get tedious? Does the trek seem too fast and easy? Your own impressions are going to be the first data point in your journey to optimize the experience.

Play test.
That probably doesn't help any, but those are just my additional thoughts.
oh, it actually helps

becouse it leads to a continue of youre thought:
the game designer could make the number, he feels right
and give the player the possibility to raise/lower the numbers via difficulty settings
Like others said, it depends, but let's say in generic RPG random encounter context, I would like to have it as less as possible. at least most classic RPG that I know of, acquire backlash on how horrible their encounter count was in the dungeon / world map.

I would say at best, each one for enemy group you have, so it doesn't feel repetitive.

I think it's easier to go wrong with "too much encounter" rather than "less encounter"
Three factors play into this:

How long do you want the dungeon to be
How much of it should be combat
What percentage of enemies are players supposed to fight?

So basically:

Length of Dungeon* percentage of time spent in combat= Time in combat
Time in combat/Combat length = Number of encounters
Number of Encounters/Percentage supposed to be fought=Amount of encounters Placed

So if you want the dungeon to be 30 minutes and half of that to be combat, then you need 15 minutes of combat. Let's say each battle takes 1 minute, so now you have 15 combats.
You assume the player only engages about half the enemies, so then you know you have to place 30 enemies.

Other factors:
How many of the encounters are unavoidable?
How many are along the critical path?
Do they respawn?
Does the player have to backtrack through monster spawns?
Is the player encouraged to farm or grind?
Around 2-5 encounters per 50x50 to 75x75 map size. Give or take.
I don't care about the context, I just want to throw numbers.

Original thread: https://forums.rpgmakerweb.com/threads/how-many-enemies-per-dungeon-is-a-good-number.146339/