Icicles are formed on days when the outdoor air temperature is sub freezing and heat from sunlight melts snow or ice on anything sloped. The droplets of water freeze as they loses their heat to the cold air, forming a cone-like shape of ice.