Abstract
The composition and structure of a possible solid inner core in Mars remain uncertain. Here we combine free energies calculated using a machine-learning interatomic potential with experimental constraints to construct a ternary Fe-S-O phase diagram under Martian core conditions. The phase diagram predicts that B1-structured FeO crystallizes first across the proposed Martian core compositions, with higher sulfur contents lowering the oxygen threshold for its crystallization. The modeled phase boundaries and seismically inferred liquid-core densities suggest two possible scenarios, with sinking FeO forming an inner core directly or buoyant FeO accumulating beneath the core-mantle boundary before a mixed Fe + FeO inner core could form during further cooling. These results provide a thermodynamic basis for understanding the formation and structure of a possible Martian inner core.