Contamination of metal films by sulfur-containing compounds presents a major challenge to using metal membranes for H 2 purification in processes involving large-scale gasification of coal or biomass. Formation of bulk sulfide phases in these applications is typically associated with irreversible loss of performance and ultimately membrane failure. The concept of using metal alloys to reduce sensitivity to sulfide formation has been explored in a variety of experiments, but development of alloys for this purpose has been hampered by a lack of thermodynamic data on formation of the relevant sulfide phases. We show that first principles calculations using density functional theory can be used to predict the formation of bulk sulfide phases from metal alloys under conditions that are relevant for operation of metal membranes. Our methods are illustrated by assessing the formation of sulfides for PdAg, PdAu, and PdCu alloys of all possible binary compositions.