Net loans increased $14.3 million, or 3.1%, to $475.5 million at June 30, 2022, from $461.2 million at June 30, 2021. During the year ended June 30, 2022, the Company originated $113.3 million of new loans, including $95.7 million of commercial loans, that were partially offset by $99.0 million of loan paydowns and payoffs. The COVID-19 pandemic and interest rate environment have created a highly competitive market for lending. The Company maintains conservative lending practices and is focused on lending to borrowers with high credit quality within its market footprint.
Bank-owned life insurance increased $4.0 million, or 11.2%, to $39.2 million at June 30, 2022, from $35.2 million at June 30, 2021. Management purchased $2.9 million of bank-owned life insurance during the year ended June 30, 2022. Management believes that bank-owned life insurance is a low-risk investment alternative with an attractive yield.
During the quarter ended June 30, 2022, the Company transferred properties with a total carrying value of $1.6 million to the held for sale classification and recorded a $20 thousand loss on disposition of fixed assets. The Company intends to sell these properties by December 31, 2022.
Deposits increased $53.5 million, or 9.7%, to $606.6 million at June 30, 2022, from $553.1 million at June 30, 2021. The increase in deposits was primarily due to an $82.5 million, or 21.0%, increase in core deposits, partially offset by a $29.0 million decrease in non-core 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 increased $24.0 million, or 58.5%, to $65.0 million at June 30, 2022, from $41.0 million at June 30, 2021. The increase in borrowings was due to $65.0 million of new short-term advances, partially offset by the strategic prepayment of $41.0 million of high-cost, long-term advances during the year ended June 30, 2022.
Stockholders’ equity decreased $24.6 million, or 11.3%, to $192.3 million at June 30, 2022, from $216.9 million at June 30, 2021. The decrease in stockholders’ equity was primarily due to a $15.3 million increase in the accumulated other comprehensive loss component of the unrealized loss on available-for-sale securities, the repurchase of 766,936 shares at a cost of $9.1 million, or $11.84 per share, the payment of a $0.30 per share one-time special cash dividend in August 2021 totaling $4.6 million and the payment of two $0.03 quarterly cash dividends in February 2022 and May 2022 totaling $592 thousand, partially offset by $4.2 million of net income recorded during the year ended June 30, 2022. Book value per share measured $12.91 as of June 30, 2022 compared to $14.30 as of June 30, 2021, and tangible book value per share(3) measured $12.54 as of June 30, 2022 compared to $13.92 as of June 30, 2021.
Net Interest Income
For the quarter ended June 30, 2022, net interest income was $6.2 million, an increase of $821 thousand, or 15.2%, from the quarter ended June 30, 2021. The increase in net interest income was primarily due to an increase in 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 excess cash to purchase high-quality investments resulting in an increase in the average balance and yield on investments. During the quarter ended June 30, 2022, we also originated $36.3 million of new loans, including $31.4 million of commercial loans. In addition, we experienced a $231 thousand decrease in interest expense primarily due to the re-pricing of deposits and the prepayment of high-cost, long-term advances from the FHLB of Pittsburgh. During the quarter ended June 30, 2022, we replaced the high-cost, long-term advances with short-term advances. The net interest margin measured 3.20% for the quarter ended June 30, 2022 compared to 3.06% for the quarter ended March 31, 2022 and 2.89% for the quarter ended June 30, 2021. The increase in the net interest margin during the quarter ended June 30, 2022 compared to the quarter ended March 31, 2022 was primarily due to the previously mentioned improvement in asset mix and prepayment of high-cost advances from the FHLB of Pittsburgh. 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 year ended June 30, 2022, net interest income was $23.0 million, an increase of $1.5 million, or 6.99%, from the year ended June 30, 2021. The increase in net interest income was primarily due to an increase in 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 to purchase high-quality investments resulting in an increase in interest income on investments. During the year ended June 30, 2022, we originated $113.3 million of new loans, including $89.5 million of commercial loans, that were partially offset by significant payoffs primarily in the residential portfolio. In addition, we experienced a $1.8 million decrease in interest expense primarily due to