Your real estate agent has information on lender loan requirements and will be able to calculate a rough monthly figure you can afford based on the maximum monthly payment for the loan, taxes, insurance, and any type of maintenance fees. This pre-purchase evaluation by the agent can save you a lot of time spent looking at properties you cannot afford.
Lenders also routinely calculate what you can afford and can pre-qualify you for a loan even before you begin your home search. This way, you know exactly how much you can afford to buy.
Lenders generally stipulate that you spend no more than 28% of your gross monthly income on a mortgage payment or 36% on total debts.
Ultimately, the price you can afford to pay for a home will also depend on other factors besides your gross income and outstanding debts. They include the amount of cash you have available for the down payment, your credit history, current interest rates, closing costs and cash reserves required by the lender, and the type of mortgage you select.