Since you didn't live in the house as your main home for two of the last five years, you will need to report the sale on your tax return if you had a gain on the sale of it. The gain is calculated by subtracting the cost plus improvements of the house from the sale proceeds.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"