A student loan counts as debt for a mortgage application, not as income. To calculate your debt to income ratio, add up all your monthly debt payments including your student loan. Divide it by your monthly income before taxes and convert the answer to a percentage.