# Mortgage Calculator API

> Mortgage Calculator computes monthly and annual loan payments from principal, interest rate, and term. It breaks totals down by principal, interest, property tax, insurance, and HOA dues and returns the loan-to-value ratio, with paid plans adding full amortization schedules, PMI and its removal date, payoff dates, and extra-payment scenarios showing months and interest saved.

**Endpoint:** `POST https://api.apiverve.com/v1/mortgagecalculator`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/mortgagecalculator

## Overview

A mortgage API and payment calculation API for real estate listings, lending tools and budgeting apps. Mortgage Calculator works by using the loan amount, interest rate, and loan term to calculate the monthly mortgage payment and loan-to-value ratio, with total interest paid, PMI and its removal date, payoff dates and extra-payment payoff scenarios on paid plans.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/mortgagecalculator" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount":570000,"rate":6.8,"years":30,"downpayment":57000,"annual_propertytax":1,"annual_homeinsurance":1,"annual_hoa":1,"pmi_rate":0.5,"extra_monthly":200,"start_date":"2026-11-01"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `amount` | number | Yes | The loan amount (0 to 1,000,000,000,000). range 0-1000000000000 |
| `rate` | number | Yes | The interest rate (percentage). range 0-100 |
| `years` | integer | Yes | The loan term in years. range 1-50 |
| `downpayment` | number | No | The down payment amount. range 0-inf |
| `annual_propertytax` | number | No | The annual property tax amount. range 0-inf |
| `annual_homeinsurance` | number | No | The annual home insurance amount. range 0-inf |
| `annual_hoa` | number | No | The annual HOA amount. range 0-inf |
| `pmi_rate` | number | No | Annual private mortgage insurance rate as a percentage of the loan, charged only when the loan-to-value ratio is above 80%. range 0-5. Premium field |
| `extra_monthly` | number | No | Extra principal paid every month, to see how much sooner the loan is paid off and how much interest that saves. range 0-inf. Premium field |
| `start_date` | string | No | Loan start (closing) date; the first payment falls the following month. date. Premium field |

## Response fields

- `amount` — number · Loan amount in dollars
- `downpayment` — number · Down payment amount provided
- `rate` — number · Interest rate percentage used for calculation
- `years` — number · Loan term in years
- `total_interest_paid` — number · Total interest paid over entire loan term · (premium)
- `total_loan_payment` — number · Total amount paid (principal + interest) · (premium)
- `interestRatio` — number · Percentage of payment that is interest · (premium)
- `monthly_payment` — object · Monthly outlay broken into mortgage, property tax, HOA and home insurance
  - `monthly_payment.total` — number · Total monthly payment including all fees
  - `monthly_payment.mortgage` — number · Monthly mortgage payment (principal + interest)
  - `monthly_payment.property_tax` — number · Monthly property tax portion of payment
  - `monthly_payment.hoa` — number · Monthly HOA fee portion of payment
  - `monthly_payment.home_insurance` — number · Monthly home insurance portion of payment
  - `monthly_payment.pmi` — number · Monthly PMI while it is charged; only when pmi_rate is given · (premium)
- `annual_payment` — object · Annual outlay broken into mortgage, property tax, HOA and home insurance
  - `annual_payment.total` — number · Total annual payment including all fees
  - `annual_payment.mortgage` — number · Annual mortgage payment (principal + interest)
  - `annual_payment.property_tax` — number · Annual property tax portion of payment
  - `annual_payment.hoa` — number · Annual HOA fee portion of payment
  - `annual_payment.home_insurance` — number · Annual home insurance portion of payment
  - `annual_payment.pmi` — number · PMI paid in the first year; only when pmi_rate is given · (premium)
- `formatted` — object · Loan amount and payment totals as dollar strings
  - `formatted.amount` — string · Formatted loan amount with currency symbol
  - `formatted.monthlyPayment` — string · Formatted monthly mortgage payment (principal + interest only; equals monthly_payment.mortgage and excludes tax, insurance, HOA and PMI)
  - `formatted.totalInterestPaid` — string · Formatted total interest paid with currency · (premium)
  - `formatted.totalLoanPayment` — string · Formatted total of principal + interest payments over the loan term · (premium)
- `loan_amount` — number · Amount borrowed: amount minus downpayment · (premium)
- `ltv` — number · Loan-to-value ratio: loan_amount as a percentage of amount (null when amount is 0)
- `payoff_date` — string · Month of the final payment (YYYY-MM); only when start_date is given · (premium)
- `pmi` — object · Private mortgage insurance; only when pmi_rate is given · (premium)
  - `pmi.required` — boolean · Whether PMI applies (loan-to-value above 80%) · (premium)
  - `pmi.rate` — number · Annual PMI rate used, as a percentage of the loan · (premium)
  - `pmi.monthly` — number · Monthly PMI premium · (premium)
  - `pmi.months_charged` — number · Number of payments that carry PMI before it ends automatically at 78% of the price or mid-term · (premium)
  - `pmi.removal_month` — number · First payment month without PMI (null when PMI does not apply) · (premium)
  - `pmi.total` — number · Total PMI paid over the loan · (premium)
  - `pmi.removal_date` — string · Month PMI stops (YYYY-MM); only when start_date is given · (premium)
- `extra_payments` — object · Payoff with extra monthly principal; only when extra_monthly is given · (premium)
  - `extra_payments.monthly` — number · Extra principal paid each month · (premium)
  - `extra_payments.months_to_payoff` — number · Payments needed to clear the loan with the extra principal · (premium)
  - `extra_payments.months_saved` — number · Payments saved against the standard term · (premium)
  - `extra_payments.total_interest_paid` — number · Total interest paid with the extra principal · (premium)
  - `extra_payments.interest_saved` — number · Interest saved against the standard schedule · (premium)
  - `extra_payments.payoff_date` — string · Month of the final payment with the extra principal (YYYY-MM); only when start_date is given · (premium)
  - `amortization_schedule.0.month` — number · Payment month number in loan term · (premium)
  - `amortization_schedule.0.interest_payment` — number · Interest portion of monthly payment · (premium)
  - `amortization_schedule.0.principal_payment` — number · Principal portion of monthly payment · (premium)
  - `amortization_schedule.0.remaining_balance` — number · Outstanding loan balance after payment · (premium)
  - `amortization_schedule.0.date` — string · Payment month (YYYY-MM); only when start_date is given · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "amount": 570000,
    "downpayment": 57000,
    "rate": 6.8,
    "years": 30,
    "total_interest_paid": 690975.44,
    "total_loan_payment": 1203975.44,
    "interestRatio": 57.39,
    "monthly_payment": {
      "total": 3558.13,
      "mortgage": 3344.38,
      "property_tax": 0,
      "hoa": 0,
      "home_insurance": 0,
      "pmi": 213.75
    },
    "annual_payment": {
      "total": 42697.51,
      "mortgage": 40132.51,
      "property_tax": 0,
      "hoa": 0,
      "home_insurance": 0,
      "pmi": 2565
    },
    "formatted": {
      "amount": "$570,000",
      "monthlyPayment": "$3,344.38",
      "totalInterestPaid": "$690,975.44",
      "totalLoanPayment": "$1,203,975.44"
    },
    "loan_amount": 513000,
    "ltv": 90,
    "payoff_date": "2056-11",
    "pmi": {
      "required": true,
      "rate": 0.5,
      "monthly": 213.75,
      "months_charged": 113,
      "removal_month": 114,
      "total": 24153.75,
      "removal_date": "2036-05"
    },
    "extra_payments": {
      "monthly": 200,
      "months_to_payoff": 304,
      "months_saved": 56,
      "total_interest_paid": 563208.85,
      "interest_saved": 127766.58,
      "payoff_date": "2052-03"
    },
    "amortization_schedule": [
      {
        "month": 1,
        "interest_payment": 2907,
        "principal_payment": 437.38,
        "remaining_balance": 512562.62,
        "date": "2026-12"
      },
      {
        "month": 2,
        "interest_payment": 2904.52,
        "principal_payment": 439.85,
        "remaining_balance": 512122.77,
        "date": "2027-01"
      },
      {
        "month": 3,
        "interest_payment": 2902.03,
        "principal_payment": 442.35,
        "remaining_balance": 511680.42,
        "date": "2027-02"
      }
    ]
  }
}
```

## Use cases

- **Listing Affordability Estimates** — Real estate portals display estimated monthly costs, factoring in local taxes and HOA dues beside listing sale prices.
- **Mortgage Offer Comparisons** — When prospective borrowers evaluate competing quotes, financial platforms run side-by-side payment breakdowns across differing interest rates and terms.
- **Budget Planning Applications** — To assess homeownership readiness, personal finance apps calculate prospective monthly housing obligations against user savings and down payment targets.
- **Client Payment Previews** — Mortgage brokers quote projected monthly housing dues to prospective buyers during initial consultations before submitting formal underwriting applications.

## SDKs

- **npm** — `npm install @apiverve/mortgagecalculator` (https://www.npmjs.com/package/@apiverve/mortgagecalculator)
- **PyPI** — `pip install apiverve-mortgagecalculator` (https://pypi.org/project/apiverve-mortgagecalculator/)
- **NuGet** — `dotnet add package APIVerve.API.MortgageCalculator` (https://www.nuget.org/packages/APIVerve.API.MortgageCalculator)
- **Source** — https://github.com/apiverve/mortgagecalculator-api

## More

- Full reference: https://docs.apiverve.com/ref/mortgagecalculator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
