Real estate agents suggest you stay in a house for 5 years to recoup costs and make a profit from selling. Before you put your house on the market, consider how your closing fees, realtor fees, interest payments and moving fees compare to the amount you have in equity.