The commission says Sharif's party won 123 of the 272 directly elected national assembly seats.
Independent candidates who normally join the party that forms the government won 25 seats. The combination would give Sharif's party more than the 137 directly elected seats they need to have a majority.
The commission says outgoing ruling Pakistan People's Party won 31 seats. The Pakistan Tehreek-e-Insaf party led by former cricket star Imran Khan won 26 seats.