They can even be addictive.
Medications Available
Four classes of prescription laxatives are on the market.
Prescription medications are considered safer for long-term use.

Universal Images Group / Getty Images
A colonoscopy is less common but it may be ordered if certain symptoms are present.
Contraindications
Not all prescription laxatives are safe for everyone.
Some medical conditions or other circumstances may make a drug unsuitable for you.
These are called contraindications.
Your healthcare provider can help guide you to the safest drug for you based on your complete medical history.
Most prescription laxatives are minimally absorbed by the bloodstream, meaning they’re considered safe during pregnancy and breastfeeding.
Other
Many medications can interact with other drugs.
Long-Term Laxative Use
OTC laxatives are for short-term use only.
Long-term use can lead to multiple problems, including worsening constipation and addiction.
These are not problems associated with prescription laxatives, which are considered safe for long-term use.
Side Effects and Warnings
Each class of laxatives is associated with certain side effects and warnings.
You should stop taking this medication right away and contact your healthcare provider if you experience this.
Drug Allergies
Allergic reactions to drugs are always possible.
You don’t have to suffer from constipation.
2015;11(2):104-114.
Prescribers' Digital Reference.Polyethylene glycol 3350 - Drug summary.
Prescribers' Digital Reference.Lactulose - Drug summary.
Portalatin M, Winstead N.Medical management of constipation.Clin Colon Rectal Surg.
Camilleri M.New treatment options for chronic constipation: mechanisms, efficacy and safety.Can J Gastroenterol.
2011;25 Suppl B(Suppl B):29B-35B.
U.S. Food and Drug Administration: FDA AccessData.Amitiza: Highlights of prescribing information.
U.S. Food and Drug Administration: FDA AccessData.Linzess: Highlights of prescribing information.
U.S. Food and Drug Administration: FDA AccessData.Trulance: Highlights of prescribing information.
U.S. Food and Drug Administration: FDA AccessData.Relistor: Highlights of prescribing information.
U.S. Food and Drug Administration: FDA AccessData.Movantik: Highlights of prescribing information.
U.S. Food and Drug Administration: FDA AccessData.Symproic: Highlights of prescribing information.
Tropini C, Moss EL, Merrill BD.Transient osmotic perturbation causes long-term alteration to the gut microbiota.Cell.
2018;173(7):1742-1754.e17.
doi:10.1016/j.cell.2018.05.008
American College of Allergy, Asthma & Immunology: Allergist.Anaphylaxis.