Two ratios, two questions
How the number is worked out
There are two versions of it. The housing-only ratio is the home payment divided by your monthly pay before tax. The total debt-to-income ratio (DTI) adds your other monthly debts on top, then divides by that same pay. Lenders care most about the total.
An example
Say you earn $120,000 a year. That is $10,000 a month before tax. A $2,500 home payment is 25% of it. Add $500 of car and card payments and you are at $3,000 a month, or 30%.
What it cannot tell you
DTI is one thing a lender looks at, not the whole decision. Your credit, your savings, the type of loan and the home itself all count. This tool does not say whether you will be approved.
Use the whole payment
Enter the full monthly cost of the home, not just loan and interest. Add property tax, home insurance, mortgage insurance and any association fee. Leave those out and the ratio looks better than it really is.