Dioctyl capsules contain the active ingredient docusate sodium, which is a type of medicine called a laxative. It has a stool softening action. Docusate also has a stimulant effect on the gut. The dual action is effective at relieving constipation without straining. The capsules usually provide relief from constipation in one to two days.