Loans
Loans increased $931.3 million, or 9.9%, to $10.4 billion as of September 30, 2022, compared to $9.4 billion as of June 30, 2022, and increased $4.6 billion, or 78.2%, compared to $5.8 billion as of September 30, 2021. The increases in loan balances were primarily due to an increase in loan fundings, which in the third quarter of 2022 were $1.6 billion, a decrease of $638 million, or 28.4%, from the second quarter of 2022 and an increase of $804 million, or 100.3%, from the third quarter of 2021. Loan balances during the quarter were also impacted by loan payoffs of $672 million, compared to payoffs of $719 million in the second quarter of 2022 and $583 million in the third quarter of 2021. During the third quarter of 2022, the balance of loans held for sale was transferred to loans held for investment, as we no longer intend to sell them due to the current rising rate environment.
Contributing to loan originations during the quarter, our commercial business division funded $688 million of new commercial loans during the quarter, of which 45% were adjustable commercial revolving lines of credit. The remaining C&I originations were comprised of $196 million of public finance loans, $115 million of commercial term loans, $29 million of owner occupied commercial real estate loans, and $39 million of equipment finance leases. The elevated public finance originations were attributable to the remaining pipeline driven by the temporary increase in demand for bank loans away from the bond market by public municipalities which took place in the second quarter. As we anticipated, we experienced heightened originations in this channel in July of $180 million but returned to our historical run rate starting in August with fundings of $15 million for the month. Our public finance division continues to benefit both our credit quality with historically low loan losses, while also lowering our effective tax rate over time.
Investment Securities
Investment securities were $1.1 billion as of September 30, 2022, compared to $1.2 billion as of June 30, 2022, and increased $221.3 million, or 24.5%, compared to $901.7 million as of September 30, 2021. The increase from September 30, 2021, was primarily due to the investment securities acquired in the TGR Financial acquisition during the fourth quarter of 2021.
The allowance for credit losses for investments increased by $0.3 million from the prior quarter, to $11.5 million as of September 30, 2022, compared to $11.2 million as of June 30, 2022, and increased $1.4 million, compared to $10.1 million as of September 30, 2021. The increases were a result of faster than expected prepayments that negatively impacted the projected cash flows on interest-only strip securities.
Deposits and Borrowings
Deposits were $9.5 billion as of September 30, 2022, and June 30, 2022, and increased $2.7 billion, or 39.5%, compared to $6.8 billion as of September 30, 2021. Deposits in our commercial deposit services division increased by $482.3 million during the third quarter of 2022 compared to the second quarter of 2022, which was offset by a $695.7 decrease in retail branch deposits. These changes were primarily due to a $481 million reclassification of deposits out of the retail branches and into our commercial services division, following the conversion of TGR Financial. Noninterest-bearing demand deposits measured 37.2% of total deposits as of September 30, 2022, compared to 37.6% of total deposits as of June 30, 2022, while core deposits decreased by $175 million compared to the linked quarter, and measured 97% of total deposits as of September 30, 2022, compared to 99% of total deposits as of June 30, 2022. Commercial business deposits were 73% of total core deposits as of September 30, 2022.