Function note

IPMT and PPMT reuse PMT's quotient, one through expm1 and the other through exp

FUNC.IPMT · FUNC.PPMT

FN-IPMT-001: IPMT and PPMT reuse PMT's quotient, one through expm1 and the other through exp

Detail for matching Excel's bits · measured · recorded 2026-11-04

With RN(v) meaning v rounded to 64 bits on the x87 unit and then stored to binary64, take L and q from PMT (FN-PMT-001; with nonzero fv, q = RN(N/em) with an fv numerator that is open). For period k of nper with end-of-period payments, m = nper-k+1, t = -(m*L), em_m is the expm1 of t by the route in FN-PMT-001, and u = exp(t) stored. Then IPMT = -RN(RN(RN(q*em_m) - RN(fv*u))*rate) and PPMT = RN(RN(RN(q - fv)*u)*rate). Interest takes the Kahan expm1, and principal takes the exponential it starts from: 1+em_m fits 36 of 74 principal rows where u fits all 74. So neither answer is the payment less the other (FN-PPMT-001).

Call and input routeInputsExcelCorrect valueRecorded in
=IPMT(0.05/12,12,360,200000)
formula-literal
As typed-822.0867740866778
0xc089b0b1b69cc35f
-822.0867740866777
0xc089b0b1b69cc35e
Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA
=PPMT(0.05/12,12,360,200000)
formula-literal
As typed-251.5564719376004
0xc06f71ce9e3ca456
-251.5564719376003
0xc06f71ce9e3ca452
Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA

Correct value: mpmath at 800 bits with rate the binary64 0x3f71111111111111 that 0.05/12 evaluates to; correctly rounded.

Correct value: mpmath at 800 bits with rate the binary64 0x3f71111111111111 that 0.05/12 evaluates to; correctly rounded.

Basis: fv 0, type 0: IPMT 95 of 95 and PPMT 74 of 74 recorded rows, plus 64 of 64 fresh PPMT(r,1,1,pv) and PPMT(r,1,2,pv) readings. Nonzero fv, type 0: PPMT 25 of 27, IPMT 18 of 27. Over every recorded row in the evidence repository IPMT matches 48 of 57 and PPMT 26 of 33. Replaying the formulas in exact rational arithmetic, with exp and ln correctly rounded, gives all 12 PPMT and all 12 IPMT answers of the loan below.

Open: Nonzero fv: PMT's open numerator of q carries through.

Open: type 1: PMT's open factor K carries through.

Evidence and capture sources

Machine-readable note records