Let Ω ⊂ R n be a convex domain and let f : Ω → R be a subharmonic function, ∆f ≥ 0, which satisfies f ≥ 0 on the boundary ∂Ω.ThenOur proof is based on a new gradient estimate for the torsion function, ∆u = −1 with Dirichlet boundary conditions, which is of independent interest.2010 Mathematics Subject Classification. 26B25, 28A75, 31A05, 31B05, 35B50.