Gain/(Loss) on sale of real estate owned
During the nine months ended September 30, 2021, the Company recognized a gain of $50.8 million from the sale of an operating community located in Anaheim, California. During the nine months ended September 30, 2020, the Company recognized gains of $61.3 million from the sale of two operating communities located in Kirkland, Washington and Bellevue, Washington.
Interest expense
For the three months ended September 30, 2021 and 2020, the Company recognized interest expense of $36.3 million and $62.3 million, respectively. The decrease in 2021 as compared to 2020 was primarily due to $24.5 million of extinguishment cost from the prepayment of debt during the three months ended September 30, 2020 as compared to $0.4 million for the three months ended September 30, 2021, and lower interest rates partially offset by higher debt balances.
For the nine months ended September 30, 2021 and 2020, the Company recognized interest expense of $149.8 million and $140.2 million, respectively. The increase in 2021 as compared to 2020 was primarily due to $42.3 million of extinguishment cost from the prepayment of debt during the nine months ended September 30, 2021 as compared to $24.5 million for the nine months ended September 30, 2020, and higher debt balances, partially offset by lower interest rates.
Income/(loss) from unconsolidated entities
For the three months ended September 30, 2021 and 2020, the Company recognized income/(loss) from unconsolidated entities of $14.5 million and $2.9 million, respectively. The increase in 2021 as compared to 2020 was primarily due to $10.0 million of investment income from real estate technology investments during the three months ended September 30, 2021 as compared to $(0.2) million investment loss for the three months ended September 30, 2020.
For the nine months ended September 30, 2021 and 2020, the Company recognized income/(loss) from unconsolidated entities of $29.1 million and $14.3 million, respectively. The increase in 2021 as compared to 2020 was primarily due to $18.2 million of investment income from real estate technology investments during the nine months ended September 30, 2021 as compared to $4.3 million for the three months ended September 30, 2020.
Interest income and other income/(expense), net
For the three months ended September 30, 2021 and 2020, the Company recognized interest income and other income/(expense), net of $8.2 million and $2.2 million, respectively. The increase in 2021 as compared to 2020 was primarily due to $4.6 million of investment income from real estate technology investments during the three months ended September 30, 2021 as compared to zero for the three months ended September 30, 2020.
For the nine months ended September 30, 2021 and 2020, the Company recognized interest income and other income/(expense), net of $12.8 million and $7.3 million, respectively. The increase in 2021 as compared to 2020 was primarily due to $5.0 million of investment income from real estate technology investments during the nine months ended September 30, 2021 as compared to zero for the three months ended September 30, 2020.
Inflation
We believe that the direct effects of inflation on our operations have been immaterial. While the impact of inflation primarily impacts our results of operations as a result of wage pressures and increases in utilities and material costs, the majority of our apartment leases have initial terms of 12 months or less, which generally enables us to compensate for any inflationary effects by increasing rental rates on our apartment homes. Although an extreme escalation in costs could have a negative impact on our residents and their ability to absorb rent increases, we do not believe this has had a material impact on our results for the three and nine months ended September 30, 2021.
Off-Balance Sheet Arrangements
We do not have any off-balance sheet arrangements that have, or are reasonably likely to have, a current or future effect on our financial condition, changes in financial condition, revenue or expenses, results of operations, liquidity, capital expenditures or capital resources that are material.