Analyze the profitability of your real estate investment by calculating Cash on Cash Return, Cap Rate, and Monthly Cash Flow.
30 Years
15 Years
10 Years
Includes Taxes, Insurance, HOA, Repairs, Vacancy, Management
Investment Analysis
Cash on Cash Return
0.00%
Monthly Cash Flow
$0.00
Cap Rate
0.00%
Monthly Mortgage Payment:$0.00
Total Cash Invested (Upfront):$0.00
Net Operating Income (Annual):$0.00
function calculateROI() {
// Get Inputs
var price = parseFloat(document.getElementById('purchasePrice').value);
var downPercent = parseFloat(document.getElementById('downPayment').value);
var interestRate = parseFloat(document.getElementById('interestRate').value);
var termYears = parseFloat(document.getElementById('loanTerm').value);
var closingCosts = parseFloat(document.getElementById('closingCosts').value);
var rent = parseFloat(document.getElementById('monthlyRent').value);
var expenses = parseFloat(document.getElementById('monthlyExpenses').value);
// Validation
if (isNaN(price) || isNaN(downPercent) || isNaN(interestRate) || isNaN(termYears) || isNaN(rent)) {
alert("Please enter valid numbers for all fields.");
return;
}
// Calculations
var downPaymentAmount = price * (downPercent / 100);
var loanAmount = price – downPaymentAmount;
// Mortgage Calculation
var monthlyMortgage = 0;
if (loanAmount > 0 && interestRate > 0) {
var r = interestRate / 100 / 12;
var n = termYears * 12;
monthlyMortgage = loanAmount * (r * Math.pow(1 + r, n)) / (Math.pow(1 + r, n) – 1);
} else if (loanAmount > 0 && interestRate === 0) {
monthlyMortgage = loanAmount / (termYears * 12);
}
var totalMonthlyOutflow = monthlyMortgage + expenses;
var monthlyCashFlow = rent – totalMonthlyOutflow;
var annualCashFlow = monthlyCashFlow * 12;
var totalInvested = downPaymentAmount + closingCosts;
// Metrics
var cocReturn = 0;
if (totalInvested > 0) {
cocReturn = (annualCashFlow / totalInvested) * 100;
}
var annualNOI = (rent – expenses) * 12;
var capRate = 0;
if (price > 0) {
capRate = (annualNOI / price) * 100;
}
// Update UI
document.getElementById('resCoc').innerText = cocReturn.toFixed(2) + "%";
document.getElementById('resCoc').style.color = cocReturn >= 0 ? "#27ae60" : "#c0392b";
document.getElementById('resCashFlow').innerText = "$" + monthlyCashFlow.toLocaleString('en-US', {minimumFractionDigits: 2, maximumFractionDigits: 2});
document.getElementById('resCashFlow').style.color = monthlyCashFlow >= 0 ? "#2980b9" : "#c0392b";
document.getElementById('resCapRate').innerText = capRate.toFixed(2) + "%";
document.getElementById('resMortgage').innerText = "$" + monthlyMortgage.toLocaleString('en-US', {minimumFractionDigits: 2, maximumFractionDigits: 2});
document.getElementById('resTotalInvested').innerText = "$" + totalInvested.toLocaleString('en-US', {minimumFractionDigits: 2, maximumFractionDigits: 2});
document.getElementById('resNOI').innerText = "$" + annualNOI.toLocaleString('en-US', {minimumFractionDigits: 2, maximumFractionDigits: 2});
document.getElementById('resultsArea').style.display = 'block';
}
Understanding Cash on Cash Return in Real Estate
For real estate investors, calculating the Cash on Cash (CoC) Return is one of the most effective ways to measure the performance of a rental property. Unlike simple yield calculations, CoC measures the annual return the investor made on the property in relation to the amount of mortgage paid during the same year. It is considered a "leveraged" metric because it takes financing into account.
How the Cash on Cash Return Calculator Works
This calculator breaks down your potential investment into three critical metrics:
Cash on Cash Return (%): The percentage of your total invested cash (Down Payment + Closing Costs) that is returned to you annually as cash flow. A healthy CoC is often considered to be between 8% and 12%, though this varies by market.
Monthly Cash Flow ($): The net profit you pocket every month after paying the mortgage, taxes, insurance, and all other operating expenses. Positive cash flow is essential for long-term sustainability.
Cap Rate (%): Capitalization Rate measures the property's natural rate of return without factoring in a mortgage. It helps compare the quality of the property itself against other non-leveraged investments.
Standard ROI (Return on Investment) often looks at the total accumulated equity, including principal paydown and appreciation. While accurate for long-term wealth, it doesn't tell you how much liquid cash the property generates today. Cash on Cash return tells you exactly how hard your actual dollar bills are working for you right now, making it the preferred metric for investors focused on passive income and financial freedom.
Tips to Improve Your Returns
If the calculator shows a negative or low return, consider these adjustments:
Negotiate the Price: Lowering the purchase price reduces your loan amount and down payment, boosting CoC.
Increase Rent: Look for value-add opportunities (like cosmetic renovations) that justify higher rent.
Shop for Financing: A lower interest rate or a longer amortization period (e.g., 30 years vs 15 years) lowers monthly payments, increasing immediate cash flow.