Compare renting with buying
calculate_rent_vs_buyCompares renting and buying on net wealth rather than on monthly payment, accounting for equity, appreciation, maintenance, selling costs, and the return a renter earns on money not spent on a down payment. Returns the year buying overtakes renting. The result is highly sensitive to the appreciation and investment-return assumptions, which are returned alongside it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Full US state name, for example "Texas". Used to look up the average property tax rate. Either this or propertyTaxRatePercent is required. | |
| homePrice | Yes | Purchase price of the home in US dollars. | |
| monthlyHoa | No | Monthly HOA dues. | |
| monthlyRent | Yes | Current monthly rent for a comparable home. | |
| loanTermYears | No | Loan term in years. Most US mortgages are 15 or 30. | |
| yearsToCompare | No | Horizon of the comparison. | |
| annualInsurance | No | Annual homeowners insurance premium. | |
| downPaymentPercent | No | Down payment as a percentage of the purchase price, 0 to 100. Not a dollar amount. | |
| sellingCostPercent | No | Cost of selling, including agent commission. | |
| propertyTaxRatePercent | No | Annual property tax as a percentage of home value. Omit and pass `state` instead to use that state's average. | |
| investmentReturnPercent | No | Return a renter earns on cash not tied up in a house. | |
| annualMaintenancePercent | No | Annual upkeep as a percentage of home value. Typically 1 to 2. | |
| annualInterestRatePercent | No | Annual nominal interest rate as a percentage, for example 6.5 for 6.5%. | |
| annualRentIncreasePercent | No | Expected annual rent growth. | |
| annualHomeAppreciationPercent | No | Expected annual home price growth. The answer is highly sensitive to this. |