The only penalty of dying is loosing some gold and having 0 hp until it recharges. You do not lose gold until you are past level 5.

The formula for how much gold is lost is:

((Level - 5)^2)*10

If the number is negative (any time level is less than five) no gold is lost.