Mortgage loan originations totaled $48.9 million and $168.9 million during the three and six months ended June 30, 2020, respectively, compared to $188.7 million and $339.8 million during the same periods in 2019.
Total gain on sale of loans was $1.3 million for the three months ended June 30, 2020 compared to $4.2 million for the same period of 2019, a decrease of $2.9 million, or 69.5%. Total gain on sale of loans was $5.1 million for the six months ended June 30, 2020 compared to $6.4 million for the same period of 2019, a decrease of $1.3 million, or 20.8%.
We recorded no gain on sale of residential mortgage loans during the three months ended June 30, 2020 and $2.5 million for the six months ended June 30, 2020 compared to $2.6 million and $3.6 million for the same periods of 2019. We sold no residential mortgages during the three months ended June 30, 2020 and $92.7 million in residential mortgage loans in the six months ended June 30, 2020 with average premiums of 2.78%. We sold $205.9 million and $261.0 million in residential mortgage loans in the three and six months ended June 30, 2019 with average premiums of 1.27% and 1.37%, respectively. We originated $48.9 million and $168.9 million of residential mortgage loans during the three and six months ended June 30, 2020 compared to $188.7 million and $339.8 million for the same periods in 2019.
Gain on sale of SBA loans totaled $1.3 million and $2.6 million for the three and six months ended June 30, 2020 compared to $1.6 million and $2.9 million for the same periods of 2019. We sold $35.2 million and $65.2 million in SBA loans during the three and six months ended June 30, 2020 with average premiums of 7.09% and 6.82%, respectively. We sold $28.7 million and $59.4 million in SBA loans during the three and six months ended June 30, 2019 with average premiums of 8.13% and 7.29%, respectively.
Mortgage loan servicing income, net of amortization, decreased by $2.5 million, or 76.4%, to $783,000 during the three months ended June 30, 2020 compared to $3.3 million for the same period of 2019. Mortgage loan servicing income decreased by $3.5 million, or 75.2%, to $1.2 million during the six months ended June 30, 2020 compared to $4.7 million for the same period of 2019. The decrease in mortgage loan servicing income for both periods was due to the decrease in capitalized mortgage servicing assets and increased servicing asset amortization. Included in mortgage loan servicing income for the three and six months ended June 30, 2020 was $1.5 million and $3.2 million, respectively, in mortgage servicing fees compared to $1.5 million and $2.8 million for the same periods in 2019, and capitalized mortgage servicing assets of zero and $1.0 million for the three and six months ended June 30, 2020, respectively, compared to $2.7 million and $3.5 million for the same periods in 2019. The amounts were offset by mortgage loan servicing asset amortization of $1.3 million and $2.6 million for the three and six months ended June 30, 2020, respectively, compared to $856,000 and $1.7 million during the same periods in 2019. During the three months ended June 30, 2020, we recorded a fair value impairment recovery of $531,000 on our mortgage servicing asset. During the six months ended June 30, 2020, we recorded a fair value impairment of $353,000 on our mortgage servicing asset due to increased prepayment speeds during the year. No fair value impairment charges were recorded during the three and six months ended June 30, 2019. Our total residential mortgage loan servicing portfolio was $1.14 billion at June 30, 2020 compared to $1.02 billion at June 30, 2019.
SBA servicing income, net increased by $822,000, or 72.3%, to $2.0 million for the three months ended June 30, 2020 compared to $1.1 million for the three months ended June 30, 2019. SBA servicing income was $2.5 million for the six months ended June 30, 2020 compared to $2.2 million for the same period in 2019, an increase of $295,000, or 13.5%. Our total SBA loan servicing portfolio was $476.6 million as of June 30, 2020 compared to $443.8 million as of June 30, 2019. Our SBA servicing rights are carried at fair value. While our servicing portfolio grew, the inputs used to calculate fair value also changed, which resulted in a $857,000 increase to our SBA servicing rights in the three months ended June 30, 2020 compared to a $187,000 increase to our SBA servicing rights during the three months ended June 30, 2019. During the six months ended June 30, 2020 and 2019, we recorded increases of $272,000 and $243,000, respectively, to our SBA servicing rights.
Other noninterest income increased by $164,000 to $310,000 for the three months ended June 30, 2020 compared to $146,000 for the three months ended June 30, 2019. Other noninterest income was $711,000 for the six months ended June 30, 2020 compared to $279,000 for the same period in 2019, an increase of $432,000. The largest component of other noninterest income is the income on bank owned life insurance which totaled $115,000 and $117,000, respectively, for