The mortgage amount is not solely based on salary. Lenders consider a variety of factors when determining the mortgage amount, including credit score, debt-to-income ratio, down payment amount, and other financial factors. However, income is one of the factors that lenders consider when evaluating a borrower's ability to repay the loan.