Interest expense was $4.9 million for the second quarter of 2023, compared with $693,000 for the same period in 2022, reflecting increased interest paid on deposits and short term borrowings. The Company’s cost of interest-bearing liabilities was 1.40% in the fiscal 2023 second quarter compared with 0.21% for the same quarter in fiscal 2022. Interest expense was $7.9 million for the first half of 2023, compared with $1.5 million for the same period in 2022. The Company’s cost of interest-bearing liabilities was 1.13% in the fiscal 2023 first half compared with 0.23% for the same period in fiscal 2022. Average interest bearing liabilities increased $84.6 million and $41.5 million during the second quarter and first half of fiscal 2023, respectively, compared to the same periods in fiscal 2022.
Net interest income after provision for loan losses for the three months ended March 31, 2023 was $15.0 million, up from $14.2 million for the three months ended March 31, 2022. There was a $150,000 loan loss provision in the 2023 fiscal period compared to no provision for the comparable period in 2022, primarily reflecting loan growth. Net interest income after provision for loan losses for the six months ended March 31, 2023 was $30.5 million, up from $27.8 million for the three months ended March 31, 2022. There was a $300,000 loan loss provision in the 2023 fiscal period compared to no provision for the six months of 2022 primarily reflecting loan growth.
The net interest margin for three months ended March 31, 2023 was 3.34% compared with 3.26% for the comparable period of fiscal 2022. The net interest margin for six months ended March 31, 2023 was 3.42% compared with 3.15% for the comparable period of fiscal 2022.
Noninterest income was $2.1 million for the three months ended March 31, 2023, compared with $2.0 million for the three months ended March 31, 2022. Noninterest income was $4.0 million for the six months ended March 31, 2023 compared with $4.3 million for the six months ended March 31, 2022. The first half of 2023 reflected lower income from gain on sale of originated residential mortgage loans as the Company retained most of its mortgage production.
Noninterest expense for the second quarter of 2023 was $11.3 million compared to $10.4 million for the comparable quarter in 2022. The increase was due primarily to increases in compensation and employee benefits and professional fees. Noninterest expense for the first half of 2023 was $22.7 million compared to $20.7 million for the comparable quarter in 2022. The increase was due primarily to increases in compensation and employee benefits and professional fees.
Balance Sheet, Asset Quality and Capital Adequacy Review
Total assets were $1.99 billion at March 31, 2023 compared with $1.86 billion at September 30, 2022, respectively. The increase of $123.7 million, or 6.6% primarily reflects the growth in total net loans outstanding.
Total net loans were $1.57 billion at March 31, 2023, up from $1.44 billion at September 30, 2022. Residential real estate loans were $671.4 million at March 31, 2023 compared with $623.4 million at September 30, 2022 as the Company retained originated mortgages in light of higher yields. Indirect auto loans declined by $2.1 million during the six months ended March 31, 2023, reflecting expected runoff of the portfolio.
Commercial real estate loans increased to $748.4 million at March 31, 2023 compared with $678.8 million at September 30, 2022. Commercial loans (primarily commercial and industrial) were $44.8 million compared with $38.2 million at September 30, 2022. Loans to states and political subdivisions were $48.0 million at March 31, 2023 compared to $40.4 million at September 30, 2022.
Total deposits were $1.43 billion at March 31, 2023 compared with $1.38 billion at September 30, 2022. Core deposits were $1.10 billion, or 77.0% of total deposits, at March 31, 2023 compared to $1.25 billion, or 90.3% of total deposits at September 30, 2022. Noninterest bearing demand accounts were $274.3 million, down 5.4% from September 30, 2022. Interest bearing demand accounts declined $62.3 million to $295.2 million, down 17.4% from September 30, 2022. Money market accounts declined $47.7 million to $354.4 million at