Use this calculator to estimate the maximum mortgage you can afford based on your income, debts, and desired loan terms. This tool provides an estimate and is not a guarantee of loan approval.
Understanding Mortgage Affordability
Determining how much mortgage you can afford is a crucial step in the home-buying process. Lenders typically use a combination of factors to assess your borrowing capacity, with the Debt-to-Income (DTI) ratio being a primary metric. Your DTI is the percentage of your gross monthly income that goes towards paying your monthly debt obligations.
Key Factors Explained:
Annual Income: This is your gross annual income before taxes and other deductions. Lenders use your gross income to calculate affordability.
Monthly Debt Payments: This includes all your recurring monthly debt obligations such as credit card payments, student loans, auto loans, and personal loans. It does NOT include your current rent or potential mortgage payment.
Down Payment: The upfront cash you pay towards the purchase price of the home. A larger down payment reduces the amount you need to borrow, thus lowering your monthly payments and potentially improving your loan terms.
Loan Term: The duration over which you will repay the mortgage loan, typically 15 or 30 years. A shorter loan term means higher monthly payments but less interest paid over the life of the loan.
Interest Rate: The annual percentage rate charged by the lender for borrowing money. This significantly impacts your monthly payment and the total cost of the loan.
Maximum Debt-to-Income Ratio (DTI): This is the threshold lenders use to determine affordability. A common guideline is that your total monthly debt payments (including the proposed mortgage payment) should not exceed 43% of your gross monthly income. Some loan programs may allow for higher DTIs.
How the Calculator Works:
This calculator first determines your maximum allowable total monthly debt payment based on your annual income and the maximum DTI you're willing to consider. It then subtracts your existing monthly debt payments to find the maximum monthly mortgage payment you can afford. Using standard mortgage payment formulas (considering loan term and interest rate), it then estimates the maximum loan amount you can borrow. Finally, it adds your down payment to this loan amount to estimate your total affordable home price.
Example:
Let's say you have an Annual Income of $80,000, existing Monthly Debt Payments of $500, a planned Down Payment of $40,000, you're considering a 30-year Loan Term, an Interest Rate of 6.5%, and a Maximum DTI of 40%.
Gross Monthly Income: $80,000 / 12 = $6,666.67
Maximum Total Monthly Debt: $6,666.67 * 0.40 = $2,666.67
Maximum Monthly Mortgage Payment: $2,666.67 – $500 = $2,166.67
Estimated Maximum Loan Amount: Using a mortgage payment formula for $2,166.67 monthly payment, 30 years, 6.5% interest, the maximum loan amount is approximately $340,000.
Estimated Maximum Home Price: $340,000 (Loan Amount) + $40,000 (Down Payment) = $380,000
Based on these figures, you could potentially afford a home around $380,000.
function calculateMortgageAffordability() {
var annualIncome = parseFloat(document.getElementById("annualIncome").value);
var monthlyDebt = parseFloat(document.getElementById("monthlyDebt").value);
var downPayment = parseFloat(document.getElementById("downPayment").value);
var loanTerm = parseInt(document.getElementById("loanTerm").value);
var interestRate = parseFloat(document.getElementById("interestRate").value);
var maxDTI = parseFloat(document.getElementById("maxDTI").value);
var resultDiv = document.getElementById("result");
resultDiv.innerHTML = ""; // Clear previous results
if (isNaN(annualIncome) || annualIncome <= 0 ||
isNaN(monthlyDebt) || monthlyDebt < 0 ||
isNaN(downPayment) || downPayment < 0 ||
isNaN(loanTerm) || loanTerm <= 0 ||
isNaN(interestRate) || interestRate <= 0 ||
isNaN(maxDTI) || maxDTI 100) {
resultDiv.innerHTML = "Please enter valid numbers for all fields.";
return;
}
var monthlyIncome = annualIncome / 12;
var maxTotalMonthlyDebt = monthlyIncome * (maxDTI / 100);
var maxMonthlyMortgage = maxTotalMonthlyDebt – monthlyDebt;
if (maxMonthlyMortgage 0) {
maxLoanAmount = maxMonthlyMortgage * (Math.pow(1 + r, n) – 1) / (r * Math.pow(1 + r, n));
} else { // Handle 0% interest rate, though highly unlikely for mortgages
maxLoanAmount = maxMonthlyMortgage * n;
}
var estimatedMaxHomePrice = maxLoanAmount + downPayment;
resultDiv.innerHTML = "
" +
"
Estimated Mortgage Affordability
" +
"Gross Monthly Income: $" + monthlyIncome.toFixed(2) + "" +
"Maximum Total Monthly Debt Allowed (at " + maxDTI + "% DTI): $" + maxTotalMonthlyDebt.toFixed(2) + "" +
"Maximum Monthly Mortgage Payment You Can Afford: $" + maxMonthlyMortgage.toFixed(2) + "" +
"Estimated Maximum Loan Amount: $" + maxLoanAmount.toFixed(0) + "" +
"Estimated Maximum Home Price (Loan + Down Payment): $" + estimatedMaxHomePrice.toFixed(0) + "" +
"This is an estimate. Actual loan approval depends on lender's specific criteria, credit score, and other factors." +
"