Your Debt-to-Income (DTI) ratio is a critical financial metric used by lenders, especially mortgage companies, to measure your ability to manage monthly payments and repay borrowed money. It compares your total monthly debt obligations to your gross monthly income (your pay before taxes and deductions).
How to Calculate Your DTI Ratio
To calculate your DTI manually, you sum up all your monthly debt payments and divide that total by your gross monthly income. The formula is:
Lenders use this percentage to determine your risk level as a borrower. A lower DTI suggests you have a good balance between debt and income. Most conventional mortgage lenders prefer a DTI ratio of 36% or lower, though some programs like FHA loans may allow ratios up to 43% or even 50% in specific circumstances with compensating factors.
Understanding the Results
36% or Less (Ideal): You have a healthy debt load and are likely to qualify for the best interest rates.
37% to 43% (Good): Most lenders still consider this manageable, but you may have less flexibility in your monthly budget.
44% to 50% (High): You may struggle to find traditional financing and might need to look at specialized loan products.
Over 50% (Critical): Your debt consumes half your income. It is highly recommended to pay down debt before applying for new credit.
function calculateDTI() {
var grossIncome = parseFloat(document.getElementById('grossIncome').value);
var rent = parseFloat(document.getElementById('rentMortgage').value) || 0;
var car = parseFloat(document.getElementById('carLoans').value) || 0;
var student = parseFloat(document.getElementById('studentLoans').value) || 0;
var credit = parseFloat(document.getElementById('creditCards').value) || 0;
var other = parseFloat(document.getElementById('otherDebts').value) || 0;
var resultBox = document.getElementById('dti-result-box');
var scoreDisplay = document.getElementById('resScore');
var descDisplay = document.getElementById('resDescription');
if (!grossIncome || grossIncome <= 0) {
alert("Please enter a valid gross monthly income.");
return;
}
var totalDebt = rent + car + student + credit + other;
var dti = (totalDebt / grossIncome) * 100;
var dtiFixed = dti.toFixed(1);
resultBox.style.display = "block";
scoreDisplay.innerHTML = dtiFixed + "%";
resultBox.className = ""; // Reset classes
if (dti <= 36) {
resultBox.classList.add('status-excellent');
descDisplay.innerHTML = "Excellent! Your DTI is within the ideal range for most mortgage lenders.";
} else if (dti > 36 && dti <= 43) {
resultBox.classList.add('status-good');
descDisplay.innerHTML = "Good. You are within the standard limit for many loan programs, but lenders may look closer at your credit history.";
} else if (dti > 43 && dti <= 50) {
resultBox.classList.add('status-warning');
descDisplay.innerHTML = "High. You may find it difficult to qualify for a conventional mortgage. Consider paying down small balances.";
} else {
resultBox.classList.add('status-warning');
descDisplay.innerHTML = "Critical. Your debt levels are very high compared to your income. Lenders will see this as high risk.";
}
resultBox.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}