How long is onion good for?

Online Answer
two weeksWhole, raw onions can last in the fridge for up to two weeks. Although the fridge is not the best option for whole onions, once an onion is peeled it is best stored in the fridge to avoid contamination. Sliced or chopped raw onions should be stored in airtight containers and refrigerated.
Related Questions 📌
Kept in the dark: Davison says your potatoes should be stored inside a paper bag in a cool, dark, dry place. And as mentioned above, away from onions and their sprout-encouraging gases.
There are many ways of using garlic.
Keep them in the dark: Potatoes and onions are best stored in the dark in a cool place (separately of course).
Onions contain antioxidants and compounds that fight inflammation, decrease triglycerides and reduce cholesterol levels — all of which may lower heart disease risk. Their potent anti-inflammatory properties may also help reduce high blood pressure and protect against blood clots.
While the fridge isn't ideal for storing onions, it will extend the shelf life of whole, raw onions beyond a week at room temperature. Onions absorb moisture very easily however, so their texture may get somewhat soft in the fridge. Whole, raw onions can last in the fridge for up to two weeks.