A pantry list is useful when it connects what is on the shelf to meals you can actually make. It is not a fixed quantity of rice or cans for every household. Start with your meals and storage space, then use each product's own label.

Count available cans rather than everything on the shelf

A constructed shelf holds four cans. Two are already assigned to a different confirmed meal. This plan needs three cans before the next shop and chooses one as a convenience buffer. Available stock for this plan is two, so the order is max(0,3+1−2)=2 cans, not zero.

The result depends on not double-assigning stock. If the other meal is cancelled, check that decision before releasing its two cans. Count packages consistently and keep suitability, storage instructions and dates as separate checks. This inventory calculation cannot establish that a can with an unknown history is safe.

The input and output for pantry-staples-list are in the calculation results. Run the standard-library Python source to reproduce them; it does not read your files or send any data.

Build the list backwards from meals

Write down several meals you regularly prepare. For each one, list the shelf-stable ingredients, check what you already have and mark substitutions you would genuinely use. Do not add a large pack merely because a general staples list calls it essential.

Meal you actually makePantry ingredientsAlready in stockWhat would prevent making it?
Illustrative example: tomato pastaPasta, canned tomatoes, oilOne sealed pasta packNo tomatoes; buy only the missing item
Your mealYour ingredientsQuantity and package sizeMissing ingredient or unsuitable storage

The example is fictional. It does not claim a typical meal cost, a saving or a tested household result.

Record the package, not an assumed expiry

Use columns for product name, quantity, purchase date, date wording on the package, opening date and storage directions. A quality date, a use-by instruction and directions after opening are not interchangeable. Terminology varies by country and product. Follow the applicable label and local food-safety advice rather than converting an internet shelf-life range into permission to eat a product.

The FoodKeeper service provides product-specific storage information. Check the exact product and whether it is opened. For infant formula, follow the manufacturer's use-by date; the FDA formula guidance treats it as important to nutritional quality. This pantry checklist is not a safety test for food with an unknown history or damaged packaging.

Make a reorder rule from your own use

Use one unit consistently. In this fictional example, a household uses two cans a week and shops weekly. They decide to keep one extra can as a convenience buffer. Their planning threshold is two plus one, or three cans. With one usable can remaining, the next shopping list is two cans. This is a stock-planning calculation, not a food-safety rule or a recommendation for your household.

ItemUsable stockPlanned use before next shopChosen bufferBuy after checking storage and dates
Example cans1212
Your item, same unit throughoutFill inFill inOptionalMax(0, use + buffer − usable stock)

Plan a purchase for one item

Use the same package size for every quantity. Inputs are calculated on this page, not automatically saved or sent. This does not determine food safety or storage life.

Item quantities

After calculating, save the inputs, result and limits as a file on your device. Manage the downloaded file yourself on a shared device.

Review what the system missed

Put items needing earlier attention where you can see them, while following their storage requirements. If you repeatedly discard an item, reduce the next purchase or remove it from the core list. If the shelf is full but no complete meal is possible, the missing ingredient matters more than the number of items. Record that gap before shopping again.