If you have trouble calculating an accurate cost basis, there are great calculation applications online. One even has a unique Tax Optimization Tool to help you when you are selling so you can choose the sales methodology to declare that is most advantageous to you. You wouldn't think it makes much of a difference but in many cases it can make a HUGE difference so worth checking out. Just "google" the phrase and you'll find it. Good luck.