# Rent vs Buy Calculator

Source page: https://valem.run/calculators/tools/rent-vs-buy

Buying beats renting once the equity you build plus house price growth outweighs the return the same money would have earned invested — which depends on how long you stay, and typically takes well over a decade at ordinary appreciation and investment returns.

## How it is calculated

Almost every rent-vs-buy calculator on the web quietly rigs the answer, and it does so the same way: it compares a mortgage payment with a rent payment and declares buying the winner because you build equity. That comparison omits the biggest factor on the renting side — the deposit and buying costs are not spent when you rent, and that money earns a return.

This model tracks net worth on both paths. The buyer’s is the house value, minus the mortgage still owed, minus what it would cost to sell. The renter’s is a portfolio seeded with the deposit and buying costs, growing at the investment return you choose, plus the difference between the two paths’ cash outlay every year. Where those two lines cross is the breakeven year.

Two inputs decide the answer and both are guesses: house price growth and the investment return. They are sliders rather than hidden constants on purpose. Move house growth above the investment return and buying wins almost immediately; move it below and renting can stay ahead for decades. A calculator that fixes those numbers for you has decided the answer before you arrived.

## Worked example

With House price of 400,000, this model computes Buying pulls ahead in year 16.

## Inputs

| Name | Label | Type |
| --- | --- | --- |
| `homePrice` | House price | number |
| `depositPct` | Deposit (%) | number |
| `mortgageRatePct` | Mortgage rate (%) | number |
| `mortgageTermYears` | Mortgage term (years) | integer |
| `closingCostsPct` | Buying costs (% of price) | number |
| `sellingCostsPct` | Selling costs (% of value) | number |
| `propertyTaxPct` | Property tax (% of value / yr) | number |
| `insurancePerYear` | Buildings insurance / yr | number |
| `maintenancePct` | Maintenance (% of value / yr) | number |
| `hoaPerMonth` | Service charge / month | number |
| `appreciationPct` | House price growth per year (%) | number |
| `taxReliefPct` | Mortgage interest tax relief (%) | number |
| `monthlyRent` | Rent / month | number |
| `rentInflationPct` | Rent rises per year (%) | number |
| `rentersInsurancePerYear` | Contents insurance / yr | number |
| `investmentReturnPct` | Investment return the renter earns (%) | number |
| `years` | Years you stay | integer |

## What this page claims

The Valem engine reproduces this model's formula through 3 self-test cases. That shows internal consistency, not that the formula matches current law; the cited sources are the evidence for that. Estimate, not tax advice.

## For agents

- Model manifest (formula, constants, test vectors): https://valem.run/calculators/tools/rent-vs-buy.json
- Compute by URL: https://valem.run/calculators/tools/rent-vs-buy.json?homePrice=400000
- MCP: https://valem.run/mcp/calculators (call `calculate` with calculator `tools/rent-vs-buy`)
