Free vibration of a cracked nanobeam with consideration of surface energy and transverse shear deformation is studied. The cracked nanobeam is simplified to a system of two segments joined by a rotational spring located at the cracked section. Numerical examples demonstrate that the surface energy increases the natural frequency of the beam. However, the influence of surface energy on the natural frequency becomes smaller for the higher modes. In addition, the effect of transverse shear deformation on the frequency becomes more significant for the higher modes.