The break-even point where buying beats renting typically takes four to seven years once you factor in closing costs, transaction costs, and the opportunity cost of your down payment. Rent without guilt if you’re likely to move within that window. The “renting is throwing money away” argument ignores the real costs of buying.

Source