But add up all those energy sources - solar, wind, natural gas, as well as hydropower, nuclear and others - and on some days, they’re making more electricity than California needs.

“When it gets really bad, now we really got to start cutting as much as we possibly can,” Traweek says. “If that’s not done, then you could have a blackout.”

So, grid operators have to tell solar farms to shut off.

“That’s zero-carbon, clean energy,” says Keith Casey, a vice president at the California Independent System Operator. “It would just be a travesty to curtail large amounts of it.”

Casey says the problem will only get worse as more solar and wind connect to the grid. California plans to hit 50 percent renewable energy by 2030.

Joining Grids Across the West

California’s grid operator is developing a solution, one that is garnering controversy across state lines.

Right now, California’s grid runs mostly on its own, like an island. But there are power lines reaching across the West.

“You’re operating your little piece of the system,” Casey says, "but if you can operate it as an integrated whole, you can just operate the system more efficiently."

So, Casey is proposing California join up with its neighbors. Instead of having lots of electric grids across the West, each doing their own thing, there would be a larger regional grid, sharing power across state lines.

When California has too much solar power, neighboring states would buy it, preventing California from having to switch off the solar farms.

“It’s a win-win,” Casey says. “We really think we need to seize the most efficient opportunities that are out there for integrating renewables.”

This marriage of electric grids would start with PacifiCorp, a utility that runs its own grid in Oregon, Utah, Idaho and Wyoming.

A study commissioned by PacifiCorp found that customers across both regions would save $154 to $335 million annually through sharing lower-cost renewable energy and avoiding turning off solar farms.

Coal Power on the Line

But PacifiCorp isn’t a partner everyone wants to get in bed with.

“PacifiCorp is by far the largest owner of coal plants in the Western United States,” says Travis Ritchie, an attorney with the Sierra Club. In 2014, more than 60 percent of PacifiCorp’s electricity came from coal power.

“That’s a big problem for California,” he says. “We have put forth a lot of really great policy measures to stop coal for climate reasons, for pollution reasons.”

PacifiCorp’s coal power wouldn’t necessarily flow into California. The state’s climate change law, AB 32, means that electricity from other states has a price tacked on that raises the cost of fossil fuels to account for their carbon emissions.

But Ritchie warns that joining a regional electric grid, governed across several states with different agendas, could mean giving up some of California’s autonomy.

“Will California actually lose the ability lead on climate issues if it gives up its power to Utah and Wyoming, two states that are actively fighting everything about climate change that California is working to promote?” he says.

Several state legislators have the same concern. In February, they sent a letter to Governor Jerry Brown raising red flags about the merger.

“We have made great strides to make sure that our electricity is as clean as possible,” says California Assembly Speaker Anthony Rendon. “I want to make sure that joining a wider grid doesn’t impact that.”

Storing vs. Sharing

Others point out that joining electric grids isn’t the only way to deal with excess renewable energy.

“Energy storage is probably the biggest hammer in the toolbox,” says Paul Denholm, analyst at the National Renewable Energy Lab in Colorado.

Large batteries and other energy storage technologies could store the excess solar energy California is producing during the day. But until prices come down, storage remains costly.

Denholm says according to his analysis, California will probably need both storage and a regional grid to reach its 50 percent renewable goal in the most cost-effective way.

Other types of energy, apart from solar, could also become more flexible. Many natural gas power plants have signed contracts with utilities that limit how often they can be turned off or ramped up and down.

“We need to make sure we can schedule the power plants to be available when needed,” Denholm says. “Those contracts have to change so the output from the power plants can vary.”

With renewable energy growing at a rapid clip, other states could soon face the same challenges.

“We are looking at a tipping point for wind and solar,” Denholm says. “Wind and solar in many places in the country is actually the cheapest option. And that’s the first time in history where that’s been the case.”