Abstract. Characterization of mechanical properties at the nanometer scale at variable temperature is one of the main challenges in the development of polymer-based nanocomposites for application in high temperature environments. Contact resonance atomic force microscopy (CR-AFM) is a powerful technique to characterize viscoelastic properties of materials at the nanoscale. In this work, we demonstrate the capability of CR-AFM of characterizing viscoelastic properties (i.e., storage and loss moduli, as well as loss tangent) of polymer-based nanocomposites at variable temperature. CR-AFM is first illustrated on two polymeric reference samples, i.e., low-density polyethylene (LDPE) and polycarbonate (PC). Then, temperature-dependent viscoelastic properties (in terms of loss tangent) of a nanocomposite sample constituted by a epoxy resin reinforced with single-wall carbon nanotubes (SWCNTs) are investigated.