There is also a method to find out how much percentage long-term capital gain you have made. In such a case, the following formula can be used.
Total Yield (-) Total Investment/Investment
Well that was that. While filling up your form 1040, you too, would have to include the long-term gains in it, if you have any, as a declaration to the IRS.