Police officials said the first attack took place this morning when a bomb exploded near a market in the Shiite section of the town of Mahmoudiya, killing five people and wounding 12.
Mahmoudiya is 30 kilometres south of the capital.
Later today, police said a bomb attached to a mini-bus exploded in the capital's northeastern suburb of Husseiniyah, killing two passengers and wounding nine.
Medical officials confirmed the casualty figures. All officials spoke on condition of anonymity because they're not authorised to talk to journalists.