You will need 240,768 gold ores for 99 magic.
240,768 gold ore is 49,357,440gp
240,768 gold bars is 22,874,670gp
240,768 nature runes 57,062,016
Youll loose 83,544,786gp on 99.
You'd get 13,531,161 smithing xp also.
Hope this helps!
Whoops forgot to add natures let me add those in real quick.