Buy for the long-term.
There are a lot of costs associated with purchasing a home. They are definitely worth paying if you plan to live in the home for a period of years. But if you think you might want to move soon, buying will actually wind up costing you more than renting. A general rule of thumb is that it takes at least three years to recoup your costs. Most Realtors will tell you that you should plan to live in your home for at least five years after you buy.