in time deposits. The decrease in time deposits was consistent with the planned run-off associated with our re-pricing of higher-cost, non-relationship-based deposit accounts.
Borrowings decreased $21.0 million, or 51.2%, to $20.0 million at March 31, 2022, from $41.0 million at June 30, 2021. The decrease in borrowings was due to the strategic prepayment of $21.0 million of higher-cost advances from the FHLB of Pittsburgh during the nine months ended March 31, 2022.
Stockholders’ equity decreased $10.6 million, or 4.9%, to $206.3 million at March 31, 2022, from $216.9 million at June 30, 2021. The decrease in stockholders’ equity was primarily due to the payment of a $0.30 per share one-time special cash dividend in August 2021 totaling $4.6 million and a $0.03 quarterly cash dividend in February 2022 totaling $455 thousand, as well as a $9.1 million increase in the accumulated other comprehensive loss component of the unrealized loss on available-for-sale securities, partially offset by $3.2 million of net income recorded during the nine months ended March 31, 2022. Book value per share measured $13.62 as of March 31, 2022 compared to $14.30 as of June 30, 2021, and tangible book value per share(3) measured $13.25 as of March 31, 2022 compared to $13.92 as of June 30, 2021. The Company commenced its previously announced stock repurchase program on March 25, 2022 following the one-year anniversary of the completion of its second-step conversion on March 24, 2021. The Company purchased and retired a total of 22,800 shares of its common stock under the stock repurchase program during the three months ended March 31, 2022.
Net Interest Income
For the three months ended March 31, 2022, net interest income was $6.0 million, an increase of $664 thousand, or 12.5%, from the quarter ended March 31, 2021. The increase in net interest income was primarily due to an increase in the interest income on investments and a decrease in interest expense on deposits and borrowings, partially offset by a decrease in interest income on loans. We improved our asset mix by utilizing some of the excess cash on our statement of financial condition to purchase high-quality investments resulting in an increase in the average balance and yield on investments. We also originated $25.2 million of new loans, including $20.7 million of commercial loans, that were offset by significant payoffs primarily in the residential portfolio. In addition, we experienced a $310 thousand decrease in interest expense primarily due to the re-pricing of deposits and the prepayment of advances from the FHLB of Pittsburgh. The net interest margin measured 3.06% for the three months ended March 31, 2022 compared to 3.00% for the three months ended December 31, 2021 and 2.91% for the three months ended March 31, 2021. The increase in the net interest margin during the three months ended March 31, 2022 compared to the three months ended December 31, 2021 was primarily due to the previously mentioned improvement in asset mix. The year-over-year increase in the net interest margin was primarily due to the decrease in the cost of deposit funds and borrowed funds, as well as an increase in our yield on investment securities.
For the nine months ended March 31, 2022, net interest income was $16.8 million, an increase of $640 thousand, or 4.0%, from the nine months ended March 31, 2021. The increase in net interest income was primarily due to an increase in the interest income on investments and a decrease in interest expense on deposits and borrowings, partially offset by a decrease in interest income on loans. As previously discussed, we improved our asset mix by utilizing some of the excess cash we hold on our statement of financial condition to purchase high-quality investments resulting in an increase in interest income on investments. We also originated $69.2 million of new loans, including $57.2 million of commercial loans, that were offset by significant payoffs primarily in the residential portfolio. In addition, we experienced a $1.6 million decrease in interest expense primarily due to the re-pricing of deposits and the prepayment of advances from the FHLB of Pittsburgh. The net interest margin measured 2.96% for the nine months ended March 31, 2022 compared to 3.08% for the same period in 2021. The decrease in the net interest margin is consistent with the decrease in interest rates and margin compression during that period that was primarily due to the COVID-19 pandemic and its impact on the economy and interest rate environment.
Non-interest Income
For the three months ended March 31, 2022, non-interest income totaled $315 thousand, a decrease of $220 thousand, or 41.1%, from the three months ended March 31, 2021. The decrease was primarily due to a $160 thousand net gain on sale of other real estate owned during the three months ended March 31, 2021 and a $236 thousand unrealized loss on equity securities recorded during the three months ended March 31, 2022. These decreases to non-interest income were partially offset by a $149 thousand increase in earnings on bank-owned life insurance due to the purchase of additional BOLI during the fourth quarter of 2021 and the first quarter of 2022.
For the nine months ended March 31, 2022, non-interest income totaled $1.7 million, a decrease of $91 thousand, or 5.1%, from the nine months ended March 31, 2021. The decrease in non-interest income was primarily due to a $435 thousand net gain on