State tax filing

no, the 'cost basis' is the $300k + $40k LESS the depreciation that occurred during the time it was rented. 

 

if you did not depreciate it for tax purposes, RUN to a professional tax preparer to straighten this out!