> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/formula-syntax/math-functions/pmt.md).

# PMT

Calculates the periodic payment amount for a loan based on a constant interest rate and fixed number of periods.

The PMT function calculates the periodic payment amount for a loan based on a constant interest rate and fixed payment schedule. It determines how much needs to be paid in each period to repay the loan over time. This function is commonly used in financial planning, loan analysis, and investment calculations.

### Syntax

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

### Arguments

rate – The interest rate per period (Required).

nper – The total number of periods (Required).

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

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

```
PMT(RateOfInterset,NumberOfPeriods,INITIAL)
```

In the example below, the *PMT\_Result* measure is created using the **PMT** function, which calculates the periodic payment amount based on the *RateOfInterest, NumberOfPeriods,* and *INITIAL* values.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FNS8wlaTLejDxTWqcvLp6%2Fimage.png?alt=media&amp;token=281d1fa1-bd87-40cc-a5ec-e93ae3bf55f0" alt=""><figcaption><p>Applying PMT Function</p></figcaption></figure>

### Excel equivalent

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
