In the study, which took place in Germany, scientists trained the animals to use a designated toilet. Their urine was then collected and treated.
The ammonia from cows' urine turns into the greenhouse gas nitrous oxide when it's mixed with soil.
Worldwide, about 10% of all greenhouse gas emissions from human activities comes from cattle.
Researchers attempted to teach 16 cows to use the toilet, dubbed the "MooLoo", at a farm owned by the Research Institute for Farm Animal Biology.