It's after the holidays and the shelves in your refrigerator and pantry may be looking a bit bare. Time to do a little grocery shopping! If you're looking to stock up without breaking the bank, both Aldi and Walmart sell inexpensive pantry staples. That works for most people since, on the whole, shoppers are looking for good quality at a good price, says John Karolefski, store analyst and editor of Grocery Stories. But which store offers the best deal on staples? Using the grocery price comparison app Basket, CNBC Make It compared a dozen essential items such as milk, bread, eggs, olive oil and flour at the Aldi and Walmart stores in North Bergen, New Jersey. When available, we also analyzed both retailers' organic store brand prices.

Note: Aldi's Simply Organic canned diced tomatoes only sold as a 28 oz can Aldi is cheaper overall on eight of the 12 products: It would cost under $17 to restock these kitchen essentials there. "Aldi, happily, has a lot of good quality, good-tasting products at good prices," Karolefski says. "It's one of the reasons they've been so successful in the U.S." Stocking up on the same products at Walmart is only a few bucks more than Aldi, though, for a total of just over $20, and the store has cheaper prices on bread, milk and eggs. Walmart offers shoppers a one-stop shopping experience, too: If you pop in, you can pick up groceries and an emergency toilet plunger, or a replacement pair of mittens for your forgetful kid.

Organic products