We prove the Grüss inequality on time scales and thus unify corresponding continuous and discrete versions from the literature. We also apply our results to the quantum calculus case.