XISFis a MATLAB program developed to separate intermolecular structure factors from total X-ray scattering structure factors for molecular liquids and amorphous solids. The program is built on a trust-region-reflective optimization routine with the r.m.s. deviations of atoms physically constrained.XISFhas been optimized for performance and can separate intermolecular structure factors of complex molecules.