Gel’fand, Kapranov and Zelevinsky proved, using the theory of perverse sheaves, that in the Cohen–Macaulay case an A-hypergeometric system is irreducible if its parameter vector is non-resonant. In this paper we prove, using the theory of the ring of differential operators on an affine toric variety, that in general an A-hypergeometric system is irreducible if and only if its parameter vector is non-resonant. In the course of the proof, we determine the irreducible quotients of an A-hypergeometric system.