Expressed as a percentage, a debt-to-income ratio is calculated by dividing total recurring monthly debt by monthly gross income. Lenders prefer to see a debt-to-income ratio smaller than 36%, with no more than 28% of that debt going towards servicing your mortgage.