Did you know sniffing farts can prevent cancer, heart attack and dementia?

The smell of flatulence has secret health benefits – and could help stave off cancer, strokes, heart attacks and dementia, scientists have revealed.

According to a study published in the journal Medicinal Chemistry Communications, passing gas may help you live longer and in a suprise twist, smelling the gas might prevent dementia.

It is toxic in large doses but in tiny amounts it helps protect cells and fight illness, according to researchers at Exeter University.

Hydrogen sulfide is among the potent smelly gases produced by bacteria as it breaks down food in the gut.

Researchers found that when you pass wind, you are indirectly lowering your risk of cancer, heart attacks and strokes while the inhalation of the fart actually causes your brain to grow stronger and protects it from dementia.

When cells become stressed by disease, they try to draw in enzymes to generate their own minute quantities of hydrogen sulfide.

The chemical helps to preserve mitochondria, which drives energy production in blood vessel cells and regulate inflammation, and without it, the cell can switch off and die.

Researchers have come up with a new compound named AP39 to assist the body in producing just the right amount of hydrogen sulfide it requires.

They believe it will help prevent or reverse mitochondrial damage, a key strategy in treating conditions such as stroke, heart failure, diabetes, arthritis, dementia and ageing.

Professor Matt Whiteman from University of Exeter’s medical school said: “When cells become stressed by disease, they draw in enzymes to generate minute quantities of hydrogen sulfide.

“This keeps the mitochondria ticking over and allows cells to live. If this doesn’t happen, the cells die and lose the ability to regulate survival and control inflammation.

“We have exploited this natural process by making a compound, called AP39, which slowly delivers very small amounts of this gas specifically to the mitochondria.

“Our results indicate that if stressed cells are treated with AP39, mitochondria are protected and cells stay alive.”

Before it can be tested on humans, researchers have run disease models to see how effective AP39 is.

Early results show that it can help up to 80 percent more mitochondria survive highly destructive conditions such as cardiovascular disease.

Fellow researcher, Mark Wood added that “although hydrogen sulfide is well known as a pungent, foul-smelling gas in rotten eggs and flatulence, it is naturally produced in the body and could in fact be a healthcare hero with significant implications for future therapies for a variety of diseases.