Most “maggots” found in rice aren’t actually maggots! True maggots come from fly eggs, but the most common pantry pest is the Indian meal moth. Since both insects have similar-looking larvae, Indian meal moth larvae are still referred to as maggots. Indian meal moth eggs hatch into small white caterpillars about . 5 inches (1. 3 cm) long. Fully-grown larvae can also have a green or pinkish hue. [2] X Research source

Depending on when the eggs were laid, you may purchase rice that already contains visible maggot larvae, or the eggs will hatch a few weeks later (if you store your rice at room temperature). Inspect rice packaging at the supermarket to avoid purchasing potentially infested rice. If there are any holes or tears in the packaging, choose another bag of rice!

Avoid storing your rice in thin plastic bags or cardboard–maggots can chew through these materials! Keep all your pantry items, including rice, in a tightly-sealed container made out of metal, glass, or thick plastic. [5] X Research source

There’s a slim possibility that larvae can cause myiasis, a condition where surviving larvae enter the stomach and/or intestines. It’s typically not life-threatening, but it can cause vomiting, nausea, or stomach pains. [7] X Research source If your (dry) rice contains maggots, you don’t have to throw it out! Check the expiration date on the rice packaging to ensure it’s still fresh–spoiled food leads to food poisoning, rather than maggots.

If you don’t have a hair dryer, pour boiling water over the rice to kill the maggots and wait 5 minutes. Maggots cannot survive extreme temperatures, so you can cook the rice after draining the water. [9] X Research source

Oxygen absorbers are usually labeled with “do not eat” or “do not microwave” so make sure to remove them before cooking your rice.