Get your taxes done using TurboTax

Alternatively, if your cost basis in the Aetna shares was $100, you would take $100 cash free, $45 is a long term capital gain, and your cost basis in the new CVS shares is 0.

[Edited: this is incorrect, see below.]