Your Debt-to-Income (DTI) ratio is one of the most critical metrics lenders use to assess your financial health. It represents the percentage of your gross monthly income that goes toward paying your monthly debt obligations. A lower DTI ratio demonstrates to lenders that you have a good balance between debt and income.
Why DTI Matters for Mortgages and Loans
When you apply for a mortgage, car loan, or personal loan, lenders want to know if you can afford the monthly payments.
Most mortgage lenders prefer a DTI ratio lower than 36%, with no more than 28% of that debt going towards servicing your mortgage or rent.
Gross Monthly Income: Your income before taxes and deductions.
Total Monthly Debt: Includes rent/mortgage, minimum credit card payments, student loans, car loans, and other regular debt obligations. It generally does not include utilities, groceries, or taxes.
Interpreting Your Results
Under 35%: Excellent. You have manageable debt and likely qualify for the best interest rates.
36% – 42%: Manageable, but lenders may scrutinize your application. You may want to pay down some debt before applying for a large loan.
43% – 49%: Concerned. You may struggle to find a lender for a qualified mortgage.
50% or higher: Critical. You are spending half your income on debt. It is highly recommended to seek debt relief strategies or increase income.
function calculateDTI() {
// 1. Get input values using 'var'
var incomeInput = document.getElementById('grossMonthlyIncome');
var mortgageInput = document.getElementById('monthlyRentMortgage');
var carInput = document.getElementById('carLoans');
var studentInput = document.getElementById('studentLoans');
var creditCardInput = document.getElementById('creditCards');
var otherDebtInput = document.getElementById('otherDebt');
// 2. Parse values, defaulting to 0 if empty
var income = parseFloat(incomeInput.value);
var mortgage = parseFloat(mortgageInput.value) || 0;
var car = parseFloat(carInput.value) || 0;
var student = parseFloat(studentInput.value) || 0;
var creditCard = parseFloat(creditCardInput.value) || 0;
var other = parseFloat(otherDebtInput.value) || 0;
// 3. Validation
if (isNaN(income) || income <= 0) {
alert("Please enter a valid Gross Monthly Income greater than 0.");
return;
}
// 4. Calculate Total Monthly Debt
var totalMonthlyDebt = mortgage + car + student + creditCard + other;
// 5. Calculate DTI Ratio
var dtiRatio = (totalMonthlyDebt / income) * 100;
// 6. Determine Status
var statusText = "";
var statusClass = "";
var explanation = "";
if (dtiRatio = 36 && dtiRatio = 43 && dtiRatio < 50) {
statusText = "High Risk";
statusClass = "status-danger";
explanation = "A DTI above 43% makes it difficult to qualify for a standard mortgage. Lenders may require a co-signer or proof of significant assets.";
} else {
statusText = "Critical";
statusClass = "status-danger";
explanation = "Your debt payments consume more than half of your income. Focus on aggressive debt repayment or income generation strategies.";
}
// 7. Display Results
var resultContainer = document.getElementById('dtiResult');
var percentageDisplay = document.getElementById('dtiPercentage');
var statusDisplay = document.getElementById('dtiStatus');
var explanationDisplay = document.getElementById('dtiExplanation');
percentageDisplay.innerHTML = dtiRatio.toFixed(2) + "%";
// Update Status Badge
statusDisplay.innerHTML = statusText;
statusDisplay.className = "dti-status-badge " + statusClass;
explanationDisplay.innerHTML = "Total Monthly Debt: $" + totalMonthlyDebt.toFixed(2) + "" + explanation;
resultContainer.style.display = "block";
}