Carbon formation may occur during CO 2 and CO 2 /H 2 O electrolysis using solid oxide electrolyzer cells due to the Boudouard reaction (2CO CO 2 + C(s)). Formed carbon may disintegrate the cell structure and it is therefore of importance to be able to predict when carbon is formed, and take actions to prevent its formation. For prediction of carbon formation, the gas composition in the electrode must be known. In this work, the diffusion of gases in the electrode has been modeled with the dusty gas model in 1 and 2 dimensions, and the effect of tortuosity, porosity, temperature, electrode thickness, pore diameter, current density, pitch and rib width has been investigated. It is shown that diffusion limitations on reactant/product transport may lead to carbon formation. The parameters describing the microstructure and the dimensions of the cathode channels and interconnect ribs are found to have a large effect on the carbon formation propensity. Given a set of parameters, a simple correlation between the CO mole fraction in the channel and under the interconnect rib, and current density during CO 2 -electrolysis can be derived. This correlation makes it possible to efficiently integrate the calculation of carbon formation risk in existing electrolyzer cell models.