This work extends the contagion model introduced by Nier et al. (J Econ Dyn Control 31(6):2033–2060, 2007.
http://www.bankofengland.co.uk/publications/workingpapers/wp346.pdf) to inhomogeneous networks. We preserve the convenient description of a financial system using a sparsely parameterized random graph, but add several relevant inhomogeneities. These include well‐connected banks, financial institutions with disproportionately large interbank assets, and big banks that focus on wholesale and retail customers. These extensions significantly enhance the model’s generality as they reflect realistic inhomogeneities that have a potentially decisive impact on a system’s stability. We find that large and well‐connected banks have a surprisingly modest impact. However, institutions with disproportionately large interbank assets significantly increase the risk of contagion in networks. Moreover, these effects can be partly compensated by a redistribution of equity capital, even without increasing the total amount. However, the level of regulatory capital should be defined according to the interbank market position of a bank, and not the size of the bank.