It’s not a secret that having a mortgage plus student loan debt is challenging, but with thorough planning and discipline, it’s possible. The keys to affording a mortgage while also paying off student debt include managing your debt-to-income ratio, reducing monthly payments, adjusting your student loan, and maintaining good credit. The actual amount of your student loan debt that will be factored into your debt-to-income ratio depends on the mortgage product.