"Yeah, they're out there havin' fun, In the warm California sun," sang The Rivieras in their 1964 hit.

And it could not be more apt today as the sun in the state was so strong – and the number of solar farms so large – that electricity prices in the state have begun turning negative on the main power exchange, the US Energy Information Administration (EIA) has revealed.

Solar made up a record figure of nearly 40 per cent of the electricity sent to the grid in the California Independent System Operator’s (CAISO’s) territory for a few hours on 11 March, after utility-scale solar farms grew by almost 50 per cent in 2016, the EIA said on its website.

Graphs showing solar energy production and electricity prices, which drop below zero for several hours, in California on 11 March (US EIS)

However, as the Quartz website pointed out, negative wholesale prices do not translate into an unexpected windfall for consumers.

This is because retail prices are based on the average cost, so people might get slightly cheaper electricity but not an actual cash payment as a result of prices becoming negative for a few hours.

The EIA said: “The large and growing amount of solar generation has occasionally driven power prices on the CAISO power exchange during late winter and early spring daylight hours to very low, and sometimes negative, prices.

“However, consumers in California continue to pay average retail electricity prices that are among the highest in the nation.”

Solar capacity in the state has grown rapidly in the last few years.

There was less than one gigawatt in 2007, but nearly 14GW by the end of last year.

At this time of year, the large amounts of sunlight and the relatively low demand can produce too much electricity around the middle of the day.

An entire island is being powered by solar energy

“Electricity demand in California tends to peak during the summer months,” the EIA said.

“However, in late winter and early spring, demand is at its annual minimum, but solar output, while not at its highest, is increasing as the days grow longer and the sun gets higher in the sky.

“Although the sun is at a similar angle in September and October, electricity demand is still relatively high, leading to lower solar generation shares than seen in March.

“Consequently, power prices … were substantially lower in March compared with other times of the year or even March of last year.

“In March, during the hours of 8am to 2pm, system average hourly prices were frequently at or below $0 per megawatthour.

10 photographs to show to anyone who doesn't believe in climate change Show all 10 1 /10 10 photographs to show to anyone who doesn't believe in climate change 10 photographs to show to anyone who doesn't believe in climate change A group of emperor penguins face a crack in the sea ice, near McMurdo Station, Antarctica Kira Morris 10 photographs to show to anyone who doesn't believe in climate change Floods destroyed eight bridges and ruined crops such as wheat, maize and peas in the Karimabad valley in northern Pakistan, a mountainous region with many glaciers. In many parts of the world, glaciers have been in retreat, creating dangerously large lakes that can cause devastating flooding when the banks break. Climate change can also increase rainfall in some areas, while bringing drought to others. Hira Ali 10 photographs to show to anyone who doesn't believe in climate change Smoke – filled with the carbon that is driving climate change – drifts across a field in Colombia. Sandra Rondon 10 photographs to show to anyone who doesn't believe in climate change Amid a flood in Islampur, Jamalpur, Bangladesh, a woman on a raft searches for somewhere dry to take shelter. Bangladesh is one of the most vulnerable places in the world to sea level rise, which is expected to make tens of millions of people homeless by 2050. Probal Rashid 10 photographs to show to anyone who doesn't believe in climate change Sindh province in Pakistan has experienced a grim mix of two consequences of climate change. “Because of climate change either we have floods or not enough water to irrigate our crop and feed our animals,” says the photographer. “Picture clearly indicates that the extreme drought makes wide cracks in clay. Crops are very difficult to grow.” Rizwan Dharejo 10 photographs to show to anyone who doesn't believe in climate change Hanna Petursdottir examines a cave inside the Svinafellsjokull glacier in Iceland, which she said had been growing rapidly. Since 2000, the size of glaciers on Iceland has reduced by 12 per cent. Tom Schifanella 10 photographs to show to anyone who doesn't believe in climate change A river once flowed along the depression in the dry earth of this part of Bangladesh, but it has disappeared amid rising temperatures. Abrar Hossain 10 photographs to show to anyone who doesn't believe in climate change A shepherd moves his herd as he looks for green pasture near the village of Sirohi in Rajasthan, northern India. The region has been badly affected by heatwaves and drought, making local people nervous about further predicted increases in temperature. Riddhima Singh Bhati 10 photographs to show to anyone who doesn't believe in climate change A factory in China is shrouded by a haze of air pollution. The World Health Organisation has warned such pollution, much of which is from the fossil fuels that cause climate change, is a “public health emergency”. Leung Ka Wa 10 photographs to show to anyone who doesn't believe in climate change Water levels in reservoirs, like this one in Gers, France, have been getting perilously low in areas across the world affected by drought, forcing authorities to introduce water restrictions. Mahtuf Ikhsan

“In contrast, average hourly prices in March 2013–15 during this time of day ranged from $14/MWh to $45/MWh.