# Loan Calculator API

> Loan Calculator is a payment calculation API that computes monthly loan payments, total interest, and overall loan costs based on principal, annual interest rate, and term length in years or months. Include an optional down payment to determine adjusted financing balances and interest ratios. On paid plans, optional inputs add an extra-payment payoff plan with months and interest saved, payoff dates from a start date, biweekly or weekly payment figures, and an APR that includes upfront fees.

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

## Overview

Loan Payment Calculator works by using the loan amount, interest rate, and loan term to calculate the monthly loan payment, total interest, and more. On paid plans, add an extra monthly payment to see how many months and how much interest it saves, a start date to get payoff dates, a biweekly or weekly frequency to get the payment on that schedule, and upfront fees to get the true APR.

## 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/loanpaymentcalculator" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"loanAmount":32000,"interestRate":8.5,"loanTerm":6,"loanTermMonths":1,"downpayment":1,"extraPayment":100,"startDate":"2026-12-01","paymentFrequency":"biweekly","fees":800}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `loanAmount` | number | Yes | The loan amount (0 to 1,000,000,000,000). range 0-1000000000000 |
| `interestRate` | number | Yes | The interest rate (percentage). range 0-100 |
| `loanTerm` | integer | No | The loan term in whole years (e.g. 5 or 30). For terms quoted in months, send loanTermMonths instead. range 1-50 |
| `loanTermMonths` | integer | No | The loan term in months (e.g. 36, 60, 72, 75). Overrides loanTerm; use it for auto and personal loans quoted in months, including terms that are not whole years such as 18 or 30. range 1-600 |
| `downpayment` | number | No | Amount paid up front, subtracted from the loan amount before interest is applied. default 0. range 0-inf |
| `extraPayment` | number | No | Extra principal paid every month. Adds an extra_payment block with the early payoff month, months saved and interest saved. range 0-inf. Premium field |
| `startDate` | string | No | Loan start date (YYYY-MM-DD), with the first payment one month later. Adds the payoff date. date. Premium field |
| `paymentFrequency` | string | No | Also price the loan on a biweekly (26 a year) or weekly (52 a year) schedule. Adds a payment_frequency block; monthly figures are unchanged. default monthly. One of: monthly, biweekly, weekly. Premium field |
| `fees` | number | No | Upfront fees deducted from the amount the borrower receives (origination, closing). Adds the APR including those fees. range 0-inf. Premium field |

## Response fields

- `loanAmount` — number · Original loan amount in dollars
- `downpayment` — number · Down payment amount applied to loan
- `interestRate` — number · Annual interest rate as percentage
- `loanTerm` — number · Loan repayment period in years (months / 12 when loanTermMonths is sent)
- `monthly_payment` — number · Required monthly loan payment amount
- `total_interest_paid` — number · Total interest paid over loan term
- `total_payment` — number · Total amount paid over entire loan term
- `interestRatio` — number · Percentage of total payment allocated to interest
- `formatted` — object · Loan amount and payment totals as dollar strings
  - `formatted.loanAmount` — string · Formatted loan amount with currency symbol · (premium)
  - `formatted.monthlyPayment` — string · Formatted monthly payment with currency symbol · (premium)
  - `formatted.totalInterestPaid` — string · Formatted total interest paid with currency · (premium)
  - `formatted.totalPayment` — string · Formatted total payment amount with currency · (premium)
  - `amortization_schedule.0.month` — number · Payment period month number · (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)
- `payoff_date` — string · Date of the final scheduled payment (YYYY-MM-DD), when startDate is given · (premium)
- `extra_payment` — object · Payoff plan with the extra monthly payment applied, when extraPayment is given · (premium)
  - `extra_payment.extra_monthly_payment` — number · Extra principal paid each month · (premium)
  - `extra_payment.monthly_payment` — number · Monthly payment including the extra amount · (premium)
  - `extra_payment.payoff_months` — number · Months until the loan is paid off with the extra payment · (premium)
  - `extra_payment.months_saved` — number · Months cut from the scheduled term · (premium)
  - `extra_payment.total_interest_paid` — number · Total interest paid with the extra payment · (premium)
  - `extra_payment.total_payment` — number · Total paid with the extra payment · (premium)
  - `extra_payment.interest_saved` — number · Interest saved compared with the scheduled loan · (premium)
  - `extra_payment.payoff_date` — string · Early payoff date (YYYY-MM-DD), when startDate is given · (premium)
    - `extra_payment.amortization_schedule.0.month` — number · (premium)
    - `extra_payment.amortization_schedule.0.interest_payment` — number · (premium)
    - `extra_payment.amortization_schedule.0.principal_payment` — number · (premium)
    - `extra_payment.amortization_schedule.0.remaining_balance` — number · (premium)
