The general rule of thumb is that you can buy a home that costs about two-and-one-half times your annual salary. Speak with an agent or a good lender who can determine how much you can afford, and estimate the maximum monthly payment based on the loan amount, taxes, insurance and other expenses.