While 11 BJP, three Maharashtrawadi Gomantak Party, three Goa Forward Party, and three independents supported the Chief Minister, 14 Congress lawmakers and an NCP MLA opposed him. Before the test, the BJP had claimed support of 21 legislators.
The strength of the 40-member house was reduced to 36 after the death of two lawmakers and the resignation of two Congress lawmakers.
As part of the recalibrated coalition after Manohar Parrikar - a popular chief minister who had the unstinted support of allies - there will be two deputy chief ministers in the tiny seaside state. MGP leader Sudhin Dhavalikar and Goa Forward's Vijay Sardesai will both be deputies to the BJP's Pramod Sawant.
Hours after the death of Manohar Parrikar on Sunday night, the BJP set upon the task of handling smaller parties who demanded more, including the top job, to stay on board. With the opposition Congress making a bid for power, based on its single largest party status, the BJP's meetings went on through the night and much of the next day, even as the party and the nation mourned Mr Parrikar.
Pramod Sawant was elected chief of the BJP legislature party, as a precursor to his takeover of the top post, just minutes after Mr Parrikar was cremated with full state honours.
A resolution finally came about after midnight on Monday, and shortly after, Pramod Sawant, 45, was sworn in as Goa Chief Minister along with 11 ministers.
The Congress accused Governor Mridula Sinha of denying it the chance to form a government, calling her an "agent of the BJP". The party, which had emerged the largest after the 2017 Goa polls, had written two letters to the Governor.
The BJP, two short of the Congress tally, has stabilized its coalition for now.
"We, being in the government, want this government to survive, but I must say this is a new beginning. You can never say how the future will go," Deputy Chief Minister Vijay Sardesai told NDTV.
"Parrikar was a moderniser and lit the torch of inclusive development many years ago in Goa. Goa is not like the rest of India. We have a unique identity and a cosmopolitan mixed population and it has to be inclusive development. Nothing else can survive here," he added.
Goa's Law And Order Deteriorating, Cops Visit Discos, Casinos: Opposition Leader 36 Days Review: SonyLiv’s Murder Mystery Starring Purab Kohli, Neha Sharma Is Overstretched and Predictable "If We Commit Same Mistakes As Congress...": Nitin Gadkari Cautions BJP Amid Huge Row, Karnataka Pauses Bill For Reservation In Private Sector Firms Travel Influencer Aanvi Kamdar Dies After Falling Off A Waterfall Near Mumbai UP Banker Dies By Suicide After 6 Months Of Bullying, Body-Shaming Indian Among 6 People Killed In Oman Mosque Shooting Coast Guard Rescues 11 From Boat In Critical Condition Off Kerala Coast How Gujarat Government Officers, Contractors Siphoned Off Rs 5.48 Crore Track Latest News Live on NDTV.com and get news updates from India and around the world.