---
title: "Rent vs. Buy Calculator"
method: GET
path: "/api/calc/rent-vs-buy-calculator"
tags: ["Finance"]
---

# Rent vs. Buy Calculator

`GET /api/calc/rent-vs-buy-calculator`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/rent-vs-buy-calculator`
- Auth: none declared

This rent vs buy calculator weighs the true cost of owning – interest, tax, upkeep, lost returns and equity – against renting, to find the break-even year.

## Query parameters

- `price` number: Home price
- `currency` 'USD' | 'EUR' | 'GBP' | 'JPY' | 'CAD' | 'AUD' | 'CHF' | 'CNY' | 'INR' | 'PKR' | 'AED' | 'SAR' | 'NZD' | 'SGD' | 'HKD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'TRY' | 'ZAR' | 'BRL' | 'MXN' | 'KRW' | 'THB' | 'MYR' | 'IDR' | 'PHP' | 'BDT' | 'EGP' | 'NGN' | 'KWD' | 'QAR' | 'BHD' | 'OMR' | 'RUB': Currency
- `downPct` number: Down payment (%)
- `rate` number: Mortgage rate (%)
- `term` number: Loan term (years)
- `years` number: Years you plan to stay (years)
- `rent` number: Monthly rent
- `rentIncrease` number: Rent increase / year (%)
- `taxPct` number: Property tax / year (%) % of home value
- `maintPct` number: Maintenance / year (%) % of home value
- `insurance` number: Home insurance / year
- `appreciation` number: Home price growth / year (%)
- `invest` number: Investment return / year (%) What the down payment could earn if invested instead
- `buyCostPct` number: Buying closing costs (%)
- `sellPct` number: Selling costs (%) Agent fees, transfer tax, etc.

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

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