Total stockholders’ equity at December 31, 2022 increased $3.0 million or 1.4% when compared to the end of 2021. This increase was primarily due to the $26.5 million of earnings recorded during the twelve months of 2022, offset by the $9.4 million of common stock repurchased, the $6.5 million of cash dividends paid during the period, and the $9.1 million decrease in the accumulated other comprehensive income on the available-for-sale investment portfolio related to an increase in the interest rate yield curve. The Bank completed its 2022 stock buyback program during the fourth quarter and in total repurchased 324,017 shares of common stock at a total cost of $9.4 million and a weighted average cost of $29.07 per share. The ratio of equity to total assets at December 31, 2022 and at December 31, 2021, was 13.7% and 12.8%, respectively.
We manage our balance sheet based on a number of interrelated criteria, such as changes in interest rates, fluctuations in certain asset and liability categories whose changes are not totally controlled by us, swings in deposit account balances driven by depositors’ needs, prepayments and issuer call options exercised on securities available for sale, early payoffs on loans, investment opportunities presented by market conditions, lending originations, capital provided by earnings, and active management of our overall liquidity positions. The management of these dynamic and interrelated elements of our balance sheet results in fluctuations in balance sheet items throughout the year.
Comparison of Operating Results for the Years Ended December 31, 2022 and 2021
General.
Net income for the year ended December 31, 2022 was $26.5 million, an increase of approximately $4.0 million, or 17.8%, as compared to the year ended December 31, 2021. This increase over 2021’s results was primarily due to a $5.5 million increase in net-interest income, a $3.2 million decrease in the provision for loan losses and a $196,000 increase in non-interest income, partially offset by a $4.0 million increase in non-interest expenses and an $856,000 increase in income tax expense.
Net interest income.
Net interest income for the twelve-month period ended December 31, 2022 was $68.1 million, an increase of $5.5 million, or 8.8%, over 2021. This increase was due to a $4.8 million increase in interest earned on earning assets and a $674,000 decline in interest expense. For the twelve-month period ended December 31, 2022, the average outstanding balance of earning assets decreased by $13.8 million and average outstanding interest-bearing liabilities decreased $17.0 million. The total interest rate on average interest-earning assets for the twelve-month periods ended December 31, 2022 and 2021 was 4.80% and 4.45%, respectively. The net interest margin increased 39 basis points from 4.02% for the year ended December 31, 2021 to 4.41% for the year ended December31, 2022.
Total interest and dividend income.
Total interest and dividend income increased $4.8 million, or 6.9%, to $74.1 million for the year ended December 31, 2022, compared to $69.3 million for the prior year. The improvement in interest income resulted from an increase in the yield on earning assets of 35 basis points to 4.80% for the twelve-month period ended December 31, 2022.
Interest income and fees on loans increased $3.6 million, or 5.4%, to $71.0 million for the year ended December 31, 2022, compared to $67.3 million for the prior year. The increase was attributable to a 29 basis point increase in the year-over-year average yield on loans to 5.16%, due to the rising interest rates over the period.
Interest income on securities increased approximately $434,000, or 25.1%, for the year ended December 31, 2022 compared to the prior year. This decrease was attributable to an $9.8 million increase in average balances and a 25 basis point increase in the yield earned on the securities portfolio.
Other interest and dividends increased $726,000, or 368.5%, to $923,000 for the year ended December 31, 2022, compared to $197,000 for the prior year due to an increase in federal funds sold. This increase was due to a 94 basis point increase in the yield and a $32.2 million increase in average balances of federal funds sold.
Interest Expense.
Total interest expense decreased $674,000, or 10.1%, for the year ended December 31, 2022 compared to the prior year. This decrease was the result of a 5 basis point decrease in the cost of interest-bearing liabilities and a decrease of $17.0 million in average interest-bearing liabilities.
Interest expense on borrowings was not meaningful for either period presented.
36