Calculate the capital gains taxes you may need to pay or the tax advantages that may help if you sell stocks at a loss. A capital gain is any profit from the sale of a stock, and it has unique tax ...