This is arguably the most frequently asked question about stainless steel cups, and the answer depends on several factors.
Realistic heat retention times in a double-walled stainless steel cup:
Coffee/tea perceptibly warm: 4 to 8 hours
Coffee pleasantly drinkable (60 to 65°C): 2 to 5 hours
Iced drinks cold: 8 to 24 hours
Premium models with vacuum insulation: up to 12 hours hot, up to 24 hours cold
These figures apply to a well-designed double-walled cup of 300 to 500ml. Smaller cups cool down faster than large ones, simply because a small amount of liquid retains less heat. A single-walled stainless steel mug (without a vacuum layer) cools down quickly, comparable to a regular ceramic mug.
Tips to keep your drink hot for even longer:
Preheat your cup. Fill it with boiling water for 1 minute, pour it out, and immediately fill it with your coffee or tea. This can extend the heat retention time by 30 to 50%.
Fill it completely. A half-full cup cools down much faster than a full one. The empty air inside the cup draws heat away.
Don't open it unnecessarily. Every time you open the lid, heat escapes. Drink in calmer, less frequent sips.
Seal tightly. Check that the lid seals vacuum-tight. A loose lid is one of the biggest causes of rapid cooling.