The present invention relates to a composition for a cleansing agent comprising a component (A) in the form of an ionic surfactant and a component (B) in the form of one or more types of compounds selected from the group consisting of a hydroxystearic acid polymer and an esterification reaction product of a hydroxystearic acid polymer. According to the present invention, a composition for a cleansing agent can be provided that has favorable foaming power and foam quality, is easily rinsed during cleansing, is free of stickiness after cleansing and allows the obtaining of a moist feeling.