M.Attack vs Magical Damage

I have a potion that increases M.Attack and I noticed that the Magical Damage Sp-Parameter also exists. I don't understand the difference between the two. Should my potion increase just one or the other or should it increase both? What are the implications? Thanks
A magic attack stat is just a number and it is useless if you do not plan to use it in the formula. So it just sits there doing nothing.

Magic damage rate in the SP parameter modifies the damage output of a skill that is tagged as magical. If the target has a 50% magic damage rate and is damaged by a skill that is tagged as magical, they get half of the damage. In short, it is to increase either resistance or weakness to the target.
the two values are very different.

mat is a value that has no intrinsic function, but is referenced in the damage formulae of your skills.
as such you can use it wherever you want and give it whatever effect you want - including renaming it to something else and using it as something that has nothing to do with magic.

magic damage as the sp parameter however is applied to the total result of those damage formulae that have the setting HIT TYPE = MAGICAL ATTACK in their skill settings - and that setting affects a lot more.

Here is a link to the entire damage calculation process:
Thank you both for the quick response. I had no idea that M.Attack was such a manual parameter. I'll be sure to explicitly use it in formulas

Original thread: https://forums.rpgmakerweb.com/threads/m-attack-vs-magical-damage.142184/