)Under the code, long-term capital gains are gains from the sale or exchange of a capital asset held for more than one year, if and to the extent that such gain is considered when computing gross income.Long-term capital losses are those from the sale or exchange of a capital asset held for more than one year, if and to the extent that such losses are considered in computing taxable income.