The bombing at a checkpoint leading to the Husseiniyah area, northeast of the capital, also wounded 21 people, the officials said.
IS issued a statement saying an Iraqi carried out a suicide bombing targeting a checkpoint, but gave the location of the attack as Shaab, an area adjoining Husseiniyah.
The blast is the latest in a series of deadly attacks in and around Baghdad, including a bombing in a crowded shopping district on July 3 that killed 292 people, one of the deadliest ever to hit Iraq.
A few days later, jihadists attacked a Shia shrine in Balad, north of Baghdad, killing 40 people, and on Tuesday, a suicide bomber struck a market near the capital, killing at least seven people.
IS overran large areas north and west of Baghdad in 2014, but has since lost significant ground to Iraqi forces backed by US-led air strikes, training and other assistance.
The extremist group has responded to the battlefield setbacks by striking civilians, particularly Shias, and experts have warned there may be more bombings as the jihadists continue to lose ground.