Usually, you get a credit or deduction that can only apply to future tax liability in the same category. Ex: Capital losses are stuck with capital gains in the USA and can only be applied to $3000 of your income per year otherwise. These rule systems are usually incredibly self-serving.