Articles you may be interested inA recently developed continuum theory considering surface effect in nanomaterials is adopted to investigate the resonant properties of nanowires with different boundary conditions in the present paper. The main feature of the adopted theory is that the surface effect in nanomaterials is characterized by the surface energy density of the corresponding bulk materials and the surface relaxation parameter in nanoscale. Based on a fixed-fixed beam model and a cantilever one, the governing equation of resonant frequency for corresponding nanowires is obtained. Numerical calculation of the fundamental resonant frequency is carried out, the result of which is well consistent with the existing numerical ones. Comparing to the result predicted by the conventionally structural dynamics, the resonant frequency of a fixed-fixed nanowire is improved, while that of a cantilever nanowire is weakened due to the surface effect. Both a decreasing characteristic size (height or diameter) and an increasing aspect ratio could further enhance the varying trend of resonant properties for both kinds of nanowires. The present result should be helpful for the design of nano-devices and nanostructures related to nanowires. V C 2015 AIP Publishing LLC.