The main objective of this paper is to investigate the buckling behavior of symmetric and non-symmetric carbon nanotube-reinforced composite (CNTRC) nanobeams with nonlocal strain gradient effects. For this purpose, a novel trigonometric shear deformation beam theory is employed, and the Galerkin method is used for analysis. The carbon nanotube-reinforced composite beam consists of a polymeric matrix reinforced with aligned and distributed single-walled carbon nanotubes (SWCNTs) having various reinforcement patterns. The material properties of the carbon nanotube-reinforced composite beams are estimated using the rule of mixture.The governing equations of the problem are derived based on the principle of total potential energy. The proposed theory accurately represents the parabolic distribution of transverse shear stress across the beam thickness and satisfies the zero traction boundary conditions on the top and bottom surfaces without requiring shear correction factors. The mathematical models presented in this work are validated numerically by comparing them with existing literature to assess their accuracy and reliability. The buckling analyses of the carbon nanotube-reinforced composite nanobeams are conducted, considering various factors such as beam types, nonlocal length-scale parameter, strain gradient microstructure-scale parameter, geometry, carbon nanotube volume fraction, and boundary conditions. Additionally, new results are reported in this study, which can serve as a benchmark for future research.