My son seems to have a problem with gas and spitting up. Could it be something in my breast milk?
Your baby may be sensitive to something you eat or drink, like caffeine or dairy products. If you think what you eat may be affecting your breastfed baby, speak with a Certified Lactation Consultant. But this is not usually the main cause for gas and spitting up. Gas and spitting up are usually caused by the baby sucking in air.
When Nursing at the Breast
A shallow latch or baby not having a good seal can cause gassiness and spitting up. Make sure your baby has a deep latch with his lips turned out. He shouldn't lose suction between gulps, and you shouldn't hear clicking as he feeds. Using proper breastfeeding positioning techniques can help.
Mouth issues that affect breastfeeding, like tongue ties or lip ties, can also cause these issues. If you suspect your baby has a tie, have him evaluated by his doctor, a trained dentist, or certified lactation consultant.
When Bottle-Feeding
For bottle-fed babies, the nipple flow may be too fast, or they may suck in air during or after the feeding. When using a bottle, try the pace feeding method, and don't let baby suck in air when the bottle is empty.
Overfeeding
Overfeeding is another common cause for gas and spitting up. This can happen with bottle-feeding and breastfeeding. If you feel your baby is getting too much milk too fast, look at tips for oversupply here.
To Relieve Gas
Smaller, more frequent feedings—by bottle or breast—are better for babies with gas or spitting up. Burp your baby often and keep him upright for 20 minutes after feedings. Massaging your baby's tummy, bicycling his legs, and using the magic hold (see image below) can also help relieve gas pains.
Some gas is a healthy sign that your baby's digestion is working properly. Minor spitting up is normal. It will likely get better once your baby starts to sit up on his own at around six months old.
SOURCE: https://www.askdrsears.com/topics/health-concerns/fussy-baby/comforting-gassy-baby