Gains or losses from investments are taxed differently depending on the type of investment.
For instance, gains from the sale of shares are taxed as share income, while capital gains on bonds are taxed as capital income—if they are taxed at all. Furthermore, there are many types of assets for which any potential gain is not taxed at all.
Deductions for investment losses are also handled differently, depending on the nature of the investment.