These are the costs from end of era 44 with era 45 rules for science.
Note that if you are one of the first few to reach a new level, it will cost more.
Magic Level
Level 0
Upgrading will cost 0 gold, 0 stone, 0 tree and 0 food.
Magic Level
Level 1
Upgrading will cost 33,750 gold, 3,000 stone, 3,000 tree and 3,000 food.
Magic Level
Level 2
Upgrading will cost 101,250 gold, 9,000 stone, 9,000 tree and 9,000
food.
Magic Level
Level 3
Upgrading will cost 303,750 gold, 27,000 stone, 27,000 tree and 27,000
food.
Magic Level
Level 4
Upgrading will cost 933,750 gold, 83,000 stone, 83,000 tree and 83,000
food.
Magic Level
Level 5
Upgrading will cost 2,846,250 gold, 253,000 stone, 253,000 tree and
253,000 food.
Magic Level
Level 6
Upgrading will cost 8,651,250 gold, 769,000 stone, 769,000 tree and
769,000 food.
Magic Level
Level 7
Upgrading will cost 26,201,250 gold, 2,329,000 stone, 2,329,000 tree and
2,329,000 food.
Magic Level
Level 8
Upgrading will cost 79,380,000 gold, 7,056,000 stone, 7,056,000 tree and
7,056,000 food.
Magic Level
Level 9
Upgrading will cost 240,637,500 gold, 21,390,000 stone, 21,390,000 tree
and 21,390,000 food.