what form for sale of investment property

how do you know what IRS form to use of sale of investment real estate

Go to the IRS forms site and start with Pub 527
http://www.irs.gov/pub/irs-pdf/p527.pdf