According to results declared by the Election Commission, Siddaramaiah won in Badami by a narrow margin of 1,696 votes over BJP's B. Sreeramulu.
He lost to Janata Dal-Secular (JD-S) rival G.T. Deve Gowda in his home district of Mysuru by a huge margin of 36,042 votes.
Earlier in the day, Siddaramaiah was reported to be trailing in both the constituencies.
In Badami, he led initially, but then fell behind Sriramulu. However, finally, he prevailed over his BJP rival.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)