Measurements are presented of the single-diffractive dijet cross section and the diffractive cross section as a function of the proton fractional momentum loss ξ and the four-momentum transfer squared t. Both processes p p → p X and p p → X p , i.e. with the proton scattering to either side of the interaction point, are measured, where X includes at least two jets; the results of the two processes are averaged. The analyses are based on data collected simultaneously with the CMS and TOTEM detectors at the LHC in proton-proton collisions at s = 8 Te during a dedicated run with β ∗ = 90 m at low instantaneous luminosity and correspond to an integrated luminosity of 37.5 nb - 1 . The single-diffractive dijet cross section σ jj p X , in the kinematic region ξ < 0.1 , 0.03 < | t | < 1 Ge 2 , with at least two jets with transverse momentum p T > 40 Ge , and pseudorapidity | η | < 4.4 , is 21.7 ± 0.9 (stat) - 3.3 + 3.0 (syst) ± 0.9 (lumi) nb . The ratio of the single-diffractive to inclusive dijet yields, normalised per unit of ξ , is presented as a function of x, the longitudinal momentum fraction of the proton carried by the struck parton. The ratio in the kinematic region defined above, for x values in the range - 2.9 ≤ log 10 x ≤ - 1.6 , is R = ( σ jj p X / Δ ξ ) / σ jj = 0.025 ± 0.001 (stat) ± 0.003 (syst) , where σ jj p X and σ jj are the single-diffractive and inclusive dijet cross sections, respectively. The results are compared with predictions from models of diffractive and nondiffractive interactions. Monte Carlo predictions based on the HERA diffractive parton distribution functions agree well with the data when corrected for the effect of soft rescattering between the spectator partons.