Consolidated Statements of Comprehensive Income (Loss) (Unaudited) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Apr. 30, 2019 |
Apr. 30, 2018 |
Apr. 30, 2019 |
Apr. 30, 2018 |
|
| Consolidated Statements of Comprehensive Income [Abstract] | ||||
| Net income (loss) | $ 4,157 | $ (3,230) | $ 3,498 | $ (3,336) |
| Other comprehensive (loss) income: | ||||
| Change in unrealized loss on available-for-sale securities | 28 | 1 | (122) | |
| Foreign currency translation adjustments | (10) | 176 | 473 | 138 |
| Other comprehensive (loss) income | (10) | 204 | 474 | 16 |
| Comprehensive income (loss) | 4,147 | (3,026) | 3,972 | (3,320) |
| Comprehensive income attributable to noncontrolling interests | (287) | (228) | (888) | (698) |
| Comprehensive income (loss) attributable to IDT Corporation | $ 3,860 | $ (3,254) | $ 3,084 | $ (4,018) |