The students in Missouri created the cap that looks a bit like a mushroom on its underside and works by holding back the water that forms at the top of bottled ketchup.
When Tyler Richards and Jonathan Thompson from Liberty North High School proposed the idea their teacher was not entirely onboard with it, 'CNET' reported.
However, after countless surveys and research to back up their theory, their teacher agreed to the idea of a bottle cap that prevents water from dripping out of the ketchup bottle.
To overcome this, Richards and Thompson came up with the bottle cap that looks like a mushroom.
More From This Section
"So the only way out is to go up under the dome, and then through the tube. And so when you squeeze it out, all the water is sitting on the bottom, and the ketchup is the only stuff that will go through," Richards told local news station Fox4 in Kansas City.
"We would put our cap on, squirt out the ketchup, and we were getting none," Thompson added.
The duo is now looking into getting a provisional patent for their product.