The ITER electron cyclotron heating transmission lines will consist of 63.5 mm diameter corrugated waveguides, each carrying 1 MW of 170 GHz microwaves. These transmission lines must include expansion units to accommodate expansion and contraction along the path from the gyrotron microwave sources to the tokamak. A numerical mode matching code has been developed to calculate power losses due to mode conversion of the operating mode, HE 11 , to higher order modes as a result of the radial discontinuities in a sliding joint. Two expansion unit designs were evaluated, a simple gap expansion unit and a more complex tapered expansion unit. The gap expansion unit demonstrated loss that oscillated rapidly with expansion length, due to trapped modes within the unit. The tapered expansion unit has been shown to effectively suppress these trapped modes at the expense of increased fabrication complexity. In a gap expansion unit, for a waveguide step size of 2.5 mm, loss can be kept below 0.1% to a maximum expansion length of 17 mm. Expansion units without corrugation on interior walls were also evaluated. Expansion units that lack corrugations are found to increase mode trapping within the units, though not beyond useful application. The mode matching code developed in this paper was also used to estimate mode conversion loss in vacuum pumpouts for the ECH lines; the estimated loss was found to be negligibly small.