The debt-to-income ratio is the way mortgage lenders decide how much money you can afford to borrow. It is the percentage of your monthly gross income used to pay your monthly debts (not monthly living expenses). Two calculations are involved, a front ratio and a back ratio, written in ratio form, i.e., 33/38.
The first number indicates the percentage of your monthly gross income used to pay housing costs, such as principal, interest, taxes, insurance, mortgage insurance and homeowners’ association dues. The second number indicates your monthly consumer debt, such as car payments, credit card debt, installment loans, etc.
So a debt-to-income ratio of 33/38 means that 33 percent of your monthly gross income is used to pay your monthly housing costs, and 5 percent of your monthly gross income is used to pay your consumer debt—so your housing costs plus your consumer debt equals 38 percent.
33/38 is a common guideline for debt-to-income ratios. Depending on your down payment and credit score, the guidelines can be looser or tighter, and guidelines also vary according to program (e.g., Conventional, FHA, Owner Occupied, 2nd home, VA, investment).
It's essential that you like and trust your lender and that all your questions are answered. If you don't have an existing lender I can recommend one of several excellent ones with whom I routinely work.