Given the sequential numbers of a group-subgroup pair and the transformation matrix that relates their coordinate systems, the program COSETS calculates the right coset decomposition of the group-subgroup pair represented in the selected basis (subgroup or supergroup).