XML 24 R7.htm IDEA: XBRL DOCUMENT v3.22.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Cash flow from operating activities    
Net income $ 302,756 $ 581,097
Adjustments to reconcile net income to net cash provided by operating activities:    
Net gains on loans held for sale at fair value (521,026) (1,336,989)
Change in fair value of mortgage servicing rights, mortgage servicing liabilities and excess servicing spread (325,013) 113,842
Mortgage servicing rights hedging gains 393,865 351,033
Capitalization of interest and advance on loans held for sale (2,817) (1,925)
Accrual of interest on excess servicing spread financing payable to PennyMac Mortgage Investment Trust   1,280
Amortization of debt issuance costs 10,133 13,977
Change in fair value of investment in common shares of PennyMac Mortgage Investment Trust 263 (475)
Results of real estate acquired in settlement of loans (1,353) (1,320)
Stock based compensation expense 24,223 19,771
Reversal of provision for servicing advance losses (51,293) (33,590)
Impairment of capitalized software   728
Depreciation and amortization 14,375 14,967
Amortization of right-to-use assets 7,755 6,918
Purchase of loans held for sale from PennyMac Mortgage Investment Trust (23,982,890) (35,474,697)
Origination of loans held for sale (15,128,696) (27,731,285)
Purchase of loans held for sale from non-affiliates (1,215,388) (2,664,336)
Purchase of loans from Ginnie Mae securities and early buyout investors (4,752,678) (11,562,768)
Sale to non-affiliates and principal payments of loans held for sale 50,841,788 79,007,900
Sale of loans held for sale to PennyMac Mortgage Investment Trust 298,862  
Repurchase of loans subject to representations and warranties (45,176) (43,914)
Decrease in servicing advances 128,940 12,543
(Increase) decrease in receivable from PennyMac Mortgage Investment Trust (3,998) 18,058
Sale of real estate acquired in settlement of loans 9,937 9,503
Payments to exchanged Private National Mortgage Acceptance Company, LLC unitholders under tax receivable agreement (3,516) (3,350)
Decrease (increase) in other assets 134,692 63,006
(Decrease) increase in accounts payable and accrued expenses (54,033) 61,121
Decrease in operating lease liabilities (8,040) (8,265)
Decrease in payable to PennyMac Mortgage Investment Trust (140,615) (28,584)
Increase (decrease) in income taxes payable 200,459 (52,648)
Net cash provided by operating activities 6,131,516 1,331,598
Cash flow from investing activities    
Decrease in short-term investment 1,912 11,497
Net change in assets purchased from PMT under agreement to resell   80,862
Net settlement of derivative financial instruments used for hedging of mortgage servicing rights (574,109) (345,621)
Purchase of furniture, fixtures, equipment and leasehold improvements (4,089) (5,049)
Acquisition of capitalized software (39,267) (21,594)
Decrease in margin deposits 188,176 134,666
Net cash used in investing activities (427,377) (145,239)
Cash flow from financing activities    
Sale of assets under agreements to repurchase 42,087,498 69,437,269
Repurchase of assets sold under agreements to repurchase (46,938,843) (70,839,012)
Issuance of mortgage loan participation purchase and sale certificates 9,556,801 12,508,356
Repayment of mortgage loan participation purchase and sale certificates (9,533,871) (12,517,580)
Repayments of obligations under capital lease (3,489) (4,187)
Issuance of notes payable secured by mortgage servicing assets 500,000  
Issuance of unsecured senior notes   650,000
Repayment of excess servicing spread financing   (134,624)
Payment of debt issuance costs (12,892) (18,648)
Issuance of common stock pursuant to exercise of stock options 1,380 3,397
Payment of withholding taxes relating to stock-based compensation (7,780) (8,546)
Payment of dividend to holders of common stock (22,564) (27,940)
Repurchase of common stock (255,057) (443,439)
Net cash used in financing activities (4,628,817) (1,394,954)
Net increase (decrease) in cash and restricted cash 1,075,322 (208,595)
Cash and restricted cash at beginning of period 340,093 532,781
Cash and restricted cash at end of period 1,415,415 324,186
Cash 1,415,396 324,158
Restricted cash included in Other assets 19 28
Supplemental cash flow information:    
Cash paid for interest 154,745 208,015
Cash (refunds received) paid for income taxes, net (91,169) 257,074
Non-cash investing activities:    
Mortgage servicing rights resulting from loan sales 1,014,555 953,895
Operating right-of-use assets recognized 793 7,813
Non-cash financing activities:    
Mortgage servicing liabilities resulting from loan sales   64,383
Issuance of Excess servicing spread payable to PennyMac Mortgage Investment Trust pursuant to a recapture agreement   557
Issuance of common stock in settlement of directors' fees $ 102 $ 101