A promising theory in modifying general relativity (GR) by violating the ordinary energy–momentum conservation law in curved spacetime is the Rastall theory of gravity. In this theory, geometry and matter fields are coupled to each other in a nonminimal way. Here, we study thermodynamic properties of some black hole (BH) solutions in this framework, and compare our results with those of GR.We demonstrate how the presence of these matter sources amplifies the effects caused by the Rastall parameter in thermodynamic quantities. Our investigation also shows that BHs with radius smaller than a certain amount (≡ r0) have negative heat capacity in the Rastall framework. In fact, it is a lower bound for the possible values of horizon radius satisfied by the stable BHs.