function calculateHomeEquity() {
var homeValue = parseFloat(document.getElementById('homeValue').value);
var mortgageBalance = parseFloat(document.getElementById('mortgageBalance').value);
var ltvLimit = parseFloat(document.getElementById('ltvLimit').value) / 100;
var interestRate = parseFloat(document.getElementById('interestRate').value) / 100 / 12;
var loanTermYears = parseFloat(document.getElementById('loanTerm').value);
var loanTermMonths = loanTermYears * 12;
if (isNaN(homeValue) || isNaN(mortgageBalance) || isNaN(ltvLimit) || isNaN(interestRate)) {
alert("Please enter valid numerical values.");
return;
}
// Calculation Logic
var maxBorrowingCapacity = homeValue * ltvLimit;
var maxLoanAmount = maxBorrowingCapacity – mortgageBalance;
if (maxLoanAmount <= 0) {
document.getElementById('maxLoanOutput').innerText = "$0.00";
document.getElementById('monthlyPaymentOutput').innerText = "$0.00";
document.getElementById('totalInterestOutput').innerText = "$0.00";
document.getElementById('cltvOutput').innerText = "N/A (No Equity Available)";
document.getElementById('equityResult').style.display = 'block';
return;
}
// Amortization Formula: P = [r*PV] / [1 – (1+r)^-n]
var monthlyPayment = (interestRate * maxLoanAmount) / (1 – Math.pow(1 + interestRate, -loanTermMonths));
var totalRepayment = monthlyPayment * loanTermMonths;
var totalInterest = totalRepayment – maxLoanAmount;
var cltv = ((maxLoanAmount + mortgageBalance) / homeValue) * 100;
// Update UI
document.getElementById('maxLoanOutput').innerText = "$" + maxLoanAmount.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2});
document.getElementById('monthlyPaymentOutput').innerText = "$" + monthlyPayment.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2});
document.getElementById('totalInterestOutput').innerText = "$" + totalInterest.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2});
document.getElementById('cltvOutput').innerText = cltv.toFixed(2) + "%";
document.getElementById('equityResult').style.display = 'block';
}
Understanding Home Equity Loans
A home equity loan, often referred to as a "second mortgage," allows you to borrow against the value of your home. The amount you can borrow is based on the difference between your home's current market value and the balance remaining on your mortgage.
How the Calculator Works
This calculator uses the Combined Loan-to-Value (CLTV) method to determine your borrowing power. Most lenders permit a CLTV of up to 80% or 85%. Here is the formula used:
Step 1: Home Value × Max LTV % = Maximum Borrowing Capacity
Step 2: Maximum Borrowing Capacity – Current Mortgage Balance = Potential Loan Amount
Example Scenario
Imagine your home is worth $500,000 and you still owe $300,000 on your primary mortgage. If a lender allows an 80% LTV:
80% of $500,000 is $400,000 (Total debt allowed).
$400,000 minus your existing $300,000 mortgage leaves you with $100,000 in available equity to borrow.
Key Terms to Know
Equity: The portion of your home that you truly "own" (Value minus Debt).
LTV (Loan-to-Value): The ratio of a loan to the value of an asset.
CLTV: The sum of all loans on the property divided by the property's value.
Fixed Rate: Unlike HELOCs (Lines of Credit), home equity loans typically have fixed interest rates and fixed monthly payments.
Important Note:
A home equity loan uses your house as collateral. Failure to make payments could result in foreclosure. Always consult with a financial advisor before taking on new debt.