Balancing stat curves?

Hello all! So, for my little project (Which I'll reveal once I have a certain mechanic figured out), I'm planning on having sequential encounters.

There will be 2-5 roaming monsters in each area, and 1-2 storyline battles. My thought was, since I know about how many fights the player will be engaged in, I can set experience for benchmarks so they're at the levels I want them at, when I want them at them.

The issue I'm having, as I'm designing the encounters, is mostly making it challenging without being outright impossible, but still give a sense of 'that was close' for bosses.. Like, for example, the fight I'm working on now, the enemy is vulnerable to a certain skill. If you spam that skill, you barely make it. I tweaked the attack and defense numbers on the enemy, and then I go into the curves for the character class (Just one right now, thank god, but eventually there will be two to balance) and I go "Huh-wha?"

...basically, what level of math do I need to be at to calculate the curve to use to keep it engaging for the player?
Basic algebra, or less. You're just working with addition/subtraction/multiplication/division mainly. A nice thing that helps is making use of Excel spreadsheets to make stat/damage tests easier. Otherwise just lots of Battle Tests.

Also working with lower numbers (and easier formulas) is easier too. (But that's up to designer preference to want high numbers or low numbers mainly)

Like instead of the default

a.atk*4 - b.def*2You can just use

a.atk*2 - b.defIt's the same thing but on a lower scale, lower numbers.
Oh, I think I see how I could use Excel to run numbers. Just various levels of attack vs defense and the damage output they give.

Alright, thank you for that. 
About stat curves: I usually prefer parabolic curves, since they make gaining a single level relevant throughout all the game.

If you use a linear growth for stats, it means that at the beginning gaining a level will be very important (your ATK will go, for example, from 10 to 15).

At the end, though, it will be barely noticeable (your ATK will go, for example, from 200 to 205).

Which... is not inherently bad, but is something that a lot of old RM games did without really thinking about it.

(At least, that's how it was with older makers. Now I'm using a custom way to level up, so I'm not sure)
One thing I have found since starting to balance my own encounters is that knowing what everything does is a detriment toward getting an accurate balance. If you have another person who can test the encounters for you, that is best.

Cozzer, that small increase can still have a massive impact if you set minimum stat requirements for weapons and/or armor throughout the game. If getting 205 ATK unlocks a weapon that gives an additional 15% to your ATK when equipped, that is essentially a 40 point increase and much closer to the parabolic curve.

Original thread: https://forums.rpgmakerweb.com/threads/balancing-stat-curves.23318/