How to calculate capital gains on a stock sale — what actually goes into the number?
Sold shares of a company I'd held for a while and my brokerage sent a 1099-B but I'm honestly not sure I trust the cost basis number they're showing. When I bought in, some shares were purchased through dividend reinvestment and some were bought outright at different times. The 1099-B shows a proceeds number and a cost basis, but I don't know if that's right or how to verify it myself. I've looked at my old trade confirmations and the numbers don't quite match what the brokerage is showing. I'm trying to figure out how to calculate capital gains on this stock sale before I just plug the 1099-B numbers into my return. Do I use the 1099-B as-is, or can I correct it? And does it matter that some of the shares are over a year old and some aren't?