deposit accounts, partially offset by an $8.5 million decrease in non-interest bearing checking accounts and a $7.8 million decrease in savings accounts. The interest rate environment has created a highly competitive market for deposits.
Borrowings decreased $5.0 million, or 7.7%, to $60.0 million at December 31, 2022, from $65.0 million at June 30, 2022.
Stockholders’ equity decreased $13.1 million, or 6.8%, to $179.2 million at December 31, 2022, from $192.3 million at June 30, 2022. The decrease in stockholders’ equity was primarily due to the payment of a $0.03 per share quarterly cash dividend in August 2022 totaling $419 thousand and in November 2022 totaling $405 thousand and a $7.0 million increase in the accumulated other comprehensive loss component of the unrealized loss on available for sale securities, as well as the repurchase of 739,359 shares at a total cost of $8.6 million, or $11.58 per share, during the six months ended December 31, 2022 under the Company’s previously announced stock repurchase programs. These decreases to stockholders’ equity were partially offset by $2.1 million of net income during the six months ended December 31, 2022. Book value per share measured $12.67 as of December 31, 2022, compared to $12.91 as of June 30, 2022, and tangible book value per share(4) measured $12.29 as of December 31, 2022, compared to $12.54 as of June 30, 2022.
Net Interest Income
For the three months ended December 31, 2022, net interest income was $6.0 million, an increase of $506 thousand, or 9.2%, from the three months ended December 31, 2021. The increase in net interest income was primarily due to an increase in interest income on investments and loans, partially offset by an increase in interest expense on borrowings and deposits. The net interest margin measured 3.10% for the three months ended December 31, 2022, compared to 3.00% for the three months ended December 31, 2021. The increase in the net interest margin during the three months ended December 31, 2022, compared to the same period in 2021 was primarily due to an improvement in asset mix during the twelve months ended December 31, 2022, including a $41.5 million decrease in cash and cash equivalents, a $35.5 million increase in investment securities and an $35.4 million increase in net loans.
For the six months ended December 31, 2022, net interest income was $12.3 million, an increase of $1.5 million, or 13.8%, from the six months ended December 31, 2021. The increase in net interest income was primarily due to an increase in interest income on investments and loans, partially offset by an increase in interest expense on borrowings and deposits. The net interest margin measured 3.14% for the six months ended December 31, 2022, compared to 2.90% for the six months ended December 31, 2021. The increase in the net interest margin during the six months ended December 31, 2022, compared to the same period in 2021 was primarily due to the previously mentioned improvement in asset mix during the twelve months ended December 31, 2022.
Non-interest Income
For the three months ended December 31, 2022, non-interest income totaled $902 thousand, an increase of $238 thousand, or 35.8%, from the three months ended December 31, 2021. The increase was primarily due to a $300 thousand net gain on the sale of premises and equipment associated with the sale of two properties with a total carrying value of $1.5 million that were transferred to the held for sale classification during the three months ended June 30, 2022.
For the six months ended December 31, 2022, non-interest income totaled $1.2 million, a decrease of $185 thousand, or 13.5%, from the six months ended December 31, 2021. The decrease was primarily due to a $359 thousand increase in the unrealized loss on equity securities and a $62 thousand net gain on the sale of securities recorded during the six months ended December 31, 2021, partially offset by the previously discussed $300 thousand net gain on the sale of premises and equipment recorded during the three months ended December 31, 2022.
Non-interest Expense
For the three months ended December 31, 2022, non-interest expense totaled $5.7 million, an increase of $821 thousand, or 17.0%, from the three months ended December 31, 2021. The increase in non-interest expense was primarily due to a $426 thousand increase in salaries and employee benefits due to annual merit increases and a $351 thousand increase in employee stock-based compensation expense associated with the Company’s 2022 Equity Incentive Plan. The increase in non-interest expense can also be attributed to a $181 thousand increase in occupancy and equipment expense associated with new branch locations in Doylestown, Pennsylvania and Hamilton Township, New Jersey that were opened during the three months ended December 31, 2021. In addition, the increase in non-interest expense can be attributed to a $104 thousand increase in director stock-based compensation expense associated with the Company’s 2022 Equity Incentive Plan. During the three months ended September 30, 2022, the Company made a strategic decision to close the Bank’s branch office located in Collingswood, New