Most kinds of pasta last in the fridge for 3–5 days. Before storing the cooked pasta or leftovers let the pasta cool slightly. Make sure to use a proper airtight container for storage.