# PMT

The PMT function calculates the payment for a loan based on constant payments and a constant interest rate.

## Syntax

```javascript
pmt(rate:number, nper:number, pv:number, fv:number, type:number)
```

## Arguments

rate – Required. The interest rate per period.

nper – Required. The total number of periods.

pv – Required. The present value or initial investment. Cash outflows are considered negative and cash inflows as positive.

fv – The future or residual value. This is an optional argument and if omitted, it is considered to be zero.

type – Indicates when the payments are made. The type is zero if payments are made at the end of the period and non-zero if payments are made at the start of the period. This is an optional argument and when omitted, it is considered to be zero.

## Example

```javascript
pmt(0,1,10,1000,0,0)
```

Returns 100.0000000000001

## Excel equivalent

[PMT](https://support.microsoft.com/en-us/office/pmt-function-0214da64-9a63-4996-bc20-214433fa6441)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inforiver.com/premium-table/formula-syntax/math-functions/pmt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
