Other real estate owned with a cost basis of $0.6 million and $0.5 million was sold during the years ended December 31, 2017 and 2016, respectively, resulting in a net gain of $27,000 and $13,000 for the respective period, compared to a cost basis of $2.9 million and a net loss of $0.1 million at December 31, 2015.