In this work, gas flow and heat transfer have been numerically investigated and analyzed for both cathode/anode ducts of proton exchange membrane (PEM) fuel cells. The simulation is conducted by solving a set of conservation equations for the whole domain consisting of a porous medium, solid structure, and flow duct. A generalized extended Darcy model is employed to investigate the flow inside the porous layer. This model accounts for the boundary-layer development, shear stress, and microscopic inertial force as well. Effects of inertial coefficient, together with permeability, effective thermal conductivity, and thickness of the porous layer on gas flow and heat transfer are investigated.