If you are killed, your character will lose a percentage of the total gold both carried and stored in the Stash. This percentage is equal to your character's level but will not exceed 20%. After this 'death penalty' is deducted, the remaining gold your character was carrying falls to the ground in a pile. If the penalty exceeds the amount of gold you were carrying, the remainder of the penalty is deducted from your Stash.