The lender considers your debt-to-income ratio, which is a comparison of your gross (pre-tax) income to housing and non-housing expenses plus your stress test for long term affordability. Non-housing expenses include such long-term debts as car or student loan payments, alimony, or child support. The lender also considers cash available for down payment and closing costs, credit history, etc. when determining your maximum mortgage amount.