Deposits. Total deposits decreased $245,000, or 0.1%, to $255.8 million at December 31, 2020 from $256.1 million at June 30, 2020. The decrease was due to a decrease in certificates of deposit of $10.1 million, or 11.6%, to $76.9 million at December 31, 2020 from $87.0 million at June 30, 2020. The decrease in certificates of deposits was offset partially by an increase in demand accounts of $5.5 million, or 5.9%, from $93.6 million at June 30, 2020 to $99.2 million at December 31, 2020 and an increase in savings and NOW accounts of $4.3 million, or 5.8%, from $75.4 million at June 30, 2020 to $79.7 million at December 31, 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 December 31, 2020 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 $3.7 million or 15.7%, to $27.2 million at December 31, 2020 from $23.5 million at June 30, 2020. The increase was due primarily to net income of $3.7 million during the six months ended December 31, 2020.
Comparison of Operating Results for the Three Months Ended December 31, 2020 and 2019
General. Net income was $2.0 million for the three months ended December 31, 2020, compared to $362,000 for the three months ended December 31, 2019. The change was primarily due to a $2.7 million increase in gain on sales of mortgage loans, offset by a $608,000 increase in compensation and benefits expense, described in more detail below.
Interest Income. Interest income decreased $269,000, or 8.9%, to $2.7 million for the three months ended December 31, 2020 compared to $3.0 million for the three months ended December 31, 2019. Interest income on loans, which is our primary source of interest income, decreased $237,000, or 8.4%, to $2.6 million for the three months ended December 31, 2020 compared to $2.8 million for the three months ended December 31, 2019. Our annualized average yield on loans decreased nine basis points to 4.44% for the three months ended December 31, 2020 from 4.53% for the three months ended December 31, 2019, primarily due to the decrease in interest rates. The average balance of loans decreased $16.6 million, or 6.6%, to $234.1 million for the three months ended December 31, 2020 from $250.8 million for the three months ended December 31, 2019.
Interest Expense. Interest expense decreased $244,000, or 43.3%, to $319,000 for the three months ended December 31, 2020 compared to $563,000 for the three months ended December 31, 2019, due primarily to decreases in market interest rates.
Interest expense on deposits decreased $155,000, or 32.7%, to $319,000 for the three months ended December 31, 2020 from $474,000 for the three months ended December 31, 2019. Specifically, interest expense on certificates of deposit decreased $157,000, or 34.9%, to $293,000 for the three months ended December 31, 2020 from $450,000 for the three months ended December 31, 2019. The decrease resulted from a 41 basis point decrease in the annualized average rate we paid on certificates of deposit to 1.47% for the three months ended December 31, 2020 from 1.88% for the three months ended December 31, 2019, reflecting a decrease in market rates. Additionally, there was a $16.1 million decrease in the average balance of certificates of deposits to $79.5 million at December 31, 2020 from $95.6 million for the three months ended December 31, 2019.
Interest expense on FHLB borrowings decreased $89,000 to $700 for the three months ended December 31, 2020 from $89,000 for the three months ended December 31, 2019. 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 $13.9 million, or 72.8%, to $5.2 million for the three months ended December 31, 2020 from $19.1 million for the three months ended December 31, 2019, and the annualized average rate we paid on borrowings decreased 183 basis points to 0.05% for the three months ended December 31, 2020 from 1.88% for the three months ended December 31, 2019. As described above, loan payments and payoffs and increases in deposits have reduced our need for borrowings to fund our operations.
Net Interest Income. Net interest income remained relatively stable, decreasing $25,000, or 1.0%, for the three months ended December 31, 2020 from the three months ended December 31, 2019. In addition, our net interest rate spread