conform to our policy of 10% of securities to total assets and to take advantage of higher yielding securities in a rising interest rate environment. A portion of our securities portfolio is used to collateralize FHLB advances.
Total deposits increased $14.4 million, or 11.1%, to $144.0 million at December 31, 2018 from $129.6 million at December 31, 2017. The increase was primarily due to an increase in certificates of deposit, which increased $8.3 million, or 11.7%, to $79.2 million at December 31, 2018 from $70.9 million at December 31, 2017. This increase was primarily due to a special certificate of deposit rate promotion during the first quarter of 2018 and the increase of $2.2 million in CDARS deposits at December 31, 2018 compared to December 31, 2017. Additionally, we experienced an increase in NOW accounts of $2.0 million, or 15.5%, to $14.9 million at December 31, 2018 from $12.9 million at December 31, 2017. The increase in NOW accounts was primarily due to the addition of new commercial deposit accounts and increased marketing efforts to increase transaction accounts in our primary market area. We are offering new products and services to attract new commercial checking accounts in 2019. Business online internet banking, ACH origination and wire services, remote deposit capture, mobility business services, check free small business bill payment and delivery and mobile source capture are products targeting the growth of our business deposit accounts. Additionally, we have approval from the state of New York to open a branch in Bridgeport through the Banking Development District Program. The program helps to give incentives for banks to open branches in communities with underserved banking resources. The Bridgeport branch will allow us to market our deposit products in Madison county and is tentatively scheduled to be open in the later part of 2019.
Total borrowings from the FHLB of New York increased $3.9 million, or 15.9%, to $28.4 million at December 31, 2018 from $24.5 million at December 31, 2017 to fund loan growth.
Total stockholders’ equity increased $1.0 million, or 5.4%, to $19.4 million at December 31, 2018 from $18.4 million at December 31, 2017. The increase was due to the combined effect of our net income of $850,000, and an increase in accumulated other comprehensive loss of $136,000.
Comparison of Operating Results for the Years Ended December 31, 2018 and 2017
General. Net income increased $326,000, or 62.2%, to $850,000 for the year ended December 31, 2018, compared to $524,000 for the year ended December 31, 2017. The increase was due to an increase in net interest income and decreases in the provision for loan losses and the provision for income tax, partially offset by an increase in non-interest expense and a decrease in non-interest income.
Interest Income. Interest income increased $874,000, or 12.8%, to $7.7 million for the year ended December 31, 2018 from $6.8 million for the year ended December 31, 2017. Our average balance of interest-earning assets increased $15.6 million, or 9.5%, to $179.1 million for the year ended December 31, 2018 from $163.5 million for the year ended December 31, 2017 due primarily to the increase in the average balance of loans. Our average yield of interest-earning assets increased twelve basis points to 4.30% for the year ended December 31, 2018 from 4.18% for the year ended December 31, 2017.
Interest income on loans increased $605,000, or 9.6%, to $6.9 million for the year ended December 31, 2018 from $6.3 million for the year ended December 31, 2017 due primarily to the increase in the average balance of loans. Our average balance of loans increased $9.9 million, or 7.2%, to $148.1 million for the year ended December 31, 2018 from $138.2 million for the year ended December 31, 2017. The increase in the average balance of loans resulted from our continued emphasis on growing our one- to four-family residential real estate portfolio and our recent increased focus on commercial lending. Our average yield on loans increased by ten basis points to 4.65% for the year ended December 31, 2018 from 4.55% for the year ended December 31, 2017, as higher-yielding loans have been originated during the year as well as an increase in yield on our adjustable rate loans. Additionally the Bank purchased thru an unrelated third party, sixteen commercial and industrial loan totaling $2.5 million outside our market area in the first quarter of 2018. The weighted average yield of the loans is 4.92% with a maturity of 5 years or less.
Interest income on securities increased $256,000, or 48.9%, to $779,000 for the year ended December 31, 2018 from $523,000 for the year ended December 31, 2017. The average balance of available-for-sale securities increased $5.0 million, or 23.3%, to $26.5 million in 2018 from $21.5 million in 2017 due to securities purchases. The average yield we earned on available-for-sale securities increased by 41 basis points