Mortgage vs. Rent Affordability Calculator
Determine what you can afford to buy versus rent based on your income, debts, and standard financial guidelines.
Your Finances
$
$
Car loans, student loans, credit cards. Exclude rent.
Mortgage Assumptions
$
%
$
$
Affordability Summary
You can afford a home up to
$0
with a max monthly payment of
Or, you can afford to rent up to
$0
per month
Affordability Report
Your Financial Inputs
Affordability Results
Monthly Debts: ${formatCurrency(getNum('monthlyDebts'))}
Down Payment: ${formatCurrency(getNum('downPayment'))}
Interest Rate: ${getNum('interestRate')}%
Loan Term: ${getNum('loanTerm')} Years
`; getEl('pdf-results').innerHTML = `Max Home Price: ${formatCurrency(calculationCache.results.maxHomePrice)}
Max Monthly PITI: ${formatCurrency(calculationCache.results.maxAffordablePITI)}
Max Monthly Rent: ${formatCurrency(calculationCache.results.maxRent)}
`; const pdfContentEl = getEl('pdf-content'); pdfContentEl.style.display = 'block'; html2canvas(pdfContentEl, { scale: 2 }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdfWidth = pdf.internal.pageSize.getWidth(); const imgProps = pdf.getImageProperties(imgData); const imgHeight = (imgProps.height * (pdfWidth - 20)) / imgProps.width; pdf.addImage(imgData, 'PNG', 10, 10, pdfWidth - 20, imgHeight); pdf.save('Affordability-Summary.pdf'); pdfContentEl.style.display = 'none'; }); }); // Set default values for reset elements.annualIncome.defaultValue = '85000'; elements.monthlyDebts.defaultValue = '500'; elements.downPayment.defaultValue = '40000'; elements.interestRate.defaultValue = '6.5'; elements.propertyTaxes.defaultValue = '4000'; elements.homeInsurance.defaultValue = '1500'; });