If your shares were acquired at different times or at different prices and you cannot identify which shares you sold, use the basis of the shares you acquired first as the basis of the shares sold. In other words, the oldest shares you own are considered sold first. You should keep a separate record of each purchase and any dispositions of the shares until all shares purchased at the same time have been disposed of completely.