Retirement tax questions

I have been reading that the IRS accepts the selling price as the cost basis if the sale occurred within the the year of the owner's passing.  With closing costs and  repairs, this would almost always result in a loss.  Is this true?  Thank you.