XML 22 R7.htm IDEA: XBRL DOCUMENT v3.22.4
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Cash flow from operating activities      
Net income $ 475,507 $ 1,003,490 $ 1,646,884
Adjustments to reconcile net income to net cash provided by (used in) operating activities:      
Net gains on loans held for sale at fair value (791,633) (2,464,401) (2,740,785)
Change in fair value of mortgage servicing rights, mortgage servicing liabilities and excess servicing spread (354,176) 416,943 1,477,023
Mortgage servicing rights hedging gains 631,484 475,215 (918,180)
Capitalization of interest on loans held for sale (3,231) (19,244) (119,740)
Accrual of interest on excess servicing spread financing payable to PennyMac Mortgage Investment Trust   1,280 8,418
Amortization of debt issuance costs 19,198 24,321 19,048
Change in fair value of investment in common shares of PennyMac Mortgage Investment Trust 371 (195) 567
Results of real estate acquired in settlement of loans (2,510) (1,993) (1,036)
Repricing of payable to exchanged Private National Mortgage Acceptance Company, LLC unitholders under tax receivable agreement (576)   (280)
Stock based compensation expense 42,552 37,794 45,105
(Reversal of) provision for servicing advance losses (36,075) (47,878) 125,898
Depreciation and amortization 34,409 28,645 25,575
Impairment of capitalized software   728 13,145
Amortization of operating lease right-to-use assets 15,831 14,295 12,284
Purchase of loans held for sale from PennyMac Mortgage Investment Trust (50,575,617) (67,851,634) (63,618,185)
Origination of loans held for sale (20,297,064) (54,857,114) (31,783,465)
Purchase of loans held for sale from non-affiliates (1,802,769) (4,896,527) (3,799,336)
Purchase of loans from Ginnie Mae securities and early buyout investors (6,199,212) (23,644,025) (11,156,684)
Sale to non-affiliates and principal payments of loans held for sale 84,345,379 154,450,942 102,840,312
Sale of loans held for sale to PennyMac Mortgage Investment Trust 298,862   2,248,896
Repurchase of loans subject to representations and warranties (92,924) (99,508) (58,375)
Settlement of repurchase agreement derivatives     8,270
Increase in servicing advances (36,534) (232,574) (391,440)
Decrease (increase) in receivable from PennyMac Mortgage Investment Trust 2,776 35,243 (48,320)
Sale of real estate acquired in settlement of loans 19,761 14,555 32,555
Decrease (increase) in other assets 191,384 61,871 (334,045)
(Decrease) increase in accounts payable and accrued expenses (109,485) 34,666 135,314
Decrease in operating lease liabilities (19,392) (16,310) (13,421)
(Decrease) increase in payable to PennyMac Mortgage Investment Trust (36,708) 36,549 37,642
Payments to exchanged Private National Mortgage Acceptance Company, LLC unitholders under tax receivable agreement (3,855) (4,635) (10,713)
Increase in income taxes payable 317,482 62,562 118,131
Net cash provided by (used in) operating activities 6,033,235 2,563,061 (6,198,938)
Cash flow from investing activities      
(Increase) decrease in short-term investment (5,321) 8,344 59,394
Net change in assets purchased from PMT under agreement to resell   80,862 26,650
Net settlement of derivative financial instruments used for hedging of mortgage servicing rights (871,878) (434,397) 913,064
Purchase of mortgage servicing rights (3,993)   (25,473)
Acquisition of capitalized software (71,935) (48,980) (48,090)
Purchase of furniture, fixtures, equipment and leasehold improvements (7,159) (7,899) (10,671)
Decrease (increase) in margin deposits 238,704 97,701 (131,840)
Net cash (used in) provided by investing activities (721,582) (304,369) 783,034
Cash flow from financing activities      
Sale of assets under agreements to repurchase 75,076,185 136,179,744 102,232,005
Repurchase of assets sold under agreements to repurchase (79,368,855) (138,546,379) (96,709,690)
Issuance of mortgage loan participation purchase and sale certificates 19,312,943 23,784,510 23,607,079
Repayment of mortgage loan participation purchase and sale certificates (19,504,845) (23,826,142) (23,583,550)
Issuance of notes payable secured by mortgage servicing assets 650,000    
Issuance of unsecured senior notes   1,150,000 650,000
Repayments of obligations under capital lease (3,489) (8,375) (8,946)
Repayment of excess servicing spread financing   (134,624) (32,377)
Payment of debt issuance costs (19,606) (37,567) (30,112)
Issuance of common stock pursuant to exercise of stock options 2,947 7,536 9,389
Payment of withholding taxes relating to stock-based compensation (7,780) (8,993) (5,265)
Payment of dividend to holders of common stock (54,621) (52,896) (30,947)
Repurchase of common stock (406,086) (958,194) (337,479)
Net cash (used in) provided by financing activities (4,323,207) (2,451,380) 5,760,107
Net increase (decrease) in cash and restricted cash 988,446 (192,688) 344,203
Cash and restricted cash at beginning of year 340,093 532,781 188,578
Cash and restricted cash at end of year 1,328,539 340,093 532,781
Cash 1,328,536 340,069 532,716
Restricted cash included in Other assets 3 24 65
Supplemental cash flow information:      
Cash paid for interest 329,975 389,527 272,970
Cash (refunds received) paid for income taxes, net (127,742) 293,131 475,594
Non-cash investing activities:      
Mortgage servicing rights resulting from loan sales 1,718,094 1,861,949 1,138,045
Operating right-of-use assets recognized 1,364 28,401 14,128
Non-cash financing activities:      
Mortgage servicing liabilities resulting from loan sales   106,631 23,325
Issuance of Excess servicing spread payable to PennyMac Mortgage Investment Trust pursuant to a recapture agreement   557 2,093
Issuance of common stock in settlement of director fees $ 205 $ 200 $ 194