Yes. The specific identification method allows you to use the cost basis of the shares you sell to figure your gain or loss. FIFO, or first-in, first-out, is the default method for figuring basis if you do not instruct your broker or agent to use the specific identification method. You can override FIFO at any time buy giving directions to your broker; get a written confirmation that you are using the specific identification method.
Items, such as interest, state and local income and sales taxes, charitable contributions, and medical deductions, claimed on Schedule A of Form 1040. Itemized deductions are subtracted from adjusted gross income to arrive at taxable income. The amount of itemized deductions is also subject to a reduction when adjusted gross income exceeds certain limits.