Best thermostat settings by season
DOE suggests lowering the thermostat while you sleep or are away in winter and raising it in summer, which can save up to a tenth of heating and cooling costs. Heat pumps need special handling.

On this page
There is no single best temperature. The Department of Energy's advice is better described as a method: pick the most comfortable setting you can live with when you are home and awake, then let the house drift toward the outdoor temperature when nobody needs it comfortable. The savings come from the difference, held for long stretches.
Winter
In winter, DOE's consumer guide says to use the lowest comfortable temperature while you are awake. For sleeping hours and times when the home is empty, the Energy Saver Guide suggests a setback of 7 to 10 degrees F for about 8 hours a day, which it says can save up to 10% a year on heating and cooling. The consumer guide puts the rule of thumb this way: each degree of setback held over eight hours saves about about 1% on heating.
The arithmetic is why long stretches matter. A house that sits below its normal temperature loses heat more slowly, so the savings come from the difference held for hours, not from a brief dip. If you are unsure what your own home does, a schedule is easier to live with than adjusting the dial by hand.
Summer
DOE says to set the thermostat as high as is comfortable when you are home. In its consumer guide it adds that when you are away you should leave the system running at a higher setting, not turn it off, to prevent moisture and mold. A ceiling fan lets you raise the setting by about 4 degrees F without losing comfort, and the Energy Saver Guide says to turn fans off when you leave the room.
The heat pump exception
Heat pumps are the one common case where the usual advice backfires. The Energy Saver Guide says that with a heat pump you should not use manual setbacks unless the thermostat is designed for heat pumps. If you are not sure what kind of heating you have, look at the label on the outdoor unit or ask the installer or a technician.
Other systems respond slowly too, and the sources do not give a single rule for them. If your house takes a long time to warm up, try a smaller setback and compare a month of usage on the bill with the same month a year earlier, keeping in mind that the weather also changed.
Worked example
A household of three leaves the house empty on weekdays. Their furnace is gas and their thermostat is programmable. They program a setback for the hours they are at work and another for the night, and set the schedule to bring the house back to its awake setting shortly before the first person gets home. After a month they compare the gas usage on their bill with the same month a year earlier, keeping in mind that the weather also changed. Their neighbor has a heat pump and leaves the schedule flat, because DOE warns that manual setbacks can backfire on heat pumps unless the thermostat is made for them.
Related
The winter bill reduction checklist and summer checklist turn these settings into tick-off lists.