closings, or 20.8%, as compared to 414 homes closed during the three months ended March 31, 2022. This was partially offset by an increase in the average cost to complete a home due to higher direct costs, including lumber prices, and incentives, primarily in the form of mortgage rate buydowns and closing costs.
Gross profit for the three months ended March 31, 2023 was $16.8 million, a decrease of $10.5 million, or 38.5%, from $27.3 million for the three months ended March 31, 2022, due to the decline in the number of home closings and increased cost per home as described above. Gross profit as a percentage of revenue for the three months ended March 31, 2023 was 17.7%, a decrease of 7.5%, as compared 25.2% for the three months ended March 31, 2022.
Adjusted Gross Profit: Adjusted gross profit for the three months ended March 31, 2023 was $19.2 million, a decrease of $9.0 million, or 31.9%, as compared to $28.2 million for the three months ended March 31, 2022. Adjusted gross profit as a percentage of revenue for the three months ended March 31, 2023 was 20.2%, a decrease of 5.8%, as compared to 26.0% for the three months ended March 31, 2022. The adjusted gross profit as a percentage of revenue decrease was attributable to a $10.5 million decrease in gross profit for the three months ended March 31, 2023 as compared to March 31, 2022. This decrease was partially offset when excluding interest expense included in cost of sales, which increased by $1.4 million due to higher interest rates period over period. Adjusted gross profit is a non-GAAP financial measure. For the definition of adjusted gross profit and a reconciliation to UHG’s most directly comparable financial measure calculated and presented in accordance with GAAP, see “UHG’s Management’s Discussion and Analysis of Financial Condition and Result of Operations — Non-GAAP Financial Measures.”
Selling, General and Administrative Expense: Selling, general and administrative expense for the three months ended March 31, 2023 was $16.7 million, an increase of $6.3 million, or 60.6%, from $10.4 million for the three months ended March 31, 2022. The increase in selling, general and administrative expense was primarily attributable to an increase of $4.4 million related to stock compensation expense associated with the equity classified earnout shares issued in connection with the Business Combination for the three months ended March 31, 2023. Additionally, consulting expenses increased by $1.0 million due to an increase in financial reporting, accounting and legal related costs in connection with the Business Combination. Insurance expense increases of $0.3 million, rent expense increases of $0.1 million and bad debt expense increases of $0.1 million were also attributable to the increase in selling, general and administrative expense for the three months ended March 31, 2022.
Other Income, Net: Total other income, net for the three months ended March 31, 2023 was $0.2 million, and there was no change as compared to $0.2 million for the three months ended March 31, 2022.
Equity in Net Earnings from Investment in Joint Venture: Equity in net earnings from investment in joint venture for the three months ended March 31, 2023 was $0.2 million compared to zero for the three months ended March 31, 2022, due to the joint venture not being formed until mid-2022. The increase in equity in net earnings from investment in joint venture increased the investment in joint venture as of March 31, 2023 to $0.4 million. There were no impairment losses related to the Company’s investment in the joint venture recognized during the three months ended March 31, 2023.
Change in Fair Value of Derivative Liabilities: Change in fair value of derivative liabilities for the three months ended March 31, 2023 was $207.1 million as compared to zero for the three months ended March 31, 2022. Under ASC 815, derivative liabilities are marked to market each reporting period with changes recognized on the Statements of Operations. The loss incurred related to the derivative liabilities was primarily attributable to a change in fair value of $203.4 million related to the Earnout Shares, $1.5 million related to the Public Warrants, and $1.2 million related to the Private Placement Warrants issued in connection with the Business Combination.
Income Tax Benefit: Income tax benefit for the three months ended March 31, 2023 was $2.0 million, an increase of $2.0 million as compared to zero for the three months ended March 31, 2022. The income tax benefit was due to a $0.8 million increase in connection with continuing operations for the post transaction two day period ended March 31, 2023. Additionally, Great Southern Homes, Inc, a consolidated subsidiary of the Company, recorded an income tax benefit of $1.2 million, which is included in the total income tax benefit for the three months ended March 31, 2023, due to its change in tax status to a taxable corporation.
Net (Loss) Income: Net (loss) income for the three months ended March 31, 2023 was $(204.5) million, a decrease of $221.5 million, or 1,302.9%, from $17.0 million for the three months ended March 31, 2022. The decrease in net income was primarily attributable to the decrease in income before taxes of $223.5 million, or 1,314.7%, during the three months ended March 31, 2023 as compared to the three months ended March 31, 2022, partially offset by an increase in income tax benefit of $2.0 million, during the three months ended March 31, 2023 as compared to the three months ended March 31, 2022.