A future electron-ion collider will enable the gluon contributions to the gravitational form factors of the proton to be constrained experimentally for the first time. Here, the first calculation of these form factors from lattice quantum chromodynamics is presented. The calculations use a larger-than-physical value of the light quark mass corresponding to m[subscript π]∼450 MeV. All three form factors, which encode the momentum dependence of the lowest moment of the spin-independent gluon generalized parton distributions and are related to different components of the energy-momentum tensor, are resolved. In particular, the gluon D-term form factor, related to the pressure distribution inside the nucleon, is determined for the first time. ...