Banks and lenders check a few different elements to determine how much you can borrow for your mortgage. These factors affect how much of a mortgage you can afford:
Annual gross income
Down payment size
Monthly living expenses and utilities
Credit rating
Personal debts
Property tax
Mortgage interest rate
So this means that the combination of these factors determines the size of the mortgage you can afford. The lender will take them all into account when calculating your mortgage loan.