million at June 30, 2021. For additional information on loans held for investment, see Note 3 of the Notes to Consolidated Financial Statements included in Item 8 of this Form 10-K.
Total deposits increased $17.5 million, or 2%, to $955.5 million at June 30, 2022 from $938.0 million at June 30, 2021. Transaction accounts increased $36.9 million, or 5%, to $834.4 million at June 30, 2022 from $797.5 million at June 30, 2021; while time deposits decreased $19.3 million, or 14%, to $121.1 million at June 30, 2022 from $140.4 million at June 30, 2021. As of June 30, 2022 and 2021, the percentage of transaction accounts to total deposits was 87% and 85%, respectively. Non interest-bearing deposits as a percentage of total deposits remained unchanged at 13% on June 30, 2022 as compared to June 30, 2021. The change in deposit mix was consistent with the Corporation’s marketing strategy to promote transaction accounts and the strategic decision to increase the percentage of lower cost checking and savings accounts in its deposit base and decrease the percentage of time deposits by competing less aggressively for time deposits. For additional information on deposits, see Note 6 of the Notes to Consolidated Financial Statements included in Item 8 of this Form 10-K.
Borrowings, consisting of FHLB – San Francisco advances decreased $16.0 million, or 16%, to $85.0 million at June 30, 2022 from $101.0 million at June 30, 2021. The decrease was due to scheduled maturities and prepayments of advances during fiscal 2022, partly offset by a new $5.0 million overnight advance on June 30, 2022. The weighted-average maturity of the Corporation’s FHLB – San Francisco advances was approximately 16 months at June 30, 2022, down from 24 months at June 30, 2021. For additional information on borrowings, see Note 7 of the Notes to Consolidated Financial Statements included in Item 8 of this Form 10-K.
Total stockholders’ equity increased $1.4 million or 1% to $128.7 million at June 30, 2022 from $127.3 million at June 30, 2021, primarily as a result of net income and the amortization of stock-based compensation benefits in fiscal 2022, partly offset by stock repurchases (see Part II, Item 5, “Market for Registrant’s Common Equity, Related Stockholder Matters and Issuer Purchases of Equity Securities” of this Form 10-K) and quarterly cash dividends paid to shareholders.
Comparison of Operating Results for the Years Ended June 30, 2022 and 2021
General. The Corporation recorded net income of $9.1 million, or $1.22 per diluted share, for the fiscal year ended June 30, 2022, up $1.5 million, or 20%, from $7.6 million, or $1.00 per per diluted share, for the fiscal year ended June 30, 2021. The increase in net income in fiscal 2022 compared to fiscal 2021 was primarily attributable to a $956,000 increase in net interest income and a $1.8 million increase in the recovery from the allowance for loan losses. The Corporation's efficiency ratio, defined as non-interest expense divided by the sum of net interest income and non-interest income, improved to 71% in fiscal 2022 from 73% in fiscal 2021. Return on average assets in fiscal 2022 increased to 0.76% from 0.64% in fiscal 2021 and return on average stockholders' equity in fiscal 2022 increased to 7.14% from 6.05% in fiscal 2021.
Net Interest Income. Net interest income increased $956,000, or 3%, to $31.6 million in fiscal 2022 from $30.6 million in fiscal 2021. This increase resulted from an increase in the net interest margin and, to a lesser extent, an increase in the average balance of interest-earning assets. The net interest margin increased six basis points to 2.72% in fiscal 2022 from 2.66% in fiscal 2021, due primarily to a 14 basis points decrease in the average cost of interest-bearing liabilities, partly offset by a six basis points decrease in the average yield on interest-earning assets. The average balance of interest-earning assets increased $8.2 million, or 1%, to $1.16 billion in fiscal 2022 from $1.15 billion in fiscal 2021. The average balance of interest-bearing liabilities increased $8.4 million or 1% to $1.05 billion during fiscal 2022 as compared to $1.04 billion during fiscal 2021.
Interest Income. Total interest income decreased $471,000, or 1%, to $34.7 million for fiscal 2022 from $35.2 million for fiscal 2021. The decrease was primarily attributable to a decrease in interest income on loans receivable, partly offset by an increase in interest income on investment securities, FHLB – San Francisco stock and interest-earning deposits.
Interest income on loans receivable decreased $695,000, or 2%, to $32.2 million in fiscal 2022 from $32.9 million in fiscal 2021. This decrease was attributable to a lower average loan yield, partly offset by a higher average loan balance. The weighted average loan yield during fiscal 2022 decreased 10 basis points to 3.70% from 3.80% in fiscal 2021, due primarily to the decrease in market interest rates resulting from the decline in the general economic conditions impacted by the