In this paper, we present an accurate three-dimensional formulation for the vibrations of the laminated and sandwich shallow shells. The sandwich structure is characterized by a thick viscoelastic core and two thin composite faces. Frequency dependent viscoelastic models are introduced in the sandwiches. Without any change in solution procedure, the formulation makes it quite easy to change the boundary conditions. The solution can be obtained by means of Rayleigh-Ritz process combined with the three-dimensional modified Fourier series which are actually assumed displacement functions. These functions, without need to meet the boundary conditions in advance, take the form of the threedimensional Fourier series with several closed-form auxiliary functions which are supplemented to deal with the discontinuities at the boundaries in terms of displacements and its derivatives. Besides, only three assumed displacement variables are employed in the formulation which effectively reduces the computation cost. The reliability and accuracy of the method are demonstrated by numerical comparisons and examples with the constant viscoelastic models as well as the frequency dependent ones. Modal analysis and parametric studies are conducted to examine the influences of the boundary condition, dimension, lamination scheme, temperature and frequency dependence of the materials. (C) 2018 Elsevier Inc. All rights reserved.