“Scorpion” stars Katharine McPhee and Elyes Gabel reportedly have broken up.

E! News said Monday that “American Idol” season-five runner-up McPhee, 32, and Gabel, 33, ended their relationship amicably last month after two years together.

advertisement | advertise on newsday

McPhee married producer Nick Cokas in February 2008 but had been separated for six months in October 2013 when TMZ.com ran photos of her kissing Michael Morris, a director of her 2011-12 NBC musical drama “Smash.”

She filed for divorce in March 2014, and began dating the London-born Gabel after the two grew close on the “Scorpion” set. McPhee’s divorce was finalized in February.