Several forms of a theorem providing general expressions for the force and torque acting on a rigid body of arbitrary shape moving in an inhomogeneous incompressible flow at arbitrary Reynolds number are derived. Inhomogeneity arises because of the presence of a wall that partially or entirely bounds the fluid domain and/or a non-uniform carrying flow. This theorem, which stems directly from Navier–Stokes equations and parallels the well-known Lorentz reciprocal theorem extensively employed in low-Reynolds-number hydrodynamics, makes use of auxiliary solenoidal irrotational velocity fields and extends results previously derived by Quartapelle & Napolitano (AIAA J., vol. 21, 1983, pp. 911–913) and Howe (Q. J. Mech. Appl. Maths, vol....