We present a theoretical model to calculate the flexural rigidity of nanowires from three-dimensional elasticity theory that incorporates the effects of surface stress and surface elasticity. The unique features of the model are that it incorporates, through the second moment, the heterogeneous nature of elasticity across the nanowire cross section, and that it accounts for transverse surface-s...