Discussion and Analysis of Results of Operations
Net Income
Net income for the three months ended June 30, 2022 was $9.3 million, or $0.52 per diluted common share, a $2.4 million, or 20.5%, decrease as compared to $11.7 million, or $0.66 per diluted common share, for the three months ended June 30, 2021. Net income decreased primarily due to a $7.5 million decrease in noninterest income, partially offset by a $1.6 million increase in net interest income and a $2.6 million decrease in noninterest expense.
Net income for the six months ended June 30, 2022 was $19.5 million, or $1.10 per diluted common share, a $7.4 million, or 27.6%, decrease as compared to $26.9 million, or $1.52 per diluted common share, for the six months ended June 30, 2021. The decrease in net income was primarily due to an $18.9 million decrease in noninterest income, partially offset by a $1.3 million increase in net interest income and a $7.5 million decrease in noninterest expense.
Net Interest Income
Net interest income is the difference between interest income and yield-related fees earned on assets and interest expense paid on liabilities. Net interest margin is the difference between the yield on interest earning assets and the cost of interest-bearing liabilities as a percentage of interest earning assets. Net interest margin is presented on a tax-equivalent basis, which means that tax-free interest income has been adjusted to a pre-tax-equivalent income, assuming a federal income tax rate of 21% for the three and six months ended June 30, 2022 and 2021.
Net interest income for the three months ended June 30, 2022 was $22.8 million, a $1.6 million, or 7.7%, increase from $21.1 million for the three months ended June 30, 2021. Net interest income increased primarily due to a $1.8 million increase in interest income, driven by a $3.2 million increase in interest income from investment securities, and partially offset by a $1.3 million decrease in interest income from loans. The increase in interest income from investment securities was primarily due to a $363.8 million increase in the average balance of investment securities. Interest income from loans decreased primarily due to a $2.3 million decrease in income received from PPP loans. Excluding PPP loans, the average loan balance would have increased $170.8 million. The increase in net interest income was partially offset by a $206 thousand increase in interest expense, primarily due to an increase in short-term borrowings in response to a decrease in deposits.
Net interest income for the six months ended June 30, 2022 was $44.4 million, an increase of $1.3 million, or 2.9%, as compared to the $43.2 million for the six months ended June 30, 2021. The increase in net interest income was primarily driven by a $1.6 million increase in interest income, driven in part by a $6.2 million increase in interest income from investment securities, partially offset by $4.6 million decrease in interest income from loans. The increase in interest income from investment securities was primarily due to a $458.3 million increase in the average balance of investment securities. Interest income from loans decreased primarily due to a $112.9 million decrease in the average loans, primarily due to our continued PPP loan forgiveness. Excluding PPP loans, average loans would have increased $112.9 million.
Our net interest margin (on a fully tax-equivalent, or FTE, basis) for the three months ended June 30, 2022 was 2.98%, compared to 2.88% for the same period in 2021. The yield on earning assets increased 12 basis points while average earnings assets increased 3.9%. Partially offsetting this increase was a modest 2 basis point increase in our interest bearing liabilities yield while the average balance of interest-bearing liabilities increased 6.4%.
Our net interest margin (on a FTE basis) for the six months ended June 30, 2022 was 2.91%, compared to 3.00% for the same period in 2021. The decrease in net interest margin was primarily driven by a 9 basis point decrease in the interest earning asset yield. The interest earning asset yield decreased primarily due to a 22 basis point decrease in loan yield, a result of the decrease in average loans previously stated.
As a result of the recent and expected increases in the target federal funds interest rate, we anticipate that our net interest income and net interest margin (on a FTE basis) will remain under pressure in future periods.