"Yesterday, Monday, two IDF (Israeli military) soldiers were killed during battles of Operation Protective Edge," a Tuesday statement said.
The army said three other soldiers were seriously wounded over the course of the night.
Hamas, however, says its fighters have killed more than 40 Israeli troops since Thursday.
In Gaza, 576 Palestinians have been killed since Israel launched its operation on July 8, according to data provided by the enclave's emergency services spokesman Ashraf al-Qudra on Tuesday.
Since the offensive began huge numbers of Gazans have fled their homes, with the UN saying more than 100,000 people have sought shelter in 69 schools run by its Palestinian refugee agency (UNRWA).
Two Israeli civilians have been killed by rocket and mortar fire since the start of the offensive.
BA/BA