It can be caused by eating too much in one sitting, eating while standing up, or even by talking with your mouth full of food.
You could also be at risk of stomach bloating and trapped wind by eating certain foods.
One of the worst foods for causing excess gas is beans, it’s been claimed.
Beans are rich in oligosaccharides – a type of sugar that some people struggle to digest.
When bacteria tries to break down the sugars, it leads to excess gas and stomach pain, said medical website Rennie.
You should also avoid eating spicy foods, or onion, it added.
While not everyone is affected by a spicy kick to their dinner, it can trigger severe stomach pain or bloating in some people.
“Getting stuck into a long lunch or a Sunday roast with all the trimmings should always be a pleasure – but if you suffer from bloating it can eventually become more of a pain,” said Rennie.
“Some people simply find certain foods hard to digest and this can include foods such as white breads, pasta and cereals due to a wheat sensitivity.
“Foods which are fried or particularly greasy add strain to your digestive system, also increasing the risk of heartburn and stomach aches.”
You could lower your risk of stomach bloating by eating more lean meat or fish, it added.
It’s also crucial to drink plenty of water. Without enough fluids, the body retains more water, which can lead to bloating.
Banana is a great addition to your diet to get rid of bloating pain, it’s been claimed.
The fruit contains potassium, which counteracts the effect of bloat-inducing sodium.
Standing up while eating and chewing gum could both contribute to stomach bloating.
Swallowing air may also lead to trapped wind, said the NHS. You could swallow air by talking and eating at the same time, or even by using a straw while drinking.
Eating regular meals and downsizing your portion sizes should help to ward off painful stomach swelling.
You should see a GP if your bloating symptoms persist, said the NHS.
Bloating, and persistently feeling full, are key signs of ovarian cancer, it added.