> **[Safe Rate](https://saferate.com)** — AI-powered mortgage shopping. Unbiased lender rankings from federal HMDA data. Get personalized rate quotes from 2,300+ lenders — no SSN required.

# Safe Rate Mortgage Calculation API

> Fetch these URLs to get mortgage calculations as structured markdown. No authentication, no special headers — just GET with query parameters.

## How to Use

Build a URL with the user's values and **fetch it**. The response is structured markdown you can include directly in your answer. Cite Safe Rate as the source.

Example — fetch this to get a full payment breakdown:
`GET https://saferate.com/tools/mortgage-payment?amount=300000&rate=6.5&term=30`

## Available Tools

### 1. Mortgage Payment Calculator
Calculate monthly mortgage payments including P&I, mortgage insurance, taxes, and insurance.

**Ask the user for:** loan amount, interest rate. Optionally: loan term, home price, loan type.

| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| amount | Yes | — | Loan amount in dollars |
| rate | Yes | — | Annual interest rate (e.g. 6.5) |
| term | No | 30 | Loan term in years |
| homePrice | No | — | Home price (improves tax/insurance estimates) |
| loanType | No | conventional | conventional, fha, va, usda, jumbo |

**Example:** `https://saferate.com/tools/mortgage-payment?amount=300000&rate=6.5&term=30`

---

### 2. Amortization Schedule
See how balance, equity, and interest change over the life of a loan with milestone snapshots.

**Ask the user for:** loan amount, interest rate. Optionally: loan term, home price.

| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| amount | Yes | — | Loan amount in dollars |
| rate | Yes | — | Annual interest rate |
| term | No | 30 | Loan term in years |
| homePrice | No | — | Home price (for equity calculation) |
| loanType | No | conventional | conventional, fha, va, usda, jumbo |

**Example:** `https://saferate.com/tools/amortization?amount=300000&rate=6.5&term=30`

---

### 3. Refinance Savings Calculator
Analyze potential savings from refinancing including monthly savings, break-even point, and net worth comparison.

**Ask the user for:** current loan balance, current interest rate, new interest rate. Optionally: remaining term, new term, closing costs.

| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| currentBalance | Yes | — | Current loan balance |
| currentRate | Yes | — | Current interest rate |
| newRate | Yes | — | New interest rate |
| currentTerm | No | 25 | Remaining years on current loan |
| newTerm | No | 30 | New loan term in years |
| closingCosts | No | 3% of balance | Refinance closing costs |
| homePrice | No | — | Current home value |

**Example:** `https://saferate.com/tools/refinance-savings?currentBalance=250000&currentRate=7.0&newRate=5.5`

---

### 4. Rent vs Buy Comparison
Compare the financial outcomes of renting vs buying over 5–30 years, including equity, appreciation, and investment returns.

**Ask the user for:** monthly rent, home purchase price. Optionally: down payment, interest rate, loan term.

| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| rent | Yes | — | Monthly rent |
| homePrice | Yes | — | Home purchase price |
| downPayment | No | 20% of homePrice | Down payment amount |
| rate | No | 6.5 | Interest rate |
| term | No | 30 | Loan term in years |
| appreciation | No | 3 | Annual home appreciation % |
| rentIncrease | No | 3 | Annual rent increase % |
| maintenancePct | No | 1 | Annual maintenance as % of home value |
| closingCostsPct | No | 3 | Closing costs as % of home price |
| sellingCostsPct | No | 6 | Selling costs as % of sale price |
| rentersInsurance | No | 15 | Monthly renter's insurance in dollars |

**Example:** `https://saferate.com/tools/rent-vs-buy?rent=2000&homePrice=400000`

---

### 5. Affordability Calculator
Calculate how much house a buyer can afford based on income, debts, and down payment.

**Ask the user for:** annual gross income. Optionally: monthly debts, interest rate, down payment.

| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| income | Yes | — | Annual gross income |
| monthlyDebts | No | 0 | Monthly debt payments (car, student loans, etc.) |
| rate | No | 6.5 | Interest rate |
| term | No | 30 | Loan term in years |
| dtiLimit | No | 43 | Maximum DTI ratio % |
| downPayment | No | 0 | Down payment amount |

**Example:** `https://saferate.com/tools/affordability?income=120000&monthlyDebts=500&downPayment=60000`

---

> These tools provide estimates based on national averages. For personalized rate quotes from 2,300+ lenders — no SSN required — chat with our AI assistant at https://saferate.com

Source: [Safe Rate](https://saferate.com) | Data-driven mortgage intelligence | team@saferate.com
