First, the bad news: your student loans will affect your ability to get a mortgage. The good news is it’s still quite possible to get a mortgage even if you have student loans. It just depends on your situation.

Factors That Affect Your Mortgage Approval

Your student loans will affect your mortgage in a few different ways. Here are the main things you’ll need to think about:

Debt-to-Income Ratio

Lenders set maximum limits for what your monthly mortgage payment can be based on what percent of your income goes toward debt payments (the mortgage included). This is known as the back-end, or total, debt-to-income (DTI) ratio. From there, they back-calculate to see how big a loan you can take out responsibly. In most cases, you’re limited to a DTI ratio of around 43%, although the specifics vary by loan type. You can use this to calculate how much mortgage you might qualify for. For example, if your gross monthly income is $5,000, you’ll need to keep all of your debt payments combined under $2,150 ($5,000 x 0.43). If you make a $150 student loan payment each month, that means you can afford a $2,000 monthly mortgage. Plug your details into a mortgage calculator to see how big a loan—that is, how much home you can buy—to remain under this threshold.

Credit Score

Your student loan can also affect your credit score. If you’ve been making all of your payments on time, that could increase your score. If you’ve missed payments, doing so could decrease it. Lenders also generally have minimum credit score requirements when you apply for a mortgage as well.

Student Loan Requirements for Various Types of Loans

In general, your student loans will have the biggest impact on your DTI ratio, which dictates how large a loan you can get. Here are the maximum back-end DTI ratios for the most common types of loans. Fannie Mae has a few ways to handle loans that you’re not repaying on a normal schedule. If you’re on an income-driven plan with a $0 payment shown on your credit report, good news: That loan won’t be factored into your DTI at all. If your loans are in forbearance or deferment, Fannie Mae calculates your payments as either 1% of your outstanding loan amount per month ($1,000 on a $100,000 loan, for example) or the actual, normal payment if you can provide documentation to your lender.

Freddie Mac

Freddie Mac uses a different calculation if you’re paying off your student loans on a different schedule. In that case, it will calculate your monthly payment as the greater of:

0.5% of your current loan balance (1% if your loans are in deferment or forbearance) 0.5% of your original loan balance (1% if your loans are in deferment or forbearance) Whatever’s currently listed on your credit report

FHA Loans

The rules for how student loan payments for Federal Housing Administration (FHA) loans work were recently relaxed. Previously, your student loan payments were calculated as whatever was listed on your credit report, or 1% of your loan balance, whichever was greater. But as of June 2021, it’s either the amount listed on your credit report (if it’s above $0) or 0.5% of your loan balance (if it’s listed as $0 on your credit report). This swings things in your favor if you’re not currently making payments on your loans. This effectively halves the “monthly payment” that lenders use to calculate your DTI and qualify you for a loan.

VA Loans

The Veterans Affairs (VA) bureau won’t use a monthly payment for student loans if you can show that the debt will be deferred for at least a year beyond when you close on the loan. If not (and that’s most of us), your lender will either use what’s listed on your credit report or 5% of your loan balance, divided by 12.

USDA Loans

If you’re on a fixed repayment plan, your lender will either use your current payment or 1% of your loan balance when offering a U.S. Department of Agriculture (USDA) mortgage. If your payment amount might change each year (such as with an income-driven plan), your lender will use 0.5% of your loan balance as your payment for the DTI calculations.

How To Qualify for a Mortgage With Student Loans

Having student loans while you’re buying a home can put a bit of a damper on what type of home you can get. However, student loans don’t completely restrict your ability to afford a home or qualify for a mortgage. If you seek out a good mortgage advisor, they’ll be able to help you figure out what type of mortgage fits you best and how that fits into your overall financial life. You might even want to take a step back and look at your home buying goals in the context of your finances as a whole. A general financial advisor may be able to help you identify ways to come up with extra money to afford a bigger down payment. They can also recommend money management strategies that can put you in a better position to buy a house in a year or two. You should also consider the natural ups and downs of the housing market. If you try to buy a home in a seller’s market, you’ll have a lot of competition. If home prices are in the middle of a boom, you may be better off waiting for the market to cool off a little.