Retirement tax questions

The real estate agent says she believes the house would have been appraised for at or above 145,000, the selling price of the home.  But then there were 17,000 in closing costs in expenses, which would result in a loss on Schedule D.