I'm using a single, successful (make it to the boss) dungeon run in a traditional adventure-around-the-world JRPG as a context for answering this. Obviously it's different in something like a one-dungeon
Azure Dreams-style RPG or an idle game.
I think 10 encounters is a good baseline average to start from. Think of the sum of battle time in your dungeon as a three-phase arc:
- The first few encounters you're discovering completely new stuff, and probably just trying to survive surprises
- The next few, you're working up mastery of how to exploit those enemies
- The final few you're expressing your mastery by easily taking most of them down
Put that entire arc together and you're working with about 10 encounters before the battles in that dungeon start to feel tired.
Different factors adjust what the ideal amount is:
- More than 2 wholly-new types of enemies - more encounters are appropriate (increases the length of the "discover new stuff" phase)
- All enemies are similar to ones seen before - fewer encounters are appropriate (decreases the length of the "discover" and "learn mastery" phases)
- Fewer than 4 total enemy types in the dungeon - fewer encounters are appropriate (ennui will set in quickly)
- More than 5 total troop formations - more encounters are appropriate (increases the length of the learn-mastery phase)
- Action Battle System - more encounters are appropriate (ABS's are more engaging and dynamically create different situations, increasing the length the express-mastery phase is satisfying)
- Tactical Battle System or Long Battles - fewer encounters are appropriate (these phases are more about time; when battles are longer, each phase completes in fewer battles)
- Player will need to visit (or attempt) this dungeon multiple times - fewer encounters are appropriate (on each subsequent run, only the first few battles will feel interesting)
Eternal Senia (an ABS with extremely breezy combat that lasted seconds and a huge variety of enemies in different combinations) felt great despite every single room having enemies that you need to kill. You might have to wipe 30
groups of enemies in a one-hour dungeon, yet it felt like the perfect amount.
Trails in the Sky (a Tactical Battle System with literally one or two enemy types in each dungeon) only threw you into about half a dozen battles per dungeon and that actually felt like too many - the first couple battles in each dungeon were quite fun but by the fourth, the sense of sameness would set in heavy.
Notably, it's easy to get lost in a lot of JRPG dungeons (especially in RPG Maker where the field of view is limited), so designers should always work that extra amount of time into their calculations when figuring out what the Encounter Rate should be. If you want 10 average encounters in your dungeon, a player who manages to hit the exact right path from beginning to end should end up in no more than 6.
Finally, a common question to ask here would be about balance - for example, if an enemy troop is draining 1/3 of my party's resources and there's no way to restore them mid-dungeon, shouldn't I have 3 encounters instead of 10? Balance is important, but I would handle it
after figuring out the number of Encounters (which is an important Pacing issue). If each of the 10 encounters is taking 1/3 of your party's resources, consider giving them three times the current amount of resources, or adding two Full-Restore points in your dungeon at the one-third and two-thirds checkpoints. Don't reduce the average encounters to 3 unless each encounter is also taking a very long time!