As you could see on slide four, diluted earnings per share was a loss of $0.03 per share in the third quarter of 2020 compared to a loss of $1.81 per share in the third quarter of 2019.
The prior year period included $1.94 per share impairment charge related to our logistics goodwill and long-lived assets at CMT. Excluding this noncash charge, earnings per share was down quarter-over-quarter by $0.16, mainly due to lower volumes across the segments.
Looking at adjusted EBITDA, this came in at $47.8 million in the third quarter of 2020 versus $66.7 million in the third quarter of 2019.
Adjusted EBITDA from the coke operations decreased $11.8 million compared to the prior year period.
Domestic sales volumes were approximately 190,000 tons lower than the prior year due to customer turndowns.
Adjusted EBITDA from the Logistics segment decreased by $5.3 million versus third quarter of 2019.
The throughput volumes at CMT and the domestic terminals were lower by approximately 1.4 million tons versus the prior year.
In exchange for the extension of several coke contracts, we agreed to reduce our coke production in 2020 by approximately 550,000 tons.
The logistics operations were $5.3 million lower quarter-over-quarter due to lower volumes and lower pricing, which was again offset by lower operating costs.
Corporate expenses in the quarter includes foundry-related research and development costs of approximately $1 million.
We sold 868,000 tons of coke in the quarter.
Q3 2020 adjusted EBITDA per ton was approximately $56 per ton compared to $57 per ton in Q3 of 2019.
Logistics adjusted EBITDA was $4.3 million in Q3 of 2020 versus $9.6 million in Q3 of 2019.
CMT contributed $1.7 million to Q3 2020 adjusted EBITDA as compared to $7.4 million in Q3 2019 on comparable volume.
The domestic terminals handled approximately 2.2 million tons in Q3 of 2020 versus 3.4 million tons in Q3 of 2019.
You could see on the chart that our cash balance at the end of the quarter was $86 million.
In the quarter, cash flow from operations generated $74.5 million, and we had capex of $16.5 million.
Additionally, we paid a $0.06 per share dividend in the quarter, which was a use of cash of $5 million and today, announced the declaration of the third quarter dividend.
At the end of the quarter, on an LTM basis, our gross leverage was 3.37 times, and our net leverage was 2.98 times.
To that end, we repurchased $7.5 million face value of SXCP notes in the third quarter and an additional $33.2 million here in Q4.

Summary:
As you could see on slide four, diluted earnings per share was a loss of $0.03 per share in the third quarter of 2020 compared to a loss of $1.81 per share in the third quarter of 2019.