But excess levels, which can be caused by poor diet, are thought to damage blood vessels supplying the heart - raising the risk of a deadly clot forming.
Researchers from the National Defence Medical Centre in Taiwan tracked more than 2000 men and women, aged from 20 to 59.
They analysed blood samples to measure levels of homocysteine and matched the results up with volunteers' sexual activity.
The results showed the lowest traces of the chemical were found in men claiming to have sex at least twice a week, while the highest readings were found in those restricted to less than once a month.
But in women there was no significant variation.
Researchers called on doctors to advise male patients at risk of heart disease to have more sex.
In a report on their findings they said: "This is the first study of its kind to evaluate the correlation between sexual frequency and homocysteine levels.
"A good quality sex life, frequent sex and libido are all related to health in the middle-aged and elderly.
"Increased sexual frequency could have a protective effect on general health and quality of life - especially in men - so doctors should support patients' sexual activity."
Dr Mike Knapton from the British Heart Foundation said the study produced an "interesting result" but did not prove regular sex reduced homocysteine levels.
He said: "A relationship does exist between sex and heart disease risk.
"Checking your blood pressure and cholesterol, as well as keeping active and not smoking, remain the best ways to ensure a healthy future."
A major review of scientific data in 2015 found raised homocysteine levels increased the risk of death from heart disease by 66 per cent.
And last year experts at Boston University discovered the chances of a stroke jumped by almost a third in those with high readings.
It has also been linked with Alzheimer's disease and cancer.