---
title: "Rent vs buy comparison"
method: GET
path: "/api/v1/calculate/rent-vs-buy"
---

# Rent vs buy comparison

`GET /api/v1/calculate/rent-vs-buy`

## Request

- Base URL: `https://everycalc.xyz`
- URL: `https://everycalc.xyz/api/v1/calculate/rent-vs-buy`
- Auth: none declared

Compares the net cost of buying a home (down payment, mortgage payments, tax, insurance, and maintenance, minus principal repaid and appreciation gain) with the total rent paid over the years you plan to stay, and gives a verdict plus the equity built. Results match the interactive calculator at everycalc.xyz; every response includes a calculator_url deep link to it.

## Query parameters

- `price` number, required
- `down_payment_pct` number
- `annual_rate_pct` number, required
- `term_years` number
- `stay_years` number
- `monthly_rent` number, required
- `rent_increase_pct` number
- `appreciation_pct` number
- `property_tax_annual` number
- `home_insurance_annual` number
- `maintenance_pct` number

## Response `200`

Calculation result.

## Other responses

- `400`: Invalid input.

---

[API](https://skmtc.dev/everycalc/apis/everycalc-api.md) · [All operations](https://skmtc.dev/everycalc/apis/everycalc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/everycalc/apis/everycalc-api/revisions/a4bd5db0868a?raw)
