unit, or 0.4%, from $25,984 per unit during the fiscal year ended June 30, 2021, to $25,876 per unit during the fiscal year ended June 30, 2022. This decrease is due to efficiencies and volume discounts achieved by increased production. The average cost of Distributed Chargers decreased by $11,700 per site, or 8.1%, from $144,094 per site during the fiscal year ended June 30, 2021, to $132,394 per site during the fiscal year ended June 30, 2022. This decrease is due to efficiencies and volume discounts on input materials, achieved by increased production.
Service and Maintenance—Cost of Goods Sold
Service and maintenance—cost of goods sold increased by $0.9 million, or 31.5%, from $2.9 million during the fiscal year ended June 30, 2021, to $3.8 million during the fiscal year ended June 30, 2022. The increase was attributable to increased volume in services.
Segment Gross Profit (Loss)
Segment gross loss decreased by $1.6 million, or 82.1%, from a Segment gross loss of $1.9 million during the fiscal year ended June 30, 2021, to a Segment gross loss of $0.3 million during the fiscal year ended June 30, 2022.
Segment gross margin on hardware revenue increased from (3.0)% during the fiscal year ended June 30, 2021, to (1.9)% during the fiscal year ended June 30, 2022, representing a decrease to Segment gross loss of $0.1 million, from a Segment gross loss of $1.6 million during the fiscal year ended June 30, 2021 to a Segment gross loss of $1.5 million during the fiscal year ended June 30, 2022.
The increase in Segment gross margin on hardware revenue is primarily attributable an increase in Segment gross profit for Stand Alone Chargers of $1.2 million from ($1.0) million during the year ended June 30, 2021 to a segment gross profit of $0.2 million during the year ended June 30, 2022. The improved Segment gross margin on Stand Alone Chargers resulted from increased efficiencies, price increases and parts discounts from greater volumes.
The increase in Other sales also contributed to an increase of Segment gross profit of $0.1 million. The overall increase was offset by a decrease in Segment gross profit for Distributed Chargers of $1.2 million from ($0.7) million during the year ended June 20, 2021 to a segment gross profit of ($1.9) million during the year ended June 20, 2022.
Segment gross margin on service and maintenance revenue increased from (10.7)% during the fiscal year ended June 30, 2021, to 24.3% during the fiscal year ended June 30, 2022, representing an increase in Segment gross profit of $1.5 million, from a Segment gross loss of $0.3 million during the fiscal year ended June 30, 2021 to a Segment gross profit of $1.2 million during the year ended June 20, 2022.
The increase is primarily attributable to increased number of chargers in the field post warranty, and improvements in efficiencies of operations.
Selling, General and Administrative Expenses
SG&A expenses increased by $42.7 million, or 135.0%, from $31.6 million during the fiscal year ended June 30, 2021, to $74.3 million during the fiscal year ended June 30, 2022, primarily attributable to increases in stock based payment expenses (total of stock based employee benefits expense and cash settled stock based compensation expense) of $19.8 million, wages, salaries, and other employee benefits of $8.0 million due to an increase of 60 full-time equivalent employees, IT and communications expenses of $4.6 million, professional fees of $4.2 million, insurance costs of $2.7 million, occupancy costs of $2.7 million and other selling, general and administrative expenses of $1.8 million. The overall increase in SG&A expenses was offset by a decrease in depreciation expense of $0.7 million, other operating expense of $0.3 million and expected credit losses on trade receivables of $0.1 million.
105