Federal Home Loan Bank Stock. Federal Home Loan Bank stock decreased $314,000, or 23.4%, to $1.0 million at March 31, 2021, from $1.3 million at June 30, 2020, as a result of the decrease in borrowed funds as described below. As the balance of borrowed funds decreased, the amount of stock required to be held also decreased.
Deposits. Total deposits increased $1.1 million, or 0.4%, to $257.1 million at March 31, 2021 from $256.1 million at June 30, 2020. The increase was due to increases in demand accounts of $4.2 million, or 4.5%, from $93.6 million at June 30, 2020 to $97.9 million at March 31, 2021 and in savings and NOW accounts of $9.6 million, or 12.7%, from $75.4 million at June 30, 2020 to $85.0 million at March 31, 2021. The increases were offset partially by a decrease in certificates of deposit of $12.7 million, or 14.6%, to $74.3 million at March 31, 2021 from $87.0 million at June 30, 2020.
Borrowed Funds. Borrowed funds, consisting solely of Federal Home Loan Bank advances, decreased $5.0 million, or 55.6%, to $4.0 million at March 31, 2021 from $9.0 million at June 30, 2020. Loan payments and payoffs and increases in deposits have reduced our need for borrowings to fund our operations.
Stockholders’ Equity. Total stockholders’ equity increased $4.9 million or 20.9%, to $28.4 million at March 31, 2021 from $23.5 million at June 30, 2020. The increase was due primarily to net income of $5.6 million during the nine months ended March 31, 2021.
Comparison of Operating Results for the Three Months Ended March 31, 2021 and 2020
General. Net income was $1.8 million for the three months ended March 31, 2021, compared to $69,000 for the three months ended March 31, 2020. The change was primarily due to a $2.7 million increase in gain on sales of mortgage loans, offset by a $544,000 increase in compensation and benefits expense, described in more detail below.
Interest Income. Interest income decreased $349,000, or 12.0%, to $2.6 million for the three months ended March 31, 2021 compared to $2.9 million for the three months ended March 31, 2020. Interest income on loans, which is our primary source of interest income, decreased $327,000, or 12.0%, to $2.4 million for the three months ended March 31, 2021 compared to $2.7 million for the three months ended March 31, 2020. Our annualized average yield on loans decreased 19 basis points to 4.20% for the three months ended March 31, 2021 from 4.39% for the three months ended March 31, 2020, primarily due to the decrease in interest rates. The average balance of loans decreased $19.9 million, or 8.0%, to $229.2 million for the three months ended March 31, 2021 from $249.1 million for the three months ended March 31, 2020.
Interest Expense. Interest expense decreased $249,000, or 45.4%, to $298,000 for the three months ended March 31, 2021 compared to $547,000 for the three months ended March 31, 2020, due primarily to decreases in market interest rates and a shift in deposits from certificates of deposit to lower cost demand, savings, and NOW accounts.
Interest expense on deposits decreased $174,000, or 36.9%, to $298,000 for the three months ended March 31, 2021 from $473,000 for the three months ended March 31, 2020. Specifically, interest expense on certificates of deposit decreased $182,000, or 40.4%, to $269,000 for the three months ended March 31, 2021 from $452,000 for the three months ended March 31, 2020. The decrease resulted from a 43 basis point decrease in the annualized average rate we paid on certificates of deposit to 1.41% for the three months ended March 31, 2021 from 1.84% for the three months ended March 31, 2020, reflecting a decrease in market rates. Additionally, there was a $22.2 million decrease in the average balance of certificates of deposits to $76.2 million at March 31, 2021 from $98.4 million for the three months ended March 31, 2020.
There was no interest expense on FHLB borrowings for the three months ended March 31, 2021 compared to $74,000 for the three months ended March 31, 2020. This decrease resulted from decreases in both the average balance of FHLB borrowings and the average rate we paid on FHLB borrowings. The average balance of borrowings decreased $16.2 million, or 80.2%, to $4.0 million for the three months ended March 31, 2021 from $20.2 million for the three months ended March 31, 2020, and the annualized average rate we paid on borrowings decreased 147 basis points to 0.00% for the three months ended March 31, 2021 from 1.47% for the three months ended March 31, 2020. As described above,