Constipation is an uncomfortable, sometimes painful, condition. It happens when the movement of stool through your bowels slows. Stools can become dry and hard. This makes them difficult to pass.

Most people have at least occasional periods of constipation. Some people have it on a regular basis.

If you’re constipated, it may mean that you have infrequent bowel movements. This means having less than three bowel movements per week.

There are many prescription and over-the-counter laxatives available to treat constipation. One of these options is mineral oil.

Mineral oil is a lubricant laxative. It’s been used for many years to make it easier to have a bowel movement, and is generally considered safe and effective.

Mineral oil coats the stool and the inside of the bowel with moisture. This helps keep the stool from drying out.

You can buy mineral oil here. It’s available in liquid or oral form, or as an enema.

Drink the plain liquid or mix it with water or another drink. A mineral oil enema usually comes in a squeezable tube. This allows you to deliver the oil directly into your rectum.

Because mineral oil takes about 8 hours to work, consider taking it right before bedtime. This may limit or reduce your chance of waking up in the middle of the night to go to the bathroom.

Avoid taking it with meals because mineral oil can interfere with your body’s absorption of several important nutrients. This is also why it’s not recommended for pregnant women to treat constipation.

Don’t take mineral oil within 2 hours of taking another medication because it can interfere with the other medication’s effectiveness.

The laxative is sold as plain mineral oil and as a mineral oil emulsion, which means the oil has been mixed with another liquid. Regardless of which type of mineral oil laxative you buy, be sure to follow the instructions carefully.

Oral doses range from 15 to 30 milliliters (ml) of mineral oil for children under 6. These numbers can vary depending on the product. Some doctors say children under the age of 6 shouldn’t take mineral oil.

If you have questions, check with your pediatrician about any changes in guidelines or recommendations for mineral oil as a laxative.

Adults can take 15 to 45 ml of mineral oil orally. These numbers will vary depending on the product. Ask your doctor about what dose is appropriate for you.

Like other laxatives, mineral oil is meant to provide short-term relief. If you have success using it yet your constipation problems continue, your doctor may recommend careful use. But try to avoid using it for an extended period.

Talk to your doctor if you don’t notice any improvement after a week of using this laxative.

Be careful when giving mineral oil to your child. If a child inhales it, it can result in respiratory difficulty. It may also result in pneumonia.

If you or your child develops a cough or other respiratory problems after starting mineral oil, tell your doctor.

Because you can’t digest mineral oil, some may leak out of the rectum. This can make a mess and irritate the rectum. Taking smaller doses may help solve this problem.

Allergies to mineral oil are unusual. If you have problems with itching, swelling, or breathing trouble, seek immediate medical attention.

The older you get, the more you’re at risk for constipation. Women tend to be more likely than men to develop constipation. This is at least partly because constipation commonly occurs during pregnancy.

Additional risk factors for constipation include:

  • being dehydrated
  • not getting enough fiber in your diet
  • having thyroid disease, which is more common in women
  • taking certain narcotic drugs
  • taking certain sedatives
  • taking certain medications to lower your blood pressure
  • having medical conditions, such as Parkinson’s disease and multiple sclerosis
  • having weakened pelvic muscles, or ones that no longer relax and constrict

Certain lifestyle choices can help you avoid this difficult digestive problem. Make sure your diet contains plenty of roughage, like fruit, whole grains, and green, leafy vegetables.

Staying hydrated is also important. Try to drink six to eight glasses of water each day, unless your doctor says otherwise.

Exercising every day can also help improve your digestion and your overall physical health.

A mineral oil laxative should work after the first dose. If it doesn’t, check the product’s label or discuss your options with your doctor. It may take a few days for you to get relief.

If you don’t get relief after a week, you may need to try a different type of laxative.

If you have success with mineral oil, be careful not to overdo it. It’s possible to use a laxative so much that you eventually have trouble having a bowel movement without using one.

Healthline and our partners may receive a portion of revenues if you make a purchase using a link above.