Total borrowings at June 30, 2024 were $149.0 million, with a weighted average rate and term of 3.96% and 21 months, respectively. At June 30, 2024 and December 31, 2023, the Company had $121.7 million and $126.7 million, respectively, of term FHLB advances outstanding. The Company had $25.0 million of FHLB overnight borrowings outstanding at June 30, 2024 and none at December 31, 2023. The Company had no borrowings outstanding under lines of credit with correspondent banks at June 30, 2024 and December 31, 2023. The Company utilizes a number of strategies to manage interest rate risk, including interest rate swap agreements which currently provide a benefit to net interest income.
Stockholders’ equity was $190.1 million at June 30, 2024 compared to $184.8 million at December 31, 2023. The $5.2 million increase was primarily due to an increase of $3.4 million in retained earnings and a decrease of $1.1 million in accumulated other comprehensive loss. The increase in retained earnings was due primarily to net income of $4.9 million for the six months ended June 30, 2024, which was offset by $1.5 million of dividends declared. The accumulated other comprehensive loss at June 30, 2024 was 0.70% of total equity and was comprised of a $1.4 million after tax net unrealized loss on the investment portfolio, partially offset by a $0.1 million after tax net unrealized gain on derivatives.
Loan Portfolio
On a linked quarter basis, the Company experienced net loan growth of $7.4 million, a 1.5% increase on an annualized basis. For the six months ended June 30, 2024, the Bank’s loan portfolio grew to $2.01 billion, for an increase of $55.8 million or 5.7% annualized. Growth was concentrated primarily in residential, SBA and C&I loans. At June 30, 2024, the Company’s residential loan portfolio (including home equity) amounted to $761.0 million, with an average loan balance of $493 thousand and a weighted average loan-to-value ratio of 57%. Commercial real estate and multifamily loans totaled $1.11 billion at June 30, 2024, with an average loan balance of $1.5 million and a weighted average loan-to-value ratio of 59%. As will be discussed below, only approximately 37% of our multifamily portfolio is subject to rent regulation. The Company’s commercial real estate concentration ratio continued to improve, decreasing to 403% of capital at June 30, 2024 from 432% of capital at December 31, 2023, with loans secured by office space accounting for 2.3% of the total loan portfolio and totaling $46.2 million. The Company’s loan pipeline at June 30, 2024 is approximately $164 million, with approximately 97% being niche-residential, conventional C&I and SBA and USDA lending opportunities.
Historically, the Bank generated additional income by strategically originating and selling residential and government guaranteed loans to other financial institutions at premiums, while also retaining servicing rights in some sales. However, with the rapid increases in interest rates in recent years, the appetite among the Bank’s purchasers of residential loans for acquiring pools of loans declined, eliminating the Bank’s ability to sell residential loans in its portfolio on desirable terms. Commencing in late 2023, the Bank initiated development of a flow origination program under which the Bank originates individual loans for sale to specific buyers, thereby positioning the Bank to resume residential loan sales and generate fee income to complement sale premiums earned from the origination of SBA loans. During the quarter ended June 30, 2024, the Company sold $2.9 million of residential loans under this program and recorded gains on sale of loans held-for-sale of $0.1 million. We expect the volume of activity to increase as the year progresses and our flow pipeline continues to build. Because we continue to prioritize the management of liquidity and capital, new business development is largely focused on flow originations over portfolio growth.
The Bank’s investment in government guaranteed lending continues to yield results. During the quarters ended June 30, 2024 and 2023, the Company sold $28.0 million and $12.6 million, respectively, of SBA loans and recorded gains on sale of loans held-for-sale of $2.5 million and $1.1 million, respectively.