Comparison of Operating Results for the Years Ended December 31, 2022 and 2021
General. Net income increased $10.6 million or 59.1%, to $28.5 million for the year ended December 31, 2022 from $17.9 million for the year ended December 31, 2021. The increase resulted from a $15.6 million increase in net interest income and a $3.9 million increase in noninterest income, partially offset by an increase in noninterest expense of $6.9 million.
Net Interest Income. Net interest income increased $15.6 million, or 35.8%, to $59.3 million for the year ended December 31, 2022 from $43.7 million for the year ended December 31, 2021, due to a $16.5 million increase in interest income, partially offset by a $819 thousand increase in interest expense.
Our net interest margin increased 50 basis points to 4.99% for the year ended December 31, 2022 from 4.49% for the year ended December 31, 2021. The increase in net interest margin was due to a 55 basis point increase in interest earning asset yields, offset by an increase in the cost of interest bearing liabilities of 10 basis points, primarily due to growth in higher yielding variable rate commercial loans and increases in short-term interest rates. Growth was partially funded by a $69.6 million, or 16.7%, increase in average noninterest bearing demand deposits to $485.3 million for the year ended December 31, 2022 from $415.7 million for the year ended December 31, 2021.
Interest Income. Interest income increased $16.5 million, or 37.0%, to $61.0 million for the year ended December 31, 2022 from $44.5 million for the year ended December 31, 2021 and was attributable to an increase in loan, securities, interest earning cash and other and reverse repurchase interest income.
Loan interest income increased $12.5 million, or 30.0%, to $54.0 million for the year ended December 31, 2022 from $41.5 million for the year ended December 31, 2021. This increase was attributable to a $137.8 million, or 23.2%, increase in the average loan balance of our commercial and multifamily loan portfolios as well as a 61 basis point increase in loan yields, driven primarily by our higher yielding variable rate commercial loans (tied to prime) and increases in short-term interest rates.
Securities interest income increased $2.0 million, or 91.4%, to $4.2 million for the year ended December 31, 2022 from $2.2 million for the year ended December 31, 2021. This increase was attributable to a 41 basis point increase in yields, driven by opportunistic investment of excess liquidity into the securities portfolio, as well as a $70.5 million, or 52.7%, increase in average securities balances at a higher rate.
Interest earning cash and other interest income increased $1.4 million, to $1.6 million for the year ended December 31, 2022 from $193 thousand for the year ended December 31, 2021. This increase was attributable to a 145 basis point increase in yields driven by the movement in short-term interest rates.
Securities purchased under agreements to resell interest income increased $632 thousand to $1.3 million for the year ended December 31, 2022 from $619 thousand for the year ended December 31, 2021. The movement in short-term interest rates resulted in a 133 basis point increase in yields.
Interest Expense. Interest expense increased $819 thousand, or 98.9%, to $1.6 million for the year ended December 31, 2022 from $828 thousand for the year ended December 31, 2021, as expense was impacted by both increases in the volume and rate on interest bearing deposits. Interest bearing deposit rates increased a modest 10 basis points to 0.28% for the year ended December 31, 2022 from 0.18% for the year ended December 31, 2021. Our average balance of interest bearing deposits increased $139.4 million, or 30.9%, to $590.3 million for the year ended December 31, 2022 from $450.9 million for the year ended December 31, 2021 attributable primarily to litigation related escrow deposit growth.
Provision for Loan Losses. Our provision for loan losses was $3.5 million for the year ended December 31, 2022 compared to $7.0 million for the year ended December 31, 2021. This decrease was due to the charge recognized in 2021 on our legacy NFL consumer post settlement loan portfolio. The 2022 provision was general reserve driven considering loan growth and qualitative factors associated with the current uncertain economic environment.