Selling, general and administrative expenses. Selling, general and administrative expenses includes cash and non-cash compensation, benefits, amortization of intangible assets and related costs in support of our general corporate functions, including general management, finance and accounting, human resources, selling and marketing, information technology and legal services.
Selling, general and administrative expenses for the three months ended June 30, 2021, increased $17.0 million, or 78.6%, to $38.7 million from $21.6 million for the three months ended June 30, 2020. This increase was primarily related to increases in salaries and stock-based compensation due to increased headcount and branding expenses, in addition to costs associated with the restatement of our previous years’ financial statements.
Selling, general and administrative expenses for the six months ended June 30, 2021, increased $31.5 million, or 96.1%, to $64.2 million from $32.8 million for the six months ended June 30, 2020. This increase was primarily related to increases in salaries and stock-based compensation due to increased headcount and branding expenses, in addition to costs associated with the restatement of our previous years’ financial statements.
Contingent Consideration. The fair value of the contingent consideration related to Giner ELX, Inc. and United Hydrogen Group Inc. was remeasured as of June 30, 2021, which resulted in a $560 thousand benefit for the three months ended June 30, 2021 and a $230 thousand charge for the six months ended June 30, 2021, both of which are reflected in the unaudited interim condensed consolidated statement of operations for the three and six months ended June 30, 2021, respectively.
Interest. Interest consists of interest expense related to our long-term debt, convertible senior notes, obligations under finance leases and our finance obligations. Interest decreased $3.1 million, or 23.2%, from $13.4 million for the three months ended June 30, 2020 to $10.3 million for the three months ended June 30, 2021. Interest decreased $2.6 million, or 10.4%, from $25.2 million for the six months ended June 30, 2020 to $22.5 million for the six months ended June 30, 2021. Since June 2020, the Company borrowed approximately $50.0 million of additional long-term debt at a 9.5% interest rate, and entered into additional sale/leaseback finance obligation arrangements. This was offset by the exchange and conversion during 2020 of both the 7.5% Convertible Senior Notes and 5.5% Convertible Senior Notes, and the adoption of ASU 2020-06 which reduced the noncash interest expense on convertible notes.
Other expense, net. Other expense, net consists of other expenses related to our foreign currency exchange losses, offset by interest and other income consisting primarily of interest earned on our cash and cash equivalents, restricted cash and available-for-sale securities. This decreased $24 thousand for the three months ended June 30, 2021 in comparison to the three months ended June 30, 2020. This increased $117 thousand for the six months ended June 30, 2021 in comparison to the six months ended June 30, 2020.
Net realized gain (loss) on investments. Net realized gain (loss) on investments consists of the sales and maturities related to available-for-sale debt securities. This increased $18 thousand for both the three and six months ended June 30, 2021 in comparison to the three and six months ended June 30, 2020.
Change in fair value of equity securities. Change in fair value of equity securities consists of the changes in fair value for equity securities from the purchase date to the end of the period. This increased $323 thousand for the three and six months ended June 30, 2021 in comparison to the three and six months ended June 30, 2020.
Income Tax
The Company did not record any income tax expense or benefit for the three or six months ended June 30, 2021. The Company recognized an income tax benefit for the three and six months ended June 30, 2020 of $17.4 million. Income tax benefit for the three and six months ended June 30, 2020 included $12.2 million resulting from the intraperiod tax allocation rules under ASC Topic 740-20, Intraperiod Tax Allocation, under which the Company recognized an income tax benefit resulting from a source of future taxable income attributable to the net credit to additional paid-in capital related to the issuance of the 3.75% Convertible Senior Notes, offset by the partial extinguishment of the 5.5% Convertible Senior Notes. In addition, the Company recorded $5.2 million of income tax benefit for the three and six months ended June 30,