We provided access to the PPP to both our existing customers and new customers, to ensure small businesses in the communities we serve have access to this important lifeline for their businesses. In the second quarter of 2021 we originated $4.0 million in PPP loans with processing fees of $345,000 and processed forgiveness on $63.1 million loans. We have processed forgiveness on approximately 95% of PPP loans executed in 2020 with a success rate above 99%. As of June 30, 2021, PPP loans amounted to $105.2 million and there was $4.1 million in deferred processing fee income that will be recognized over the life of the loans.
We are also working with commercial loan customers that may need payment deferrals or other accommodations to keep their loans out of default through the COVID-19 pandemic. As of June 30, 2021, we have three active payment deferrals on commercial loans with a total principal balance of $11.0 million, or 0.5% of total commercial loans, all of which are loans included in an at-risk sector. As of June 30, 2021, 96.2% of the commercial deferrals have expired and the borrower is making payments as agreed, 0.1% of the commercial deferrals have expired and the borrower is delinquent, and 3.7% are in active deferral period. The active commercial deferrals are scheduled to expire during 2021. We are no longer providing deferrals under the Coronavirus Aid Relief and Economic Security Act but continue to consider accommodations in the normal course of business.
The residential loan and consumer loan portfolios have not experienced significant credit quality deterioration as of June 30, 2021; however, the continuing impact and uncertain nature of the COVID-19 pandemic may result in increases in delinquencies, charge-offs and loan modifications in these portfolios through the remainder of 2021. As of June 30, 2021, we had eight active payment deferrals on residential mortgage loans with a total principal balance of $2.9 million, or 0.3% of total residential loans. As of June 30, 2021 89.8% of the deferrals have expired and are paying as agreed, 3.3% have expired and are delinquent and 6.9% are in active deferral periods. We had three active payment deferrals on consumer loans with a total principal balance of $22,000 and 96.2% of the consumer loan deferrals have expired and are paying as agreed. Requests for additional extensions on residential mortgage loans and consumer loans were not significant as of June 30, 2021.
Net recoveries totaled $175,000 for the quarter ended June 30, 2021, or 0.02% of average loans outstanding on an annualized basis. Net charge-offs totaled $102,000, or 0.01% of average loans outstanding on an annualized basis, for the quarter ended March 31, 2021 and $286,000, or 0.03% of average loans outstanding on an annualized basis, for the quarter ended June 30, 2020.
Credit quality performance has remained strong with total nonperforming assets of $32.7 million at June 30, 2021, compared to $32.9 million at March 31, 2021 and $38.6 million at June 30, 2020. Nonperforming assets as a percentage of total assets were 0.71% at both June 30, 2021 and March 31, 2021, and 0.86% at June 30, 2020.
Balance Sheet
Total assets increased $10.5 million, or 0.2%, to $4.62 billion at June 30, 2021 from $4.61 billion at March 31, 2021. The increase primarily reflects an increase of $92.9 million in short-term investments and a $49.7 million increase in securities available for sale partially offset by a $106.6 million decrease in loans held for sale and a $37.6 million decrease in net loans.
Net loans decreased $37.6 million, or 1.1%, to $3.37 billion at June 30, 2021 from $3.41 billion at March 31, 2021. The net decrease in loans for the three months ended June 30, 2021 was primarily due to decreases in consumer loans of $41.8 million and commercial and industrial loans of $32.2 million, partially offset by increases in residential mortgage loans of $34.1 million. The decrease in commercial and industrial loans is primarily due to forgiveness of PPP loans during the quarter. Excluding the change in PPP loans total commercial loans increased $24.2 million, primarily due to an increase in commercial and industrial loans. The allowance for loan losses was $51.3 million at June 30, 2021 and $55.4 million at March 31, 2021, the change primarily reflecting the negative $4.3 million provision for loan losses recorded in the second quarter.
Total deposits increased $13.4 million, or 0.4%, to $3.69 billion at June 30, 2021 from $3.67 billion at March 31, 2021. Compared to the prior quarter, non-certificate accounts increased $27.2 million and term certificate accounts decreased $13.8 million. FHLB borrowings decreased $10.0 million, or 10.3%, to $87.5 million at June 30, 2021 from $97.5 million at March 31, 2021.
Total stockholders’ equity was $705.5 million at June 30, 2021, compared to $698.1 million at March 31, 2021 and $684.4 million at June 30, 2020. During the second quarter, the Company completed a share repurchase program adopted September 3, 2020 repurchasing 2,920,900 shares of the Company’s common stock at an average cost of $11.32 per share. The Company adopted a second share repurchase program on April 16, 2021 to repurchase up to 2,790,903 shares of the Company’s common stock, or approximately 5% of the Company’s outstanding shares. The Company repurchased 418,452 shares at an average cost of $14.41 per share through June 30, 2021, under the second share repurchase program. The tangible common equity to tangible assets ratio was 13.91% at June 30, 2021, 13.77% at March 31, 2021, and 13.88% at June 30, 2020. At June 30, 2021, the Company and the Bank had strong capital positions and exceeded all regulatory capital requirements.
About HarborOne Bancorp, Inc.
HarborOne Bancorp, Inc. is the holding company for HarborOne Bank, a Massachusetts-chartered savings bank. HarborOne Bank serves the financial needs of consumers, businesses, and municipalities throughout Eastern Massachusetts and Rhode Island through a network of 27 full-service branches located in Massachusetts and Rhode Island, and a commercial lending office in each of Boston, Massachusetts