Summary Various unified gas flow (UGF) and apparent permeability models have been proposed to characterize the complex gas transport mechanisms in shale formations. However, such models are typically expressed as combinations of multiple gas flow mechanisms so that they cannot predict gas velocity profile. In this study, we develop a novel approach to predict the gas velocity profile in the entire Knudsen number (Kn) regime for circular and noncircular (i.e., square, rectangular, triangular and elliptical) nanochannels and investigate the effects of cross-sectional geometry on gas transport in nanochannels. To this end, a new UGF model is proposed to describe the gas flow behaviors in the entire Kn regime, considering the effects of gas slippage, bulk diffusion, Knudsen diffusion, surface diffusion, and cross-sectional geometry of flow channel. In addition, the boundary condition of the semianalytical second-order slip model applicable to various cross-sectional geometries is modified by adjusting the slip coefficients through the comparison between the proposed UGF model and the Navier-Stokes (N-S) equation with second-order slip boundary condition. As a result, the velocity profile of free gas in the entire Kn regime for the nanochannel with a specific cross section can be determined by solving the second-order slip model with adjusted slip coefficients via the finite element method. The results indicate that the geometry of the cross section has a significant influence on the mass flow rate and gas velocity profile in nanochannels. The predicted mass flow rates for the nanochannels with identical hydraulic diameter decrease with the cross-sectional geometry in the sequence as ellipse > equilateral triangle > rectangle > square > circle. However, the ranking of velocity profiles for such nanochannels, which is governed by the cross-sectional geometry, also varies with Kn. These findings indicate that the developed approach can predict the synergetic gas transport (i.e., gas slippage, bulk diffusion, Knudsen diffusion, and surface diffusion) and gas velocity profile in nanochannels with different cross-sectional geometries for a wide range of Kn, which gives insight into the characterization of gas flow behaviors in nanoporous shale.