According to the British Journal of Cancer, the test could revolutionise and speed up the way this cancer is diagnosed, the BBC reported.
About 7,000 UK people develop stomach cancer each year and most have an advanced stage of the disease.
Two-fifths of patients survive for at least a year, but only a fifth are still alive after five years, despite treatment.
Currently doctors diagnose stomach cancer by taking a biopsy of the stomach lining using a probe and a flexible camera passed via mouth and down the gullet.
The new test looks for chemical profiles in exhaled breath that are unique to patients with stomach cancer.
Cancer appears to give off a signature smell of volatile organic compounds that can be detected using the right technical medical kit - and perhaps even dogs.
The science behind the test itself is not new - many researchers have been working on the possibility of breath tests for a number of cancers, including lung.
But the work by Prof Hossam Haick, of the Israel Institute of Technology, suggests it is a good way to spot stomach cancer.
In the study, 37 of the patients had stomach cancer, 32 had stomach ulcers and 61 had other stomach complaints.
As well as accurately distinguishing between these conditions 90 percent of the time, the breath test could tell the difference between early and late-stage stomach cancers.