This Excel tutorial explains how to use the Excel IPMT function with syntax and examples.
The Microsoft Excel IPMT function returns the interest payment for an investment based on an interest rate and a constant payment schedule.
The syntax for the IPMT function in Microsoft Excel is:
IPMT( interest_rate, period, number_payments, PV, [FV], [Type] )
Optional. It indicates when the payments are due. If the Type parameter is omitted, it assumes a Type value of 0. Type can be one of the following values:
|0||Payments are due at the end of the period. (default)|
|1||Payments are due at the beginning of the period.|
The IPMT function can be used in the following versions of Microsoft Excel:
The IPMT function can be used in Microsoft Excel as the following type of function:
Let's look at an example to how you would use the IPMT examples and explore how to use the IPMT function as a worksheet function in Microsoft Excel:
This first example returns the interest payment for a $5,000 investment that earns 7.5% annually for 2 years. The interest payment is calculated for the 8th month and payments are due at the end of each month.
=IPMT(7.5%/12, 8, 2*12, 5000) Result: -$22.61
This next example returns the interest payment for a $8,000 investment that earns 6% annually for 4 years. The interest payment is calculated for the 30th week and payments are due at the beginning of each week.
=IPMT(6%/52, 30, 4*52, 8000, 0 ,1) Result: -$8.06
This next example returns the interest payment for a $6,500 investment that earns 5.25% annually for 10 years. The interest payment is calculated for the 4th year and payments are due at the end of each year.
=IPMT(5.25%/1, 4, 10*1, 6500) Result: -$256.50
The IPMT function can also be used in VBA code in Microsoft Excel.
Let's look at some Excel IPMT function examples and explore how to use the IPMT function in Excel VBA code:
Dim LNumber As Currency LNumber = IPmt(0.0525/1, 4, 10*1, 6500)
In this example, the variable called LNumber would now contain the value of -256.504747.
(scroll to see more)