Considering a Schwarzschild black hole surrounded by a fully ionized hydrogen plasma, we study the effect of the gravitational field of the plasma particles on the shadow. We take a formalism in which this effect is unified with the refractive effect of the plasma medium studied previously, but the two effects are characterized by two independent parameters. For semi-realistic values of parameters, we find their corrections to the shadow radius are both negligible, and the gravitational correction can overtake the refractive correction for active galactic nuclei of masses larger than $$10^9M_{\odot }$$
10
9
M
⊙
. With unrealistically large values of parameters, we illustrate the two effects on the light trajectories and the intensity map.