Investors & landlords

If the broker doesn't report the cost basis on your 1099B for the sales you will have to enter the cost yourself.  Do you have records or statements of what you paid?  Did you reinvest any dividends or capital gains over the years?  Those will add to the cost to reduce your gain.  So don't forget to add them back in.  A reinvested dividend is really two transactions,  a dividend and a buy.  You bought more shares.