An attached sunspace’s south-facing glass collects solar energy as in a direct-gain system. The simplest sunspace design is to install vertical windows with no overhead glazing. Sunspaces may experience high heat gain and high heat loss through their abundance of glazing. Although horizontal and sloped glazing collects more heat in the winter, it is minimized to prevent overheating during summer months. Although overhead glazing can be aesthetically pleasing, an insulated roof provides better thermal performance. Skylights can be used to provide some daylighting potential. Vertical glazing can maximize gain in winter, when the angle of the sun is low, and yield less heat gain during the summer. Vertical glass is less expensive, easier to install and insulate, and not as prone to leaking, fogging, breaking, and other glass failures. A combination of vertical glazing and some sloped glazing is acceptable if summer shading is provided. A well-designed overhang may be all that is necessary to shade the glazing in the summer.