- `payment_frequency` — object · The loan priced on a biweekly or weekly schedule, when paymentFrequency is biweekly or weekly · (premium)
  - `payment_frequency.frequency` — string · biweekly or weekly · (premium)
  - `payment_frequency.payments_per_year` — number · Payments a year (26 or 52) · (premium)
  - `payment_frequency.number_of_payments` — number · Payments over the loan term · (premium)
  - `payment_frequency.payment` — number · Payment due each period · (premium)
  - `payment_frequency.total_interest_paid` — number · Total interest on this schedule · (premium)
  - `payment_frequency.total_payment` — number · Total paid on this schedule · (premium)
  - `payment_frequency.interest_saved` — number · Interest saved compared with monthly payments · (premium)
- `fees` — number · Upfront fees used for the APR, when fees is given · (premium)
- `apr` — number · Annual percentage rate including upfront fees · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "loanAmount": 32000,
    "downpayment": 0,
    "interestRate": 8.5,
    "loanTerm": 6,
    "monthly_payment": 568.91,
    "total_interest_paid": 8961.4,
    "total_payment": 40961.4,
    "interestRatio": 21.88,
    "formatted": {
      "loanAmount": "$32,000.00",
      "monthlyPayment": "$568.91",
      "totalInterestPaid": "$8,961.40",
      "totalPayment": "$40,961.40"
    },
    "amortization_schedule": [
      {
        "month": 1,
        "interest_payment": 226.67,
        "principal_payment": 342.24,
        "remaining_balance": 31657.76
      },
      {
        "month": 2,
        "interest_payment": 224.24,
        "principal_payment": 344.67,
        "remaining_balance": 31313.09
      },
      {
        "month": 3,
        "interest_payment": 221.8,
        "principal_payment": 347.11,
        "remaining_balance": 30965.99
      }
    ],
    "payoff_date": "2032-12-01",
    "extra_payment": {
      "extra_monthly_payment": 100,
      "monthly_payment": 668.91,
      "payoff_months": 59,
      "months_saved": 13,
      "total_interest_paid": 7214.73,
      "total_payment": 39214.73,
      "interest_saved": 1746.67,
      "payoff_date": "2031-11-01",
      "amortization_schedule": [
        {
          "month": 1,
          "interest_payment": 226.67,
          "principal_payment": 442.24,
          "remaining_balance": 31557.76
        },
        {
          "month": 2,
          "interest_payment": 223.53,
          "principal_payment": 445.37,
          "remaining_balance": 31112.38
        },
        {
          "month": 3,
          "interest_payment": 220.38,
          "principal_payment": 448.53,
          "remaining_balance": 30663.86
        }
      ]
    },
    "payment_frequency": {
      "frequency": "biweekly",
      "payments_per_year": 26,
      "number_of_payments": 156,
      "payment": 262.19,
      "total_interest_paid": 8901.77,
      "total_payment": 40901.77,
      "interest_saved": 59.62
    },
    "fees": 800,
    "apr": 9.419
  }
}
```

## Use cases

- **Dealership Payment Calculators** — On dealership sites and auto marketplace listings, buyers test different down payment amounts to preview their estimated monthly installment and overall interest obligations.
- **Property Affordability Screening** — To help home shoppers budget for properties, mortgage lead-generation sites generate expected monthly payments and lifetime repayment totals for selected terms.
- **Debt Consolidation Comparisons** — Personal finance apps calculate total interest paid and interest ratios to show users how refinancing balances changes their monthly repayment burden.
- **Loan Origination Portals** — Before issuing a borrowing contract, lending software computes total repayment commitments and required monthly installments from applicant term lengths and rates.

## SDKs

- **npm** — `npm install @apiverve/loanpaymentcalculator` (https://www.npmjs.com/package/@apiverve/loanpaymentcalculator)
- **NuGet** — `dotnet add package APIVerve.API.LoanCalculator` (https://www.nuget.org/packages/APIVerve.API.LoanCalculator)
- **Source** — https://github.com/apiverve/loanpaymentcalculator-api

## More

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