What happened 

Shares of solar panel manufacturer SunPower (SPWR -1.02%) jumped as much 37.2% in early trading Thursday after reporting second-quarter 2019 results. At 11:20 a.m. EDT, the stock was up 33.9%. 

So what

Quarterly revenue was $436.3 million and net income was $121.5 million, or $0.75 per share after including a $137.3 million gain on a business divestiture and a $67.5 million gain on an equity investment. On a non-GAAP (adjusted) basis, revenue was $481.9 million, gross margin was 10.5%, adjusted EBITDA was $8 million, and the net loss was $31.1 million, or $0.22 per share. 

Home with a SunPower solar system on the roof.

Image source: SunPower.

Results easily topped SunPower's own guidance given in May, which was for $420 million to $460 million of non-GAAP revenue, gross margin of 7% to 10%, and adjusted EBITDA of negative $5 million to positive $15 million. 

To top off the great quarter, management increased the top end of non-GAAP revenue guidance by $100 million to a new range of $1.9 billion to $2.1 billion, and said adjusted EBITDA would be higher than previously expected at $100 million to $120 million. 

Now what

SunPower has been talking about how it's going to turn around its business with new products and a new sales strategy, but this was the first quarter investors really saw the fruits of that labor. Margins are rising as solar panel prices increase and costs come down because of new manufacturing processes to allow building at scale. If the strong operating trend continues, this stock could have a lot further to run.