Rent versus buy
rent_vs_buyCompare the long-term wealth impact of renting versus buying a home, including mortgage interest, carrying costs, closing costs, rent growth, appreciation, and investment returns.
Instructions
Compare renting and buying over a horizon on a change-in-wealth basis. Buying includes interest, carrying costs, closing costs, selling costs, and appreciation. Renting includes rent growth and an investment return on the cash the buyer would have used. Principal paydown is equity, not a loss. Results are estimates, not advice.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"homePrice": "<homePrice>",
"downPayment": "<downPayment>",
"annualInterestRate": "<annualInterestRate>",
"termYears": "<termYears>",
"monthlyRent": "<monthlyRent>",
"horizonYears": "<horizonYears>"
},
"name": "rent_vs_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| homePrice | Yes | Home price in dollars. | |
| termYears | Yes | Loan term in years. | |
| monthlyHoa | No | Monthly HOA dues in dollars. Defaults to 0. | |
| monthlyPmi | No | Monthly PMI in dollars, charged only while the loan term is still running. Defaults to 0. | |
| downPayment | Yes | Cash down payment in dollars. | |
| monthlyRent | Yes | Current monthly rent in dollars for a comparable home. | |
| horizonYears | Yes | How many years to compare. Payments stop if the loan term ends first. | |
| annualInsurance | No | Yearly homeowners insurance in dollars. Held flat over the horizon. Defaults to 0. | |
| annualPropertyTax | No | Yearly property tax in dollars. Held flat over the horizon. Defaults to 0. | |
| annualInterestRate | Yes | Annual mortgage rate as a percent. 6.5 means 6.5 percent. | |
| buyingClosingCosts | No | Buyer closing costs in dollars. Defaults to 0. | |
| monthlyMaintenance | No | Monthly maintenance reserve in dollars. Defaults to 0. | |
| sellingCostPercent | No | Cost to sell at the end, as a percent of the future home value. Defaults to 6. | |
| annualAppreciationPercent | No | Yearly home appreciation as a percent. Defaults to 3. | |
| annualRentIncreasePercent | No | Yearly rent increase as a percent. Defaults to 3. | |
| alternateInvestmentReturnPercent | No | Yearly return the renter could earn on the cash the buyer uses for the down payment and buying closing costs. Defaults to 5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| totalHoa | Yes | ||
| totalPmi | Yes | ||
| homePrice | Yes | ||
| wealthGap | Yes | How much more wealth the better choice produces. Zero when they tie. | |
| loanAmount | Yes | ||
| downPayment | Yes | ||
| betterChoice | Yes | ||
| horizonYears | Yes | ||
| saleProceeds | Yes | Future value minus selling costs and the remaining loan. | |
| sellingCosts | Yes | ||
| totalRentPaid | Yes | ||
| totalInsurance | Yes | ||
| endingHomeValue | Yes | ||
| totalMaintenance | Yes | ||
| totalPropertyTax | Yes | ||
| buyerWealthChange | Yes | Sale proceeds after selling costs, minus the price, buying costs, interest, and carrying costs. Principal paid is equity, so it is not treated as a loss. | |
| totalInterestPaid | Yes | ||
| buyingClosingCosts | Yes | ||
| renterWealthChange | Yes | Investment gain on the avoided cash outlay, minus rent paid. | |
| sellingCostPercent | Yes | ||
| totalPrincipalPaid | Yes | ||
| firstMonthOwnerCash | Yes | First monthly owner check: principal, interest, tax, insurance, HOA, maintenance, and PMI. | |
| startingMonthlyRent | Yes | ||
| remainingLoanBalance | Yes | ||
| renterInvestmentGain | Yes | ||
| totalOwnerCashOutlay | Yes | Cash the buyer writes: down payment, closing costs, mortgage payments, and carrying costs. | |
| annualAppreciationPercent | Yes | ||
| annualRentIncreasePercent | Yes | ||
| alternateInvestmentReturnPercent | Yes |