In the present study, according to the important of porosity in low specific weight in comparison of high stiffness of carbon nanotubes reinforced composite, buckling and free vibration analysis of sandwich composite beam in two configurations, of laminates using differential quadrature method (DQM) is studied. Also, the effects of porosity coefficient and three types of porosity distribution on critical buckling load and natural frequency are discussed. It is shown the buckling loads and natural frequencies of laminate 1 are significantly larger than the results of laminate 2. When configuration 2 (the core is made of FRC) and laminate 1 ([0/90/0/45/90]s) are used, the first natural frequency rises noticeably. It is also demonstrated that the influence of the core height in the case of lower carbon volume fractions is negligible. Even though, when volume fraction of fiber increases, the critical buckling load enhances smoothly. It should be noticed the amount of decline has inverse relationship with the beam aspect ratio. Investigating three porosity patterns, beam with the distribution of porosity Type 2 has the maximum critical buckling load and first natural frequency. Among three elastic foundations (constant, linear and parabolic), buckling load and natural frequency in linear variation has the least amount. For all kind of elastic foundations, when the porosity coefficient increases, critical buckling load and natural frequency decline significantly.