Loan Sales and Securitizations. Growth in the loan origination pipeline has prompted the Company to seek additional avenues to effectively manage regulatory capital levels and reduce credit risk, in addition to issuing preferred stock. Accordingly, we have completed several loan sale and securitization transactions. In doing so, the Company has been able to effectively reduce its risk-weighted assets and maintain well-capitalized capital ratios. Also see Note 5: Loans and Allowance for Credit Losses on Loans.
General and Administrative Expenses. We expect to continue incurring increased noninterest expense attributable to general and administrative expenses related to building out and modernizing our operational infrastructure, marketing, and other administrative expenses to execute our strategic initiatives, as well as expenses to hire additional personnel and other costs required to continue our growth. We also expect costs to increase with additional regulatory compliance requirements.
Comparison of Operating Results for the Years Ended December 31, 2023 and 2022
General. Net income of $279.2 million for the year ended December 31, 2023 increased by $59.5 million, or 27%, compared to net income of $219.7 million for the year ended December 31, 2022. The increase was primarily driven by a $129.5 million, or 41%, increase in net interest income. The increase was partially offset by a $38.6 million, or 28%, increase in noninterest expense, $22.9 million, or 133%, increase in provision for credit losses, and an $11.3 million, or 9%, decrease in noninterest income.
Net Interest Income. Net interest income of $448.1 million for the year ended December 31, 2023 increased $129.5 million, or 41%, compared to $318.6 million for the year ended December 31, 2022. The 41% increase reflected a $597.0 million, or 124%, increase in interest income from higher yields and average balances on loans and loans held for sale, as well as higher average balances of securities held to maturity. These increases were partially offset by a $467.4 million, or 288%, increase in interest expense from higher interest rates and average balances of deposits, as well as higher rates on borrowings that were primarily related to the credit linked notes issued by the Company in March 2023. The interest rate spread of 2.51% for the year ended December 31, 2023, decreased 21 basis points compared to 2.72% for the year ended December 31, 2022.
Our net interest margin increased nine basis points, to 3.06%, for the year ended December 31, 2023 from 2.97% for the year ended December 31, 2022.
Interest Income. Interest income of $1.1 billion for the year ended December 31, 2023 increased $597.0 million, or 124%, compared to $480.8 million for the year ended December 31, 2022. This increase was primarily attributable to an increase in both higher average yields and average balances of loans and loans held for sale, as well as higher average balances in securities held to maturity. The higher yields were in response to higher interest rates set by the Federal Reserve.
Interest income of $959.7 million for loans and loans held for sale increased $507.7 million, or 112%, during 2023. The average balance of loans, including loans held for sale, during the year ended December 31, 2023 increased $3.1 billion, or 33%, to $12.4 billion compared to $9.3 billion for the year ended December 31, 2022. The average yield on loans increased 288 basis points, to 7.73% for the year ended December 31, 2023, compared to 4.85% for the year ended December 31, 2022. The increase in average balances of loans and loans held for sale was primarily due to increases in the healthcare, commercial lines of credit collateralize by mortgage servicing rights real estate and multi-family portfolios, but all loan portfolios contributed to the growth during the period. The increase in the average yield reflected a significant portion of our loan portfolio with adjustable rates that increased with market rates.
Interest income of $70.0 million for securities held to maturity increased $57.6 million, or 465%, during 2023. The average balance of securities held to maturity, during the year ended December 31, 2023 increased $820.0 million, to $1.1 billion compared to $277.5 million for the year ended December 31, 2022. The average yield on securities held to maturity increased 192 basis points, to 6.38 % for the year ended December 31, 2023, compared to 4.46% for the year ended December 31, 2022. The increase in average balance of securities held to maturity was primarily related to held to maturity securities acquired as part of loan securitizations that the Company originated.
Interest income of $21.6 million on securities available for sale increased $18.8 million, or 670%, during 2023. The average balance of securities available for sale increased $300.7 million, or 93%, to $623.7 million for the year ended December 31, 2023, from $323.0 million for the year ended December 31, 2022. The average yield increased 260