The IRS spells out capital gains law in the U. S. Tax Code. Because of the complex nature of capital gains and tax filing in general, the advice of a tax professional is always a good idea.
The IRS can send you information on the subject. Better yet call up and speak to a professional. Make sure you call after the tax season when they will have more time to help you.