The distribution of sulfur in the system Na2O-K2O-CaO-Al2O3-SiO2-H2O-S was investigated at 2 kbar, 750–950 °C, and oxygen fugacities ranging from the Co-CoO to the Re-ReO2 buffer. Anhydrite (CaSO4) crystallized in all the experiments conducted at oxidizing conditions (Ni-NiO + 0.5 to 1 and above). Under otherwise equal conditions, an inverse relationship between sulfur and CaO concentration was observed in melts coexisting with anhydrite, with the solubility product K = [CaO][SO3] being constant, where [CaO] and [SO3] are the molar fraction of CaO and SO3 in the quenched glasses. This suggests that anhydrite dissociates upon dissolution in the melt according to CaSO4 anhydrite = Ca2+melt + SO42−melt. The solubility product strongly depends on temperature, with lnK = – (28 573 ± 917)/T + (11.26 ± 0.80). This corresponds to an enthalpy of dissolution of ΔHR = 237.5 ± 7.6 kJ/mol. Under reducing conditions (Co-CoO and Ni-NiO buffer), CaO has no effect on the fluid/melt partition coefficient of sulfur Dsfluid/melt. At 850 °C, 2 kbar partition coefficients were 519 ± 30 at the Ni-NiO buffer and 516 ± 11 at the Co-CoO buffer, for CaO contents in the melt up to 1 wt%. These data are virtually identical to those measured in the CaO-free haplogranite system under reducing conditions. However, under more oxidizing conditions, the fluid/melt partition coefficient of sulfur appeared to have increased somewhat in the presence of CaO. This increase may, however, also be related to the fact that the final melt compositions in these runs were distinctly peraluminous. Our data show that calcium has no effect on the degassing of sulfur at reducing conditions, but it greatly reduces the amount of sulfur available for rapid degassing under oxidizing conditions by stabilizing anhydrite.