2.2.0.7 false Comprehensive income (Details) (CAD $) 40901 - Disclosure - Comprehensive income (Details) true false In Millions false false 1 CAD false false Unit12 Standard http://www.xbrl.org/2003/iso4217 CAD iso4217 0 Unit13 Divide http://www.xbrl.org/2003/iso4217 CAD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Unit14 Standard http://www.xbrl.org/2003/instance pure xbrli 0 Unit1 Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 2 CAD false false Unit12 Standard http://www.xbrl.org/2003/iso4217 CAD iso4217 0 Unit13 Divide http://www.xbrl.org/2003/iso4217 CAD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Unit14 Standard http://www.xbrl.org/2003/instance pure xbrli 0 Unit1 Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 3 CAD false false Unit12 Standard http://www.xbrl.org/2003/iso4217 CAD iso4217 0 Unit13 Divide http://www.xbrl.org/2003/iso4217 CAD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Unit14 Standard http://www.xbrl.org/2003/instance pure xbrli 0 Unit1 Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 4 CAD false false Unit12 Standard http://www.xbrl.org/2003/iso4217 CAD iso4217 0 Unit13 Divide http://www.xbrl.org/2003/iso4217 CAD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Unit14 Standard http://www.xbrl.org/2003/instance pure xbrli 0 Unit1 Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ 2 0 us-gaap_ComprehensiveIncomeNoteAbstract us-gaap true na duration No definition available. false false false false false true false false false false false false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 3 1 us-gaap_NetIncomeLoss us-gaap true credit duration No definition available. false false false false false false false false false false false false 1 true true false false 418000000 418 false false false 2 true true false false 547000000 547 false false false 3 true true false false 1411000000 1411 false false false 4 true true false false 1045000000 1045 false false false xbrli:monetaryItemType monetary The portion of consolidated profit or loss for the period, net of income taxes, which is attributable to the parent. If the entity does not present consolidated financial statements, the amount of profit or loss for the period, net of income taxes. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 19 -Article 5 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph d Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph A7 -Appendix A Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph a Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 20 -Article 9 Reference 6: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 130 -Paragraph 10, 15 Reference 7: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Emerging Issues Task Force (EITF) -Number 87-21 Reference 8: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 95 -Paragraph 28, 29, 30 false 4 1 us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansNetUnamortizedGainLossArisingDuringPeriodNetOfTax us-gaap true credit duration No definition available. false false false false false false false false false false false false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false true false false 84000000 84 false false false 4 false true false false -25000000 -25 false false false xbrli:monetaryItemType monetary The accumulated change in the value of either the projected benefit obligation or the plans assets resulting from experience different from that assumed or from a change in an actuarial assumption that has not been recognized in net periodic benefit cost pursuant to FAS 87 and 106, after tax. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 158 -Paragraph 4 -Subparagraph c, d Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph c(3) Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 158 -Paragraph 7 -Subparagraph a Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 130 -Paragraph 17, 19, 24 false 5 1 imo_OtherComprehensiveIncomeRecognizedInNetPeriodicPensionCostNetOfTax imo false credit duration The adjustment out of other comprehensive income for prior service costs, actuarial gains and losses and other previously... false false false false false false false false false false false terselabel false 1 false true false false 28000000 28 false false false 2 false true false false 23000000 23 false false false 3 false true false false 85000000 85 false false false 4 false true false false 70000000 70 false false false xbrli:monetaryItemType monetary The adjustment out of other comprehensive income for prior service costs, actuarial gains and losses and other previously recorded other comprehensive income recognized as a component of net period benefit cost during the period, after tax. No authoritative reference available. false 6 1 us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecrease us-gaap true na duration No definition available. false false false false false false false false false false false totallabel false 1 false true false false 28000000 28 false false false 2 false true false false 23000000 23 false false false 3 false true false false 169000000 169 false false false 4 false true false false 45000000 45 false false false xbrli:monetaryItemType monetary This element represents Other Comprehensive Income (Loss), Net of Tax, for the period. Includes deferred gains (losses) on qualifying hedges, unrealized holding gains (losses) on available-for-sale securities, minimum pension liability, and cumulative translation adjustment. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph c(3) Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 130 -Paragraph 22, 23, 24, 25 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Principles Board Opinion (APB) -Number 12 -Paragraph 10 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 31 -Article 5 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Article 3 true 7 1 us-gaap_ComprehensiveIncomeNetOfTax us-gaap true credit duration No definition available. false false false false false false false false false false false totallabel false 1 true true false false 446000000 446 false false false 2 true true false false 570000000 570 false false false 3 true true false false 1580000000 1580 false false false 4 true true false false 1090000000 1090 false false false xbrli:monetaryItemType monetary The change in equity [net assets] of a business enterprise during a period from transactions and other events and circumstances from non-owner sources which are attributable to the reporting entity. It includes all changes in equity during a period except those resulting from investments by owners and distributions to owners, but excludes any and all transactions which are directly or indirectly attributable to that ownership interest in subsidiary equity which is not attributable to the parent. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph A5 -Appendix A Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 30 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph c(3) Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 8, 9, 10, 11, 12, 13, 14 true 4 6 false Millions UnKnown UnKnown false true