A measurement of the double-differential inclusive jet cross section as a function of jet transverse momentum [Formula: see text] and absolute jet rapidity [Formula: see text] is presented. The analysis is based on proton-proton collisions collected by the CMS experiment at the LHC at a centre-of-mass energy of 13[Formula: see text]. The data samples correspond to integrated luminosities of 71 and 44[Formula: see text] for [Formula: see text] and [Formula: see text], respectively. Jets are reconstructed with the anti-[Formula: see text] clustering algorithm for two jet sizes, R, of 0.7 and 0.4, in a phase space region covering jet [Formula: see text] up to 2[Formula: see text] and jet rapidity up to [Formula: see text] = 4.7. Predictions of perturbative quantum chromodynamics at next-to-leading order precision, complemented with electroweak and nonperturbative corrections, are used to compute the absolute scale and the shape of the inclusive jet cross section. The cross section difference in R, when going to a smaller jet size of 0.4, is best described by Monte Carlo event generators with next-to-leading order predictions matched to parton showering, hadronisation, and multiparton interactions. In the phase space accessible with the new data, this measurement provides a first indication that jet physics is as well understood at [Formula: see text] as at smaller centre-of-mass energies